Disabling (hiding) printer progress bar in ActiveX

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

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Post Reply
WayneH
User
Posts: 48
Joined: Mon May 21, 2007 5:39 pm

Disabling (hiding) printer progress bar in ActiveX

Post by WayneH »

I'm testing the Viewer SDK ActiveX, and I noticed that even though I have set PXCVA_Flags.PXCVA_NoUI when using PrintDocument,
I still see a progress bar during printing.

pdfx.PrintDocument pdfId, PXCVA_Flags.PXCVA_NoUI

How do I turn off the Progress bar ?
User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 2353
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: Disabling (hiding) printer progress bar in ActiveX

Post by Vasyl-Tracker Dev Team »

The pseudo-code for deny progress displaying:
SetProperty("General.DenyProgressDisplaying", true, 0);
Vasyl Yaremyn
Tracker Software Products
Project Developer

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
WayneH
User
Posts: 48
Joined: Mon May 21, 2007 5:39 pm

Re: Disabling (hiding) printer progress bar in ActiveX

Post by WayneH »

Great, thanks.

By the way, the help file states:
Allow/deny progress dialog displaying.
For possible named values, see the Booleans.
Default value is 1 (progress displaying allowed).
I believe the default is actually "0" False.

As in my other post, for the next release I'd like to see these verbs as an Enum/Type/ etc.
so we can take advantage of our Object-based IDEs.
User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 2353
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: Disabling (hiding) printer progress bar in ActiveX

Post by Vasyl-Tracker Dev Team »

As in my other post, for the next release I'd like to see these verbs as an Enum/Type/ etc.
The name of verb "General.DenyProgressDisplaying" represents the special property which located in objects TREE as:

General (Collection of simple properties and other collections)
...
|-- DenyProgressDisplaying (Simple Boolean Property)
...

The our objects tree cannot be interpreted as simple Enum/Type/ etc.

Also you can use variant of call (use named value):
SetProperty("General.DenyProgressDisplaying", "True", 0);

For details about objects tree, look to ActiveX documentation.
Vasyl Yaremyn
Tracker Software Products
Project Developer

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
WayneH
User
Posts: 48
Joined: Mon May 21, 2007 5:39 pm

Re: Disabling (hiding) printer progress bar in ActiveX

Post by WayneH »

I ended up just building my own VB Class, so that I can
avoid having to type in exact text and instead can use my IDE.

So I can now do this:
MyPDF.DenyProgress
which evaluates to "General.DenyProgressDisplaying"
User avatar
John - Tracker Supp
Site Admin
Posts: 5219
Joined: Tue Jun 29, 2004 10:34 am
Location: United Kingdom
Contact:

Re: Disabling (hiding) printer progress bar in ActiveX

Post by John - Tracker Supp »

Pleased you came up with a solution :)
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com
WayneH
User
Posts: 48
Joined: Mon May 21, 2007 5:39 pm

Re: Disabling (hiding) printer progress bar in ActiveX

Post by WayneH »

Actually, I'm going one step further and building my own User Control.
So I can do this:
PDFX.DenyProgress=True
etc.
User avatar
John - Tracker Supp
Site Admin
Posts: 5219
Joined: Tue Jun 29, 2004 10:34 am
Location: United Kingdom
Contact:

Re: Disabling (hiding) printer progress bar in ActiveX

Post by John - Tracker Supp »

Cool :)
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com
Post Reply