setorientation by page

If you are a C/C++/C# developer and have any questions about using our products from your application here is the place to post them.
Post Reply
makina
Posts: 14
Joined: Fri Apr 14 2006

setorientation by page

Post by makina »

I would like to change orientation in my pages

LANDSCAPE on the first one
PORTRAIT on the second one

Is it possible ?
Thanks
makina
Posts: 14
Joined: Fri Apr 14 2006

Post by makina »

I found a solution making several files then concatenation
Any other way ?

thanks
makina
Posts: 14
Joined: Fri Apr 14 2006

Post by makina »

Nobody has an other solution ?
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

If you have the PDF file already, you can open it in the PDF Creator and set each page orientation and size.

hope this helps.
makina
Posts: 14
Joined: Fri Apr 14 2006

Post by makina »

I need to make it in my program
I didn't find the function
Is there any and which one ?
mrtflv
Posts: 21
Joined: Tue Apr 20 2004

Post by mrtflv »

I can change orientation during a print calling the
ResetDC(hDcPrinter, pDevMode);
just after the EndPage(hDcPrinter);

the pDevMode is a pointer to the original DevMode struct. You have to set the field pDevMode->dmOrientation with the orientation you desire.

Hope this help
Flavio
makina
Posts: 14
Joined: Fri Apr 14 2006

Post by makina »

I had finally found the same solution
thanks
Post Reply