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

MVVM silent printing

2 Answers 56 Views
PDFViewer
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 16 Dec 2013, 05:55 PM
Is there an MVVM way of using the RadPdfViewer to silently print a document? We currently are using the following line in the DocumentChanged event handler to do the silent printing.

((RadPdfViewer)sender).Print(new PrintSettings("Document 1", true));


Thank you,
Mark

2 Answers, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 19 Dec 2013, 09:34 AM
Hello Mark,

You could easily implement silent printing with MVVM pattern using custom CommandDescriptors. You can read this article about CommandDescriptors. You can also see the following SDK example which shows how to implement custom CommandDescriptors.

I hope this is helpful. Please, do not hesitate to contact us if you have any other questions.

Regards,
Alexander
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Mark
Top achievements
Rank 1
answered on 19 Dec 2013, 01:16 PM
I will look in to using CommandDescriptors to do this.

Thank you,
Mark
Tags
PDFViewer
Asked by
Mark
Top achievements
Rank 1
Answers by
Alexander
Telerik team
Mark
Top achievements
Rank 1
Share this question
or