Page 1 of 1
Printing Selected Area
Posted: Tue Apr 03, 2012 3:50 pm
by rclendenon
I am using the gdViewer to display a pdf. There are also several zooming tools that allow the user to focus on specific parts of the pdf. Is there a way to print only the portion of the pdf that is displayed in the viewer after a zoom? When I use the 'PrintDialogFit' option the 'Selected' option is greyed out and the complete document is printed.
Thanks in advance for your help,
Russell
Re: Printing Selected Area
Posted: Wed Apr 04, 2012 4:33 pm
by Loïc
Hello,
You can try do do something like this:
Code: Select all
Dim l, t, w, h As Integer
GdViewer1.GetDisplayedArea(l, t, w, h)
GdViewer1.CopyRegionToClipboard(l, t, w, h)
Dim GdViewer2 As New GdViewer
GdViewer2.DisplayFromClipboard()
GdViewer2.PrintDialogFit()
Kind regards,
Loïc
Re: Printing Selected Area
Posted: Tue Apr 17, 2012 6:58 pm
by johnmcrin
Only using the rectangular marquee tool is allowed to let me print selected area, I wish making a selection of a layer let me do that too.