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

Notification

Icon
Error

Options
Go to last post Go to first unread
paleise  
#1 Posted : Thursday, May 14, 2020 4:25:27 AM(UTC)
paleise

Rank: Advanced Member

Groups: Registered
Joined: 10/13/2017(UTC)
Posts: 44
Germany
Location: Freiburg

Thanks: 2 times
Hi,
in pdfdviewer I want print only current page. I'm printing with .Net PrintDialog. But when pdfviewer.currentIndex > 0 and setting printdialog.PrintRange = PrintRange.CurrentPage still page one printing.
I help me with
printDialog.PrinterSettings.PrintRange = System.Drawing.Printing.PrintRange.SomePages;
printDialog.PrinterSettings.FromPage = this.pdfViewer.CurrentIndex + 1;
printDialog.PrinterSettings.ToPage = this.pdfViewer.CurrentIndex + 1;

but perhaps there is a better/other solution.

Regards Peter
Users browsing this topic
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.