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.

setorientation by page

Postby makina on Wed Apr 26 2006

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

Postby makina on Wed Apr 26 2006

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

thanks
makina
 
Posts: 14
Joined: Fri Apr 14 2006

Postby makina on Fri Apr 28 2006

Nobody has an other solution ?
makina
 
Posts: 14
Joined: Fri Apr 14 2006

Postby Joan on Fri Apr 28 2006

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.
Joan
Amyuni Team
 
Posts: 2799
Joined: Wed Sep 11 2002

Postby makina on Fri Apr 28 2006

I need to make it in my program
I didn't find the function
Is there any and which one ?
makina
 
Posts: 14
Joined: Fri Apr 14 2006

Postby mrtflv on Tue May 09 2006

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
mrtflv
 
Posts: 21
Joined: Tue Apr 20 2004

Postby makina on Tue May 09 2006

I had finally found the same solution
thanks
makina
 
Posts: 14
Joined: Fri Apr 14 2006


Return to C/C++/C# Community

Who is online

Users browsing this forum: No registered users and 0 guests