I'm currently testing ActiveX for our "PDF-viewing app" and found, that this is very useful and well-developed product. All is well except one very needed thing...
One of purposes of our app is to control of printing PDF files from ActiveX: we need to:
- deny printing to some printers
- disable "Print to file" option.
What solutions I've been tried:
1) Listen to event "Notifications.Print". When event occurs, I can get name of printer and decide, should I deny printing. If I need to stop printing job, the only thing that I can do is to call method "CloseDocument" ( which then puts ActiveX at some error state). Any other ways were tested, including aborting print job, but founded solution is the only one that can really abort printing.
2) Write my own print dialog and show it to user. That is very long way and I'm now on it, but it seems that rewriting print dialog takes much more time, then developing other stuff for my app.
OK, now the questions...
1) Is there any way to stop printing when event "Notifications.Print" occurs? For example, in event "Notifications.Mouse" we have property "Notifications.Mouse.Skip". It will be the best, if I could abort printing the same way.
2) Is there any possibility to "mark" some of the printers as "denied" before standard "Print dialog" will be shown?
3) Also I need to disable "Print to file" checkbox in standard "Print dialog". Is it possible in any way?
And, if answers to questions are "No", maybe anyone know how to solve such puzzles? I will be very grateful for the help )
Need more control on print
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: 2448
- Joined: Thu Jun 30, 2005 4:11 pm
Re: Need more control on print
We will add the new property for this:1) Is there any way to stop printing when event "Notifications.Print" occurs? For example, in event "Notifications.Mouse" we have property "Notifications.Mouse.Skip". It will be the best, if I could abort printing the same way.
Code: Select all
OnEvent(type, name, ...)
{
...
if ((type == PXCVA_OnNamedNotify) AND (name == "Notifications.Print"))
{
...
ax.SetProperty("Notifications.Print.Cancel", "true", 0, 0); // to cancel current printing job
}
...
}
Unfortunately, but no way for this.2) Is there any possibility to "mark" some of the printers as "denied" before standard "Print dialog" will be shown?
In the new build you will be able to use the:3) Also I need to disable "Print to file" checkbox in standard "Print dialog". Is it possible in any way?
ax.SetProperty("Print.AllowToFile", "false", 0, 0); // to disable "Print to file" feature.
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.
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
-
- User
- Posts: 3
- Joined: Tue Jul 13, 2010 7:39 pm
Re: Need more control on print
Oh, it would be great! But how quickly it will be implemented? I have an urgent project and deadline is about two weeks from now, so can I be sure ( and my boss too ) for this new functionality will be available until end of july? If yes, it would be great, otherwise I will need to write my own dialog.
-
- Site Admin
- Posts: 2448
- Joined: Thu Jun 30, 2005 4:11 pm
Re: Need more control on print
Hi, kirgiz.
The new build will be released at the beginning of August.
Please wait..
Best
Regards.
The new build will be released at the beginning of August.
Please wait..
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.
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
-
- User
- Posts: 3
- Joined: Tue Jul 13, 2010 7:39 pm
Re: Need more control on print
It were sounded well in july but today is the 27th of August.
No new releases, no new functionality...
We bought SDK two weeks ago...
Just to be sure, can we know exact day when we receive promised functionality?
Thanks.
No new releases, no new functionality...
We bought SDK two weeks ago...
Just to be sure, can we know exact day when we receive promised functionality?
Thanks.
-
- Site Admin
- Posts: 19913
- Joined: Mon Jan 12, 2009 8:07 am
Re: Need more control on print
Hello Kirgiz,
Apologies for the delay, but we are implementing some new features and they are taking longer than expected.
We assure you that we are working on and are aiming for the highest possible standard of code, so we also need to test everything extensively, so at this time, the estimates are that the new build would be available in around 10 days, but this is just an estimate and might change slightly.
Regards,
Stefan
Apologies for the delay, but we are implementing some new features and they are taking longer than expected.
We assure you that we are working on and are aiming for the highest possible standard of code, so we also need to test everything extensively, so at this time, the estimates are that the new build would be available in around 10 days, but this is just an estimate and might change slightly.
Regards,
Stefan
-
- Site Admin
- Posts: 2448
- Joined: Thu Jun 30, 2005 4:11 pm
Re: Need more control on print
The new features will be ready for usage on the end of this week.
Please wait some days.
Please wait some days.
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.