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

[Solved] skip printer dialog box when printing

5 Answers 368 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Lior ef
Top achievements
Rank 1
Lior ef asked on 05 Jul 2010, 10:53 AM
hi guys,

i'm wondering, is there a way to make the ReportViewer skip the printer dialog box when printing a report?
i don't want the user to deal with printing options and want to set these things through code,
things like number of copies, default printer etc.
i tried to find a PreviewPrintReport or something like that - haven't find it.

any suggestions?

thanks.

5 Answers, 1 is accepted

Sort by
0
Accepted
Steve
Telerik team
answered on 07 Jul 2010, 01:01 PM
Hi Lior ef,

Take a look at the following help article for more information: Hide the print progress dialog when printing a report programmatically. Additionally review the next KB article: Print Report straight to printer.

All the best,
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
0
Lior ef
Top achievements
Rank 1
answered on 08 Jul 2010, 06:41 AM
hi Steve,

thanks a lot for the answer, it looks great, looks like the answer.
0
Lior ef
Top achievements
Rank 1
answered on 19 Jul 2010, 12:58 PM
hi,

just one more little problem.
if i want to print the report through code i have to do one of both things:
- hide the default print button of the ReportViewer so i can create my own.
- override the ReportViewers' print button event functionality to do what i want

how do i do any of them?
i've search the site and there are answers how to do that but in web ReportViewer using javascript, i use the WPF one.

thanks again.
0
Accepted
Peter
Telerik team
answered on 20 Jul 2010, 05:21 PM
Hello Lior ef,

The WPF Report Viewer and the Silverlight Report Viewer are actually templates that can be easily modified with Blend. That way you can customize the viewers' template to respond to any custom requirements you have i.e. removing the print button and/or adding your own with an appropriate event.
 

Best wishes,
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
Hiba
Top achievements
Rank 1
Iron
Iron
answered on 30 Jun 2026, 09:13 AM

The built-in ReportViewer print functionality doesn't provide a supported way to bypass the print dialog. The print button is designed to display the printer dialog so the user can choose the printer and print settings.

If you need completely silent printing, you'll generally have to avoid the built-in print button and instead:

  • Render the report programmatically (for example, to EMF or PDF).

  • Send it directly to a printer using the .NET PrintDocument class or another printing API.

  • Set the printer name, number of copies, paper size, and other settings in code before calling Print().

Keep in mind that silent printing may require the application to have access to the target printer, and the default printer or specified printer must already be installed on the client machine.

If you let us know whether you're using WinForms, WPF, ASP.NET, or ReportViewer for SSRS/LocalReport, someone can provide a more specific example, as the available options differ between implementations.

Tags
General Discussions
Asked by
Lior ef
Top achievements
Rank 1
Answers by
Steve
Telerik team
Lior ef
Top achievements
Rank 1
Peter
Telerik team
Hiba
Top achievements
Rank 1
Iron
Iron
Share this question
or