Hello to all, I would like to consult following: I have successfully implemented printing via COM in Delphi but behavior of settings and default printer is quite strange - sometimes works OK, sometimes incorrect settings are encountered.
For example, if I set some options like this:
pdff:=tclspdfcreator.create(self);
with pdff do
begin
cdefaultprinter:='PDFCreator';
cstart('/NoProcessingAtStartup',true);
cclearcache;
oldco1:=coption['UseAutosave'];
oldco2:=coption['UseAutosaveDirectory'];
oldco3:=coption['AutosaveFormat'];
oldco4:=coption['AutosaveDirectory'];
oldco5:=coption['AutosaveFilename'];
coption['UseAutosave']:=1;
coption['UseAutosaveDirectory']:=1;
coption['AutosaveFormat']:=0;
coption['AutosaveDirectory']:=inipts;
coption['AutosaveFilename']:='dokument.pdf';
cPrinterStop:=false;
cprintfile(inipts+'\\dokument.rtf');
repeat until cIsConverted;
coption['UseAutosave']:=oldco1;
coption['UseAutosaveDirectory']:=oldco2;
coption['AutosaveFormat']:=oldco3;
coption['AutosaveDirectory']:=oldco4;
coption['AutosaveFilename']:=oldco5;
cclose;
destroy;
end;
Is it necessary to use any other method for saving options, for example for restoring original default printer ? In other words - what should be set to switch from default printer to PDFC and vice versa ?
And the second issue especially for PDFC team - I intend to donate about USD 300 for PDFC development but I would invite better technical support or (at least) complete documentation of particular properties, methods and events. Would it be possible ?
Thank you for any answer.
Karel