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

skip printer dialog box when printing

4 Answers 240 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.

4 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
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
Share this question
or