Unable to get print properties

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

TatianaS
User
Posts: 103
Joined: Mon Mar 18, 2013 4:26 pm

Unable to get print properties

Post by TatianaS »

Hello,
I am trying to run this line: GetProperty('Print.Duplex', dataOut, 0);
but it always return -1 on any duplex/simplex setting. Is there some other call I could maybe use?

Thanks,
Tatiana
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19868
Joined: Mon Jan 12, 2009 8:07 am

Re: Unable to get print properties

Post by Stefan - PDF-XChange »

Hi Tatiana,

By "on any duplex/simplex setting" - you mean any changes done in the UI?
I am able to e.g. SetProperty('Print.Duplex', 2, 0); and then reading the same has the correct value of 2.

I noticed in my tests that e.g. setting Print.Collate via code is reflected in the UI and vise versa but Print.Duplex seems to behave a bit differently. I will need to consult with a colleague to be able to give you a better answer on how to resolve the issue.

Regards,
Stefan
TatianaS
User
Posts: 103
Joined: Mon Mar 18, 2013 4:26 pm

Re: Unable to get print properties

Post by TatianaS »

What I do is to call PrintDocument(activeDocumentID, 1), change the duplex property on UI and then call
GetProperty('Print.Duplex', dataOut, 0) and the result is always -1.

SetProperty works fine, but not GetProperty...
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2445
Joined: Thu Jun 30, 2005 4:11 pm

Re: Unable to get print properties

Post by Vasyl - PDF-XChange »

Hi Tatiana.

The problem is that developer cannot get the duplex-value which was selected by end-user's in dialog. It occurs because we don't store the end-user's duplex-value between printings.
The 'Print.Duplex' is the 'input' property only. By default 'Print.Duplex'==-1 ('auto', the actual duplex-value from printer's prefs will be used).

In the new build we will add simple property 'Print.CustomDuplex' - it will contain the last end-user's choice.

HTH.
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.
TatianaS
User
Posts: 103
Joined: Mon Mar 18, 2013 4:26 pm

Re: Unable to get print properties

Post by TatianaS »

Thanks for your response,
Could you please tell be an approximate date when next build will be released?

P.S. Tested with simplex printer without modifying Duplex property on UI, the GetProperty('Print.Duplex', dataOut, 0) is still -1.
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19868
Joined: Mon Jan 12, 2009 8:07 am

Re: Unable to get print properties

Post by Stefan - PDF-XChange »

Hi Tatiana,

The next build is planned for April, but I don't have an actual confirmed release date yet for you.

Regards,
Stefan