Telerik Forums
Reporting Forum
1 answer
179 views
I can't seem to get this to work... I followed the documentation for alternating style row....
Does this work with a cross tab?

=RowNumber()%2 =1

help
thanks!
Jon
Top achievements
Rank 1
 answered on 14 Jun 2010
1 answer
116 views
Hi,

I am building a project with deals with large quantity of data, some reports also have data ranging from 10-15 million values.
Hence it takes about a minute for the report to display.

Is there any way to stop the report in progress i.e before the values are displayed , I tried stopping using the browser stop button, but it still doesn't stop.
Is there any other way to do it.

Thanks
Steve
Telerik team
 answered on 10 Jun 2010
1 answer
255 views
Hi all,

   I have a deisre to automatically print a report after it is displayed in the HTML viewer (web browser).  I have reviewed the posts from the forums, particularly http://www.telerik.com/community/forums/reporting/telerik-reporting/print-my-report-straight-to-printer.aspx, but I am very confused about what I need to do.  I tried a couple attempts in the code-behind but they didn't work out.

Does anyone have a simple example project that shows how this feature is used?  Or if not, can someone explain step by step what modifications to make to which code files (the .aspx, the .cs) to obtain this functionality?  Any help will be greatly appreciated, thanks!

-Chris
Chris Butler
Top achievements
Rank 1
 answered on 10 Jun 2010
0 answers
136 views
Hi ,Every one

I am  doing one project  .My requirement is when i click custom button  than report is printing  with out open report .i worte this code .It's working develop system.But it's not working on server and other system.How to print report in custom button click event .

this is my code  How to find this please give me  any example 


 if (e.CommandName == "Print"
            { 
                int? fee_receipt_id = int.Parse(e.CommandArgument.ToString()); 
                int? status_code = null
                int? call_user_id = LogonDetails.Instance.sys_lclvar_user_id; 
                int? call_screen_id = GetScreenId(); 
                int? session_id = LogonDetails.Instance.sys_lclvar_session_id; 
                string call_ip_address = CommonMethods.CurrentIP; 
                bool? audit_report_execution = LogonDetails.Instance.sys_lclvar_audit_user_action; 
                bool? audit_user_action = LogonDetails.Instance.sys_lclvar_audit_user_action; 
                string status_text = String.Empty; 
                var printdata = ReportsManager.get_report_fee_receipt( 
                     fee_receipt_id, call_screen_id, call_user_id, session_id, call_ip_address, audit_user_action, audit_report_execution, ref status_code, ref status_text); 
                if ((!status_code.HasValue) || (status_code.Value != 0)) 
                { 
                    DisplayMessage(false, status_text); 
                    return
                } 
                string strTitle = LogonDetails.Instance.sys_lclvar_facility_name; 
                 
                var report = new TelerikComponentsWS.Reports.RepFeeReceipt(); 
                report.DataSource = printdata; 
                Telerik.Reporting.Drawing.ExternalStyleSheet exx = new Telerik.Reporting.Drawing.ExternalStyleSheet("~\\css\\ReprotStyleSheet.xml"); 
                report.ExternalStyleSheets.Add(exx); 
                report.ReportParameters[0].Value = strTitle; 
                using (System.Windows.Forms.PrintDialog printDlg = new System.Windows.Forms.PrintDialog()) 
                { 
                    printDlg.AllowSomePages = true
                    printDlg.AllowCurrentPage = false
                    printDlg.UseEXDialog = true
 
                    if (System.Windows.Forms.DialogResult.OK == printDlg.ShowDialog()) 
                    { 
                        Telerik.Reporting.Processing.ReportProcessor reportProcessor = new Telerik.Reporting.Processing.ReportProcessor(); 
                        reportProcessor.PrintReport(report, printDlg.PrinterSettings); 
                    } 
                } 
                ////Telerik.Reporting.Processing 
                //System.Drawing.Printing.PrinterSettings printerSettings = new System.Drawing.Printing.PrinterSettings(); 
                //// Adjust the printer settings if necessary... 
                //System.Drawing.Printing.PrintController standardPrintController = new System.Drawing.Printing.StandardPrintController(); 
                //printerSettings.PrinterName = "MyHomePrinter"; 
                //// Print the report using the printer settings. 
                //Telerik.Reporting.Processing.ReportProcessor reportProcessor = new Telerik.Reporting.Processing.ReportProcessor(); 
                //reportProcessor.PrintController = standardPrintController; 
                //reportProcessor.PrintReport(report, printerSettings); 
 
               
            } 




thanks and regards
shanker.B
shanker bangari
Top achievements
Rank 1
 asked on 10 Jun 2010
1 answer
282 views
  I am new to Telerik reporting, and I have just tried using it via the Trial version (Q1 2010).  I have successfully created a report and viewed it using a WinForms application, but when I try to use the WPF viewer I hit a problem.

  The problem occurs when I create a WPF Application, and then I try to drag the "ReportViewer" WPF component to a Xaml window.  I am then presented with the error:
 
"Cannot find type 'Telerik.Windows.Controls.ThemeResourceKey'. The assembly used when compiling might be different than that used when loading and the type is missing.  Error at object 'System.Windows.ResourceDictionary' in markup file 'Telerik.ReportViewer.Wpf;component/Themes/OfficeBlack/ReportViewer.xaml'."

  I have found that if I add a reference to Telerik.Windows.Controls.dll, Telerik.Windows.Controls.Input.dll, Telerik.Windows.Controls.Navigation.dll, and Telerik.Windows.Data.dll from the samples at \Program Files\Telerik\Reporting Q1 2010\Examples\CSharp\WpfDemo\bin, that everything seems to work fine.  But it is not until those references are added, which were not included as part of the Q1 2010 trial binaries, except specifically from that sample.

  Is this expected, and is it fine to include those references?  Will updates be included to those as part of the next update of reporting, or how else would one get those on an ongoing basis?

Chris Achille
Steve
Telerik team
 answered on 10 Jun 2010
3 answers
332 views
Hi,

I am trying to implement Telerik Reporting in our Silverlight application, and I am having a problem connecting Telerik Report Services to a Silverlight Report Viewer.  In one solution I have a Windows Azure project running a Web Role that contains a WCF service (ReportService.svc) and a project with the Repors (ReportLibrary) as instructed on this video (http://tv.telerik.com/reporting/video/telerik-reporting-getting-started-with-silverlight-report-viewer), and on the other solution I have a Silverlight app with a Silverlight Report Viewer.  When I try to setup the Silverlight client I get an error. (see image attachment).

The XAML code looks like this on the client side.

<UserControl x:Class="ROPComposite.Report.Telerik_Report.TelerikReportView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:reportViewer="clr-namespace:Telerik.ReportViewer.Silverlight;assembly=Telerik.ReportViewer.Silverlight"
       
    xmlns:telerikNav="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
    xmlns:telerikControls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
    xmlns:telerikPrimitives ="clr-namespace:Telerik.Windows.Controls.Primitives;assembly=Telerik.Windows.Controls"
    xmlns:telerikInput="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input">

    <Grid x:Name="LayoutRoot" Background="White">
        <reportViewer:ReportViewer x:Name="xReportViewer"
                                   ReportServiceUri="http://127.0.0.1:81/Service/ReportService.svc"
                                   Report="ReportLibrary.AllPatients, ReportLibrary,  Version=1.0.0.0, Culture=neutral, PublicKeyToken=null">
        </reportViewer:ReportViewer>
    </Grid>
</UserControl>

The configuration for the service looks like this on the server side.

        <behavior name="ReportServiceBehavior">
          <dataContractSerializer maxItemsInObjectGraph="10000000"/>
          <serviceMetadata httpGetEnabled="true"/>
          <serviceDebug includeExceptionDetailInFaults="false"/>
          <useRequestHeadersForMetadataAddress>
            <defaultPorts>
              <add scheme="http" port="81"/>
              <add scheme="https" port="444"/>
            </defaultPorts>
          </useRequestHeadersForMetadataAddress>
        </behavior>
...
      <endpointBehaviors>
        <behavior name="WebBehavior">
          <webHttp/>
        </behavior>
      </endpointBehaviors>
...
      <service name="Telerik.Reporting.Service.ReportService" behaviorConfiguration="ReportServiceBehavior">
        <endpoint address="" binding="basicHttpBinding" contract="Telerik.Reporting.Service.IReportService">
          <identity>
            <dns value="localhost"/>
          </identity>
        </endpoint>
        <endpoint address="resources" binding="webHttpBinding" behaviorConfiguration="WebBehavior" contract="Telerik.Reporting.Service.IResourceService"/>
        <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
      </service>

I know the Report works because I created an aspx page and I was able to see it using the Web Report Viewer, but not through WCF.

On the Reporting documentation ( http://www.telerik.com/help/reporting/silverlight-hosting-in-iis.html ) on how to Host a WCF Service for reports, I don't understand how Service class (ReportService.svc) knows what library the reports are.  Just by adding a reference to the library containing the reports, is that all I need to do?

I would appreciate all the help I can get.
Steve Johnson
Top achievements
Rank 1
 answered on 10 Jun 2010
4 answers
180 views
I am using the Reporting tutorial and am having a problem after creating the first two steps in the solution.  The example uses the Adventureworks SQL database.  I have created a Class Library that contains a Telerik Report.  It previews just fine and contains the full data from the database.

Then I created a VB Windows App as part of the solution with a Telerik ReportViewer to view this sample report.  Everything setup the way the tutorial showed, but when I ran the solution (the Windows App is the startup project), I receive a long red, error message about not being able to connect to the database.  See the attached file named reportquestion1.gif .

The VIsual Studio 2010 window is captured in reportlquestion2.gif .

Why does the report preview just fine with the data from the database, but then will not run when part of the whole solution?  The same connection string is in the report definition.  So why can't it make the connection?

Thanks in advance!
Lynn
Top achievements
Rank 2
 answered on 10 Jun 2010
1 answer
103 views
Hi,

I am evaluating the Reporting module and cannot get the report wizard to work with Advantage Database Server.

I set up the  ADS .NET Provider connection string but when it goes to retrieve the tables info, it just comes up the a message box which says 'Advantage.Data.Provider'.

I am using Q1 2010 trial.

Regards

Mike
Steve
Telerik team
 answered on 09 Jun 2010
1 answer
89 views
I am planning on using the RichTextBox feature of Silverlight 4, and will be storing the contents of the RichTextBox in my database.  Can the current version of the Silverlight ReportViewer and Telerik reporting handle the RichTextBox contents when displaying/printing?
Steve
Telerik team
 answered on 09 Jun 2010
1 answer
221 views
Hi
I have a problem when ReportBook save as PDF File.
i  had read this http://www.telerik.com/community/forums/reporting/telerik-reporting/export-to-pdf-does-not-support-chinese-characters.aspx and http://www.telerik.com/community/forums/reporting/telerik-reporting/support-chinese-language.aspx
but still can't fix my problem.
is any solution can provide me? or Telerik Reporting can't support Chinese Language (Taiwan)??

i wanna use my font type to create report, and let my customer open it with readable font type.


Steve
Telerik team
 answered on 09 Jun 2010
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?