Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Catch printing into a file
Message
From
16/09/2006 11:51:09
 
 
To
16/09/2006 11:32:04
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:
01154389
Views:
15
This message has been marked as a message which has helped to the initial question of the thread.
>>>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)?
>>
>>Why I think all printer offers you to print to a file? Unfortunately I am not able to test this right now, but I think when you have printer prompt window you always have Print to file check box or you can attach printer to FILE port. Of course this will create unreadable file, but if somebody wants She/He will convert it to something readable.
>
>Right... so I only need to know which printer drivers force print to file, or at least how to weed out the obvious ones - PDF, PS, and maybe there are some which print to html.

You could check WMI_Printer* classes to see if there are some info about that.
You could use WMI Code creator to see what info these clases gives to you.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform