Telerik Forums
Reporting Forum
0 answers
124 views
Hi,

this is shanker i am doing one project .Me requirement is  print report without showing the telrik report.Its working on developer system .But not worked on other system and server and local server i got this error "external component has thrown an exception" How to solve this problem please give solution of this problem 

this my code 

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);

              
            }

please send replay it's argent 


thanks and regards 

shanker.B
shanker bangari
Top achievements
Rank 1
 asked on 03 May 2010
4 answers
144 views
Hi,

While printing Telerik reports, the URL of the page is printed at the bottom and page number at the top.

This is default setting of the browser and we can change it in the browser's page setup.

But is there any way I can change it through code or any property of Telerik reports? Because when I try to do the same thing with Devexpress' XtraReports, I don't see this issue. Which means this thing can be handled through code because they are also using the same PDF engine to print.

I am using Telerik Reporting 2010 Q1 (vesion 2010.1.310).
Vikas
Top achievements
Rank 1
 answered on 02 May 2010
19 answers
698 views
Hello -
I have a report and when I choose the export to CSV, the report is generated, but it includes the text box controls that I use as labels as well, not just the data values.

So, instead of what I would expect:
"Jones, Janet",555-555-9999,555-555-1222

I see this:
TextBox1,TextBox2,TextBox3,TextBox4,TextBox5
Full Name,Cell Phone,Home Phone,"Jones, Janet",555-555-9999,555-555-1222

Is this a bug? or is there a way to fix this?
thanks
 - will
J
Top achievements
Rank 1
 answered on 01 May 2010
4 answers
175 views
I'm new to Telerik reporting and am looking for any examples of binding the report to a class object containing a generic list.

Thanks
Jim
Top achievements
Rank 1
 answered on 30 Apr 2010
1 answer
87 views
Hi

Firstly - may fantastic tools! I have been working with the ASP.Net and the ease of development and manuals are so good I am about to get the order placed!

Based on this I have been looking at the reporting tool and I have hit a minor problem with trying to define a list of values for filtering (which I would like to do by querying my database). 

So far I generated a report that I can filter using a value typed into a text box which works fine however it would be much easier for my users if this value were chosen from a dropdown list (much like the orders example in your excellent demonstration). Ideally this would be populated from a simple query to my SQL server

To this end I selected Filters -> new, picked the parameter I wished to filter on and in "values" selected <new report parameter>. In the available values I set up a new data source that returns the ID I wish to filter on and the text description to show. The query executes OK and all is fine!

When however in the Report Parameter Editor I select 'Display member' (which I assume would display the text), Filters, Sorting or Value member I get the same error of 'The service Teletik.Reporting.IDataItem already exists in the service container. Parameter name: service Type"

Any help you can offer would be much appreciated as this would be much appreciated (I am working in vb.net)

James
Peter
Telerik team
 answered on 30 Apr 2010
2 answers
190 views
Hi All -

    The original thread talks about how to do this using a conditional formatting expression such as reportparameters.showsomegroup.value = False and then unchecking the 'visible' style setting on the appropriate group header/footer.  This works well except for one thing.  When the visible on the section style is unchecked, all the controls in that section are hidden yes, but what is left is whitespace the same height as the section, so even when the group is not shown there is a big ugly break in the details section at every group change.  Is there a way to hide the group header/footer as if it were never there? unchecking visible on section style only seems to hide controls not the whole section.


Thank you
kellyroberts
Top achievements
Rank 1
 answered on 30 Apr 2010
1 answer
114 views
Hi!

I need a reporting solution that can host and render the reports server side prefeerably using webservice, and have a client side viewer prefeerably in WPF.

As far as I can tell Telerik Reporting seems to solve my needs, but I need to know if the WPF Viewer can consume the reports from the WCF Reporting service. The silverlight viewer has specific properties to connect to the Reporting Service, but is it possible to connect the WPF Viewer in a similar fashion?

Best regards
Morten
Vassil Petev
Telerik team
 answered on 30 Apr 2010
1 answer
345 views
Is it possible to display an existing PDF document in the Telerik report viewer.
Steve
Telerik team
 answered on 29 Apr 2010
1 answer
116 views
I have created a sample project that contains two reports that are added to a ReportBook before being exported as a PDF. The first report in the ReportBook is a summary report.  The next report is a detail report that contains disclaimer text that is located in the report footer and is printed on a new page.

The problem appears when you set the PrintOnLastPage property PageHeaderSection of the detail report to false.  What is expected is that the page header will print on every page except for the page with the disclaimer text.  What actually happens is that the page header doesn't print on any page except for the last page.

The project was built in Microsoft Visual Studio 2008 using Telerik Reporting Q2 2009. I'm aware that Q2 2009 isn't the newest version but my company hasn't renewed our support subscription yet, but since I can't find any reference to this bug anywhere I'm assuming that it still exists in the newest version.  Can someone confirm this?  I can send the sample project if needed.
Peter
Telerik team
 answered on 29 Apr 2010
3 answers
1.0K+ views
Hi,
I already working on this for the whole day, but I still can't figure out, so I hope any one here can help:

I am using Reporting Q2, and my application is working well locally (while develping, debuging)
but after I upload my file to the server, I get this message
--------
Could not load file or assembly 'Telerik.ReportViewer.WebForms, Version=3.1.9.807, Culture=neutral, PublicKeyToken=a9d7983dfcc261be' or one of its dependencies. The module was expected to contain an assembly manifest.
--------

and the related line is in web.config:
--------
<add assembly="Telerik.ReportViewer.WebForms, Version=3.1.9.807, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/>

--------
Because it said: " The module was expected to contain an assembly manifest."
So It means I already put .dll file in the BIN folder, and I have these fields in web.config file:
--------
<add assembly="Telerik.ReportViewer.WebForms, Version=3.1.9.807, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/>
<add assembly="Telerik.Reporting, Version=3.1.9.807, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/></assemblies>
.
.
<buildProviders>
        <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
</buildProviders>
.
.
<add name="Telerik.ReportViewer.axd_*" path="Telerik.ReportViewer.axd" verb="*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=3.1.9.807, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" preCondition="integratedMode,runtimeVersionv2.0"/>
--------

everything is good locally, why I get this error on the server, can any body give me an explain?
Thank you very much.
Do I need to configure something on the server? How to?


Steve
Telerik team
 answered on 29 Apr 2010
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?