This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, April 11, 2006 10:43:27 PM(UTC)
Groups: Registered
Posts: 1
Hello,
how can I set the paperorientation of a tiff image before sending it to a printer? I have a multipage tiff in the viewer control and every page of the image can have a different paperorientation (portrait or landscape). When I start printing, I must change the paperorientation for every page but I can't. The print method uses whatever the printer's default orientation is.
We are using Leadtools 11.5
Any help would be greatly appreciated. Thanks in advance.
#2
Posted
:
Sunday, April 16, 2006 12:06:50 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
This is controlled by your development environment. For example, if you are using VB6, here's how to change the orientation between pages:
Printer.Orientation = vbPRORPortrait
Printer.Print "Portrait"
Printer.NewPage
Printer.Orientation = vbPRORLandscape
Printer.Print "Landscape"
Printer.NewPage
Printer.Orientation = vbPRORPortrait
Printer.Print "Portrait"
Printer.EndDoc
Of course you could use our Render method instead of Printer.Print.
To know the orientation the image page itself inside the LEAD control, you can check the ratio of the BitmapWidth to BitmapHeight properties.
Thanks,
Ali Abo Al-Rob
LEADTOOLS Technical Support
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.