Telerik Forums
Reporting Forum
4 answers
163 views
Hi all,
I am new to Telerik reporting, I started a new project and added a class library.
When I tried to add a new telerik report, the application is hanged/strucked and cannot do nothing. Just closing the visual studio.
I also installed new version of Telerik reporting, same thing continues..........

Suggest me a solution.


Thanks & Regards
Praveen kumar

Steve
Telerik team
 answered on 23 Nov 2010
1 answer
190 views
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>

Roger
Top achievements
Rank 1
 answered on 23 Nov 2010
9 answers
445 views
Hello everyone,

Does anybody know if there is a way to change the legend dynamically for graphs that created mainly from  Report Designer?  I created graphs by using Telerik report designer but would like to be able to change the legends based on series that users select...

I know we can do if graphs are created programmatically, but I already used report designer to create these reports and this dynamic legend is the requirement... It would be a pain to go back and redo the whole thing...

Thanks for sharing!

Peter
Telerik team
 answered on 23 Nov 2010
2 answers
215 views
Hi

I'd like to have the visibility of one of the RowGroups in a table in my report be dependent on a parameter. How can this be achieved? There seems to be no way to hide/show a table's RowGroup based on some conditional formatting.

Thank you and best regards

Christian
Christian
Top achievements
Rank 1
 answered on 23 Nov 2010
0 answers
158 views
Hi team,

I've confused on attributes KeepTogether, PrintOnFirstPage, PrintOnLastPage of Page, Report Header / Footer. Some of my configuration as attached files and telerik reporting did not work as my expected.
+ Page Header has yellow background and PrintOnFirstPage = True, PrintOnLastPage = True. Add textbox1 to page header and textbox's KeepTogether = True.
+ Report Header has pink background KeepTogether = True. Add textbox2 to report header and textbox's KeepTogether = True.

Expected Result: 
1. Page Header has yellow background only appears on first and last pages. Textbox1 appears on every pages.
2. Report Header has pink background appear on every pages. Textbox2 should appear on every pages.
Actual Result:
1. Page Header has yellow background appears on every pages. Textbox1 should appear on every pages
2. Report Header has pink background appear only on first page. Textbox2 should appear on first page.

Could you please send me your explaination and solution to make telerik run follow my expected? Many thanks.

Best Regards,
Minh Tam.
Tam Pham
Top achievements
Rank 1
 asked on 23 Nov 2010
0 answers
40 views
I have use crystal report long tme for win form.
Now I move to web and I use Telerik reprorting. So I am a beginner.
I was searching but I can't figured out how can make report like this was made by crystal report.
ken
Top achievements
Rank 1
 asked on 23 Nov 2010
2 answers
105 views
I have not had a chance to review the drill down capabilities of Q3 yet, but the biggest question I have is whether or not the expand event allows me to load the next level down of data on demand.  In otherwords, can I initiate another data call at the time the expand event is triggered and get just the data for the item that has been expanded.

I do not want to load all data for all levels at time of render.  Only as needed.

Thanks,

Terry Webster
Terry Webster
Top achievements
Rank 1
 answered on 22 Nov 2010
5 answers
180 views
I am experiencing an issue with Multicolumn reports displaying incorrectly in the web viewer.

I created an avery zweckform report, bound it to a stored procedure, witgh parameters and was able to successfully test the report in the preview and so forth with the report displaying perfectly.

I thn transferred this code to a web application and have successfully got the report to display , however it is only displaying a single column (with the correct reults and so forth).

When I print this using the print , I get the correct multicolumn report.

I jhave checked that the page style and so forth aren't being interfered with

am I missing an option  for the display.

note I have not set zoom width or Zoom Mode
Peter
Telerik team
 answered on 22 Nov 2010
7 answers
497 views

I'm using Telerik Report Q1 2009 and would like to know the best way to populate this report with xml data?
I'm using VS2008, C# and Oracle as my back end.
Within the report I'm not sure also how to reference it once the xml is passed in?

I tried the following

ReportXML rXML = new ReportXML();  
rXML.DataSource = "<XmlDS><table1><col1>Value1</col1></table1><table1><col1>Value2</col1></table1></XmlDS>";         
rvFreqReport.Report = rXML;  
rvFreqReport.RefreshReport(); 
Within my report I added a textbox and set it's value equal to =xmlds\table1\col1 to get the value for column 1.  It doesn't work correctly.  Should just see
Value1
Value2
within my report.

Thank You
Francis Frank
Top achievements
Rank 1
 answered on 22 Nov 2010
0 answers
138 views
How can I draw line at the detail part of report like "Crystal report"
and
How can I use something like "Record Number" on Table binded datasource.

Thanks!
ken
Top achievements
Rank 1
 asked on 22 Nov 2010
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?