User login

Who's online

There are currently 0 users and 64 guests online.

Advertisements


SourceForge.net Logo

Autosave not working (COM)

Submitted by abif on Thu, 2008-07-31 22:21.

I use Delphi 7. After I set the AutosaveDirectory Option with my program, the pdfs are being saved in the previous directory set in PDFCreator. Only the next time I run my program the pdfs are saved in the correct directory. My code is:

O_Creator:= CreateOleObject('PDFCreator.clsPDFCreator');
If O_Creator.cStart('/NoProcessingAtStartup') = False Then
msg('Can\'t initialize PDFCreator');
O_Creator.cVisible:= False;
O_Creator.cClearCache;
O_Creator.cClearLogfile;
O_Options:= CreateOleObject('PDFCreator.clsPDFCreatorOptions');
O_Options:= O_Creator.cOptions;
O_Options.UseAutosave:= 1;
O_Options.UseAutosaveDirectory:= 1;
O_Options.AutosaveFormat:= 0;
O_Options.AutosaveDirectory:= DirPDF;
O_Options.AutosaveFilename:= '';
O_Options.NoConfirmMessageSwitchingDefaultprinter:= 1;
O_Creator.cSaveOptions(O_Options);
O_Creator.cClose;

Thank you very much!

© 2006 by pdfforge.org :: Contact us

Validate XHTML or CSS.