This is a migrated thread and some comments may be shown as answers.

Silverlight ReportViewer Dialog 'Preparing to Print' Dialog missing

1 Answer 87 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Roger
Top achievements
Rank 1
Roger asked on 23 Nov 2010, 12:23 PM
I am using Telerik Reporting Q3 2010 with Silverlight ReportViewer on SL4.
The Report shows more than one page and displays ok so far.

But if i hit the print button, no print dialog comes up and the "Preparing to print" dialog does not show up.
If i display all of the report-pages by using the navigation-arrows and after this hitting the print button, the report dialog shows up. 

In the end, the whole thing has to run under ria and https. but for the test, i just use some fake-data, that is generated in the report.
I also managed to create another solution with https calls and the same scenario. there it works, but i dont see the differences.

i ddi a printscreen of the included assemblys.
do i miss some references or initializations?

The Clientside-Call:
Telerik.ReportViewer.Silverlight.ReportViewer rep = new Telerik.ReportViewer.Silverlight.ReportViewer();
rep.Report = "InoTrans.Web.Report1, InoTrans.Web";

Uri uribase = Application.Current.Host.Source;
rep.ReportServiceUri = new Uri(uribase, "../Services/ReportService.svc");
(((App)Application.Current).RootPage as MainPage).frmContent.Content = rep;
Telerik.ReportViewer.Silverlight.ReportViewer rep = new Telerik.ReportViewer.Silverlight.ReportViewer();
rep.Report = "InoTrans.Web.Report1, InoTrans.Web";

Uri uribase = Application.Current.Host.Source;
rep.ReportServiceUri = new Uri(uribase, "../Services/ReportService.svc");
(((App)Application.Current).RootPage as MainPage).frmContent.Content = rep;
Telerik.ReportViewer.Silverlight.ReportViewer rep = new Telerik.ReportViewer.Silverlight.ReportViewer();
rep.Report = "InoTrans.Web.Report1, InoTrans.Web";
 
Uri uribase = Application.Current.Host.Source;
rep.ReportServiceUri = new Uri(uribase, "../Services/ReportService.svc");
(((App)Application.Current).RootPage as MainPage).frmContent.Content = rep;

The Report:
namespace InoTrans.Web
{
    using System;
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms;
    using Telerik.Reporting;
    using Telerik.Reporting.Drawing;
    using InoTrans.Web.Services;
    using System.Collections.Generic;
 
    /// <summary>
    /// Summary description for Report1.
    /// </summary>
    public partial class Report1 : Telerik.Reporting.Report
    {
        public Report1()
        {
            //
            // Required for telerik Reporting designer support
            //
            InitializeComponent();
 
            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            List<EntLtd> list = new List<EntLtd>();
            for (int i = 0; i < 100; i++)
            {
                EntLtd ent = new EntLtd();
                ent.sLtdAdrOrt = "Testort";
                list.Add(ent);
            }
            this.DataSource = list;
        }
    }
}

                    MacProgressBarStatic.CloseProgressBar(progress, AwoKonstanten.GuiDelay_long);
                    Telerik.ReportViewer.Silverlight.ReportViewer rep = new Telerik.ReportViewer.Silverlight.ReportViewer();
                    //rep.Report = "InoTrans.Web.Selbstdeklaration, InoTrans.Web";
                    rep.Report = "InoTrans.Web.Report1, InoTrans.Web";

                    //Angabe wo relativer pfad beginnen soll.
                    Uri uribase = Application.Current.Host.Source;
                    rep.ReportServiceUri = new Uri(uribase, "../Services/ReportService.svc");
                    (((App)Application.Current).RootPage as MainPage).frmContent.Content = rep;
                    MacProgressBarStatic.CloseProgressBar(progress, AwoKonstanten.GuiDelay_long);
                    Telerik.ReportViewer.Silverlight.ReportViewer rep = new Telerik.ReportViewer.Silverlight.ReportViewer();
                    //rep.Report = "InoTrans.Web.Selbstdeklaration, InoTrans.Web";
                    rep.Report = "InoTrans.Web.Report1, InoTrans.Web";

                    //Angabe wo relativer pfad beginnen soll.
                    Uri uribase = Application.Current.Host.Source;
                    rep.ReportServiceUri = new Uri(uribase, "../Services/ReportService.svc");
                    (((App)Application.Current).RootPage as MainPage).frmContent.Content = rep;
                    MacProgressBarStatic.CloseProgressBar(progress, AwoKonstanten.GuiDelay_long);
                    Telerik.ReportViewer.Silverlight.ReportViewer rep = new Telerik.ReportViewer.Silverlight.ReportViewer();
                    //rep.Report = "InoTrans.Web.Selbstdeklaration, InoTrans.Web";
                    rep.Report = "InoTrans.Web.Report1, InoTrans.Web";

                    //Angabe wo relativer pfad beginnen soll.
                    Uri uribase = Application.Current.Host.Source;
                    rep.ReportServiceUri = new Uri(uribase, "../Services/ReportService.svc");
                    (((App)Application.Current).RootPage as MainPage).frmContent.Content = rep;
The Value-Binding in InitializeComponent() looks like this:
 this.textBox1.Value = "=Fields.sLtdAdrOrt";

ReportingService:
<%@ ServiceHost Service="Telerik.Reporting.Service.ReportService, Telerik.Reporting.Service, Version=4.2.10.1110, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" %>

and Webconfig:
<?xml version="1.0" encoding="utf-8"?>
<!--
  Weitere Informationen zum Konfigurieren der ASP.NET-Anwendung finden Sie unter
  -->
<configuration>
  <system.diagnostics>
    <sources>
      <source name="System.ServiceModel.MessageLogging" switchValue="Warning, ActivityTracing">
        <listeners>
          <add type="System.Diagnostics.DefaultTraceListener" name="Default">
            <filter type="" />
          </add>
          <add name="ServiceModelMessageLoggingListener">
            <filter type="" />
          </add>
        </listeners>
      </source>
      <source name="System.ServiceModel" switchValue="Warning, ActivityTracing"
        propagateActivity="true">
        <listeners>
          <add type="System.Diagnostics.DefaultTraceListener" name="Default">
            <filter type="" />
          </add>
          <add name="ServiceModelTraceListener">
            <filter type="" />
          </add>
        </listeners>
      </source>
    </sources>
    <sharedListeners>
      <add initializeData="C:\DotNet\WebPfl-VS2010\InoTrans\InoTrans.Web\Web_messages.svclog"
        type="System.Diagnostics.XmlWriterTraceListener, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
        name="ServiceModelMessageLoggingListener" traceOutputOptions="Timestamp">
        <filter type="" />
      </add>
      <add initializeData="C:\DotNet\WebPfl-VS2010\InoTrans\InoTrans.Web\Web_tracelog.svclog"
        type="System.Diagnostics.XmlWriterTraceListener, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
        name="ServiceModelTraceListener" traceOutputOptions="Timestamp">
        <filter type="" />
      </add>
    </sharedListeners>
    <trace autoflush="true" />
  </system.diagnostics>
  <system.webServer>
    <modules runAllManagedModulesForAllRequests="true">
      <add name="DomainServiceModule" preCondition="managedHandler" type="System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
    </modules>
    <validation validateIntegratedModeConfiguration="false" />
  </system.webServer>
  <system.web>
    <httpModules>
      <add name="DomainServiceModule" type="System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
    </httpModules>
    <compilation debug="true" targetFramework="4.0">
      <assemblies>
        <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
      </assemblies>
    </compilation>
    <authentication mode="Forms" >
      <forms name=".InoTrans_ASPXAUTH" />
    </authentication>
  </system.web>
  <connectionStrings>
      <add name="WInoTransportEntities" connectionString="................" />
      <add name="WInoTransportEntities1" connectionString="................" />
      <add name="WInoTransportEntities2" connectionString="................" />
  </connectionStrings>
  <system.serviceModel>
    <diagnostics wmiProviderEnabled="true" performanceCounters="ServiceOnly">
      <messageLogging logMalformedMessages="true" logMessagesAtServiceLevel="false"
        logMessagesAtTransportLevel="true" />
    </diagnostics>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
    <bindings>
      <basicHttpBinding>
        <binding name="BasicHttpBindingConfig" closeTimeout="01:00:00"
          openTimeout="01:00:00" receiveTimeout="01:00:00" sendTimeout="01:00:00"
          maxBufferSize="5000000" maxReceivedMessageSize="5000000">
          <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="5000000"
            maxBytesPerRead="4096" maxNameTableCharCount="16384" />
          <security mode="Transport" />
        </binding>
      </basicHttpBinding>
      <webHttpBinding>
        <binding name="WebHttpBindingConfig" closeTimeout="01:00:00"
          openTimeout="01:00:00" receiveTimeout="01:00:00" sendTimeout="01:00:00"
          maxBufferSize="5000000" maxReceivedMessageSize="5000000">
          <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="5000000"
            maxBytesPerRead="4096" maxNameTableCharCount="16384" />
          <security mode="Transport" />
        </binding>
      </webHttpBinding>
    </bindings>
 
    <services>
      <service behaviorConfiguration="ReportServiceBehavior" name="Telerik.Reporting.Service.ReportService">
        <endpoint address="" binding="basicHttpBinding" bindingConfiguration="BasicHttpBindingConfig"
          contract="Telerik.Reporting.Service.IReportService" />
        <endpoint address="resources" behaviorConfiguration="WebBehavior"
          binding="webHttpBinding" bindingConfiguration="WebHttpBindingConfig"
          contract="Telerik.Reporting.Service.IResourceService" />
        <endpoint address="mex" binding="mexHttpsBinding" bindingConfiguration=""
          contract="IMetadataExchange" />
        <host>
          <timeouts closeTimeout="01:00:00" openTimeout="01:00:00" />
        </host>
      </service>
    </services>
 
    <behaviors>
      <serviceBehaviors>
        <behavior name="ReportServiceBehavior">
          <serviceMetadata httpGetEnabled="false" />
          <serviceDebug includeExceptionDetailInFaults="false" />
        </behavior>
      </serviceBehaviors>
 
      <endpointBehaviors>
        <behavior name="WebBehavior">
          <webHttp />
        </behavior>
      </endpointBehaviors>
 
    </behaviors>
   
  </system.serviceModel>
</configuration>

1 Answer, 1 is accepted

Sort by
0
Roger
Top achievements
Rank 1
answered on 23 Nov 2010, 02:54 PM
Thist effect seems to occur if a older Silverlight-Controls dll is used.
Installation of the appropriate Silverlight-Components Q3 2010 to Q3 2010 Reporting solved the Problem.

Tags
General Discussions
Asked by
Roger
Top achievements
Rank 1
Answers by
Roger
Top achievements
Rank 1
Share this question
or