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

Printing Telerik Reports programatically

6 Answers 601 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
sami
Top achievements
Rank 1
sami asked on 21 Aug 2007, 02:15 PM
Printing Telerik Reports programatically , Without user interaction.
anybody has idea.


Regards
Sam

6 Answers, 1 is accepted

Sort by
0
Chavdar
Telerik team
answered on 22 Aug 2007, 12:29 PM
Hi Sam,

Thanks for your interest in the Reporting tool.

Currently you can't print the reports programmatically as this feature is not implemented. We plan to add it in future but at this moment we are not quite sure exactly when it will be added.

 
Regards,
Chavdar
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
ScottR
Top achievements
Rank 1
answered on 24 Aug 2007, 02:59 PM
sami,

You could consider generating the report as a PDF byte array then using something like ABCPDF to print it.

Just an idea.

Scott
0
Andre Viens
Top achievements
Rank 1
answered on 29 Jan 2008, 06:41 PM
Hello,

I was wondering if there was any update on this? I too have a need where I would like to generate a print job programmatically.

When this feature is available, would it be possible to for it to do the following things:

  1. Automatically print a job to the default printer without asking for a default printer.
  2. And also have a way to have the print selection box come up.

Reason why is I'd like to set the viewer to false, and simply allow a person to hit the print button and have it start the print job. I would then also set a "Select Printer to Print" button so that they could choose a custom one if they wanted to.

Thanks for listening.

Andre

0
Ivan
Telerik team
answered on 31 Jan 2008, 02:38 PM
Hello Andre Viens,

To print a report programmatically you should use the Telerik.Reporting.Processing.ReportProcessor.Print method and supply it with the instances of a report and a printer settings objects. In the attached sample solution you can find a little demonstration of this technique, especially:
  • printing directly to the default printer;
  • printing directly to the specified printer;
  • open print dialog to choose printer to print on.
Please let me know if I can assist you any further with this request.

Sincerely yours,
Ivan
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Kurtis
Top achievements
Rank 1
answered on 14 Dec 2017, 04:17 PM
Is there by chance an updated version of this example?  I can't seem to find many thread past 2008 about programmatic printing (all seems to be MVC or API hosted and I just need a console service that automatically prints)
0
Katia
Telerik team
answered on 18 Dec 2017, 11:28 AM
Hi Kurtis,

ReportProcessor.Print method became obsolete. You can use ReportProcessor.PrintReport method for printing report. This method expects a valid ReportSource object and a PrinterSettings object.
An example of using PrintReport() method is provided here.


Regards,
Katia
Progress Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
sami
Top achievements
Rank 1
Answers by
Chavdar
Telerik team
ScottR
Top achievements
Rank 1
Andre Viens
Top achievements
Rank 1
Ivan
Telerik team
Kurtis
Top achievements
Rank 1
Katia
Telerik team
Share this question
or