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
Unable to get print properties
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
- Site Admin
- Posts: 19868
- Joined: Mon Jan 12, 2009 8:07 am
Re: Unable to get print properties
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
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
-
- User
- Posts: 103
- Joined: Mon Mar 18, 2013 4:26 pm
Re: Unable to get print properties
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...
GetProperty('Print.Duplex', dataOut, 0) and the result is always -1.
SetProperty works fine, but not GetProperty...
-
- Site Admin
- Posts: 2445
- Joined: Thu Jun 30, 2005 4:11 pm
Re: Unable to get print properties
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.
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.
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
-
- User
- Posts: 103
- Joined: Mon Mar 18, 2013 4:26 pm
Re: Unable to get print properties
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.
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.
-
- Site Admin
- Posts: 19868
- Joined: Mon Jan 12, 2009 8:07 am
Re: Unable to get print properties
Hi Tatiana,
The next build is planned for April, but I don't have an actual confirmed release date yet for you.
Regards,
Stefan
The next build is planned for April, but I don't have an actual confirmed release date yet for you.
Regards,
Stefan