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

Print pdf using RadPdfViewer

1 Answer 217 Views
PDFViewer
This is a migrated thread and some comments may be shown as answers.
LAZAU
Top achievements
Rank 1
LAZAU asked on 07 Aug 2014, 12:06 PM
Hello!

I want to print a pdf file using RadPdfViewer. I tried

Viewer viewer = new RadPdfViewer();
viewer.Print(new Telerik.Windows.Documents.Fixed.Print.PrintSettings(@"abc.pdf",false));
This is not working.
Basically I want to print a pdf file in a separate thread because I don't want my interface to frieze. 
 
Please help me.

1 Answer, 1 is accepted

Sort by
0
Kammen
Telerik team
answered on 08 Aug 2014, 03:57 PM
Hello,

Thank you for your interest in RadPdfViewer.

RadPdfViewer is not thread safe because it uses DependencyProperties and UIElements. That is why it cannot be used for printing in non-UI thread.

Hope this answers your question.

Regards,
Kammen
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
PDFViewer
Asked by
LAZAU
Top achievements
Rank 1
Answers by
Kammen
Telerik team
Share this question
or