logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
spurgeon  
#1 Posted : Thursday, February 11, 2016 3:05:13 PM(UTC)
spurgeon

Rank: Member

Groups: Registered
Joined: 2/2/2016(UTC)
Posts: 20

Using the built-in print dialog through the user controls results in slow and resource-intensive performance when printing. I've tried several PDFs and all have the same behavior. The print preview is also slow and resource heavy, I guess because of the size of the rendered page bitmaps. Is there a way to improve performance? I looked over the forum page here:

Print functionality thread

Using the first example (the short printing example), the pages render quickly (but of course don't all account for things like page rotation). Also, when you print to Microsoft XPS (an .XPS file output), the file size is reasonable. Using the full-blown code where it accounts for page rotations and such, the performance is slow and the output XPS files are on the order of 8-10X the file size (from my tests) but the quality is no better. Why the size differential? Maybe there are too many transformations or unnecessary scalings that are happening in the built-in printing code?

Thanks for your help.

Edited by user Thursday, February 11, 2016 3:05:45 PM(UTC)  | Reason: Not specified

ju1989  
#2 Posted : Wednesday, June 1, 2016 7:22:07 AM(UTC)
ju1989

Rank: Member

Groups: Registered
Joined: 6/1/2016(UTC)
Posts: 28
Germany
Location: Hessen

Thanks: 2 times
Was thanked: 1 time(s) in 1 post(s)
is there any solution for this problem?
Paul Rayman  
#3 Posted : Tuesday, August 9, 2016 7:15:58 AM(UTC)
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 1,138

Thanks: 10 times
Was thanked: 133 time(s) in 130 post(s)
Fixed for WinForms.
Here http://forum.patagames.c...released-on-Jul-17--2016

PdfPrintDocument can be used for printing in WPF too
spurgeon  
#4 Posted : Thursday, January 26, 2017 12:33:58 PM(UTC)
spurgeon

Rank: Member

Groups: Registered
Joined: 2/2/2016(UTC)
Posts: 20

Finally got to look at this and update the lib for our software. The performance is *much* better. Thank you!
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.