1) I have problem with work in Lock and Unlock.
When I Lock driver for document name( defhtml_filename ), function
PDF.SetDocFileProps( defhtml_filename, 16531, "", defdirectory + defpdf_filename );
not work properly.
I must use insted functions:
PDF.FileNameOptionsEx = cdiNoPrompt + cdiUseFileName + cdiEmbedFonts + cdiMultilingualSupport + cdiAddIdNumber; // = 16531;
PDF.DefaultDirectory = defdirectory;
PDF.DefaultFileName = defdirectory + defpdf_filename;
but this functions aren't save thread. (and other process can change my setings).
2) Print window
Why driver always show window Print...
I use driver on server and don't want see it !!!
----------------------------------------------------
Below is code I use in .NET c#
CDIntfEx.CDIntfEx PDF = new CDIntfEx.CDIntfExClass() ;
try
{
PDF.DriverInit ( PDFprinter );
PDF.EnablePrinter (strLicenseTo, strActivationCode);
PDF.SetDefaultPrinter();
PDF.FileNameOptionsEx = cdiNoPrompt + cdiUseFileName + cdiEmbedFonts + cdiMultilingualSupport + cdiAddIdNumber; // = 16531;
PDF.DefaultDirectory = defdirectory;
PDF.DefaultFileName = defdirectory + defpdf_filename;
PDF.Lock( defhtml_filename );
//PDF.SetDocFileProps( defhtml_filename, 16531, "", defpdf_filename ); //this not work
PDF.BatchConvert( defdirectory + defhtml_filename );
PDF.FileNameOptionsEx = 0;
PDF.DefaultFileName = "";
}
catch(Exception e)
{
PDF.FileNameOptionsEx = 0;
PDF.DefaultFileName = "";
PDF.Unlock( defhtml_filename, 500 );
}
finally
{
PDF.RestoreDefaultPrinter();
PDF.DriverEnd();
}
Problem with 1) Lock&Unlock and 2) Printer window
Hello,
1) Please check that "defhtml_filename" contains the name of the print job as it appears when printing the document. If you are using Internet Explorer 5 and above as browser the job name will be the same as the html file name, if you are using another web browser to print the html files than the job name may change.
2) You can use HTML2PDF (http://www.amyuni.com/en/support/downloads.html) to print the html files to the printer without getting the print dialog box.
If you need further assistance please feel free to contact support@amyuni.com
Thanks.
1) Please check that "defhtml_filename" contains the name of the print job as it appears when printing the document. If you are using Internet Explorer 5 and above as browser the job name will be the same as the html file name, if you are using another web browser to print the html files than the job name may change.
2) You can use HTML2PDF (http://www.amyuni.com/en/support/downloads.html) to print the html files to the printer without getting the print dialog box.
If you need further assistance please feel free to contact support@amyuni.com
Thanks.