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

Report Print

3 Answers 166 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Praveen
Top achievements
Rank 1
Praveen asked on 31 May 2010, 11:51 AM


Hi ,

           How can I print Telerik  Report  using  C#.net  in asp.net

Eg:  
        // Report Viewer Object
        Telerik.ReportViewer.WebForms.ReportViewer objRV = new Telerik.ReportViewer.WebForms.ReportViewer();
       // Report object
        FeeCollectionIndvidualDetailsReport objrpt = new FeeCollectionIndvidualDetailsReport();

        objRV.Report = objrpt;
        objRV.RefreshReport();
  
         objRV.PrintReport();   // Function didn't find

      Thanks & Regards
      Praveen


         

  


3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 31 May 2010, 05:09 PM
Hi Praveen,

Please review the following KB article that elaborates on the matter: Print Report straight to printer.

All the best,
Peter
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Praveen
Top achievements
Rank 1
answered on 01 Jun 2010, 07:20 AM

Hi Sir,

         Above code , doesn't work
         I got one error

                   

Server Error in '/Campus_1' Application.

The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).


Regards
Praveen

0
Steve
Telerik team
answered on 02 Jun 2010, 06:01 PM
Hi Praveen,

This is a generic error that might occur due to various reasons not directly related to Telerik Reporting. For one thing, you're most likely using ASP.NET AJAX in your web page and have placed the script in element with runat=server attribute. Check out the following threads that elaborate on how to escape such problems.

Sincerely yours,
Steve
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
General Discussions
Asked by
Praveen
Top achievements
Rank 1
Answers by
Peter
Telerik team
Praveen
Top achievements
Rank 1
Steve
Telerik team
Share this question
or