Lock( ) and SetDocFileProps( ) ignore NoPrompt option?

The Amyuni PDF Converter is our Printer Driver that enables you to convert any documents to PDF format. If you have any questions about installing and using the Amyuni PDF Converter please post them here.
Post Reply
chrisg
Posts: 8
Joined: Thu Dec 21 2006

Lock( ) and SetDocFileProps( ) ignore NoPrompt option?

Post by chrisg »

I must be missing something. Here's my code snippet:

-----------
Lock( Driver, lockfilename );
SetDocFileProps( Driver, lockfilename, 0x01| 0x02 | 0x010 | 0x400000, Directory, FileName );
EnablePrinter( Driver, company, licensekey );
-----------

If I add calls to SetDefaultFileName( ) and SetFileNameOptions( ) after the SetDocFileProps( ) above, then the Save dialog doesn't display. However I don't know if the Lock is essentially void at that point. My understanding from the documentation is that SetDocFileProps( ) is to be used in place of SetDefaultFileName and SetFileNameOptions.

Sending 0x01 should cause the filename dialog box to not come up. However it still does when the print job starts. What am I missing?

I'm using Document Converter 2.51 (developer version).
chrisg
Posts: 8
Joined: Thu Dec 21 2006

Post by chrisg »

My changing some of my code around, this problem has gone away. I can't say what changes fix it, however.
Post Reply