Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Catch printing into a file
Message
From
17/09/2006 15:33:04
 
 
To
15/09/2006 17:17:15
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01154292
Message ID:
01154494
Views:
7
>I'm implementing an ActiveX which will allow text editing within the app, but not exporting texts. The texts can be saved, but will be encrypted and not usable outside the app.
>
>So far so good, no problem expected yet. However, the app must allow printing. I need to detect printing via a driver which actually exports into a reusable file (PostScript, PDF), and prevent it.
>
>Is there a way (API?) to detect which printers may require or offer printing into a file? Or should I just check for usual suspects (anything with PDF, Post Script and Generic/Text in the printer name)?

In general I don't think you can do this. For example, you can't prevent someone from installing a 3rd party port redirector and sending a print job anywhere they like.

Even standard network redirection could be tough to handle:
1. User sets up a PDF printer on "Server", gives it a share name of "NetPrint"
2. This printer gets installed on a workstation, as "\\Server\NetPrint". There is no indication in its name that it's a PDF printer driver.
There might be some clue via something like WMI that the remote printer prints to PDF but I wouldn't count on it. Especially if the server computer is Novell, Linux etc.

It's worth pointing out that there are a lot of people with legitimate PostScript printers who will be annoyed if you prevent them creating paper output on them.

Finally, there's little preventing a user from optically scanning paper output into files.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform