GetProperty 'Print.PaperRotate'

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

User avatar
MartinCS
User
Posts: 153
Joined: Thu Apr 07, 2011 10:01 am

GetProperty 'Print.PaperRotate'

Post by MartinCS »

Hi Tracker-Team,

I'm using the method 'GetProperty' to retrieve the selected paper rotation set by the user within the printer dialog:

Code: Select all

AxCoPDFXCview1.GetProperty("Print.PaperRotate", vDataOut)
But I facing the problem that this methods always returns '0' (the default supported value). How can I get the correct value set in the printer dialog for the selected printer?

Hope you have any advice!

Thank you,
Martin
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2445
Joined: Thu Jun 30, 2005 4:11 pm

Re: GetProperty 'Print.PaperRotate'

Post by Vasyl - PDF-XChange »

Hi, Martin.

I'm afraid but this property is temporary, the viewer uses it before printing to initialize the print-operation only and resets it (to 0 (zero, "auto")) each time when the user changes his printer preferences. The viewer does not remember it between sessions.
This property is only for developers who want to be able to rotate the paper programmatically before printing..

Best
regards.
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.