|
Hi,
I am trying to convert a HTML file to TIFF format using the EPrint printer. I am setting the save options of the printer in the code dynamiccaly as follows:
EpnUISettings epnUISettings = new EpnUISettings();
const int HIDE_STATUS_DIALOG = 0x0010;
epnUISettings.ShowOptions = HIDE_STATUS_DIALOG;
ePrint.SetPrinterUISettings("LEADTOOLS ePrint 5", epnUISettings);
short printersaveoptions = 0;
EpnMultiSaveOptions saveOptions = new EpnMultiSaveOptions();
printersaveoptions = ePrint.GetPrinterSaveOptions(PRINTER_NAME, ref saveOptions);
string m_strOutputFile = @"C:\test.tiff";
saveOptions.UseSave = true;
saveOptions.SaveElementsCount = 1;
saveOptions.get_PrinterSaveOptions(0).SaveOptions.Format = ePrintFileConstants.FILE_TIFLZW;
saveOptions.get_PrinterSaveOptions(0).SaveOptions.FileName = m_strOutputFile;
saveOptions.get_PrinterSaveOptions(0).SaveOptions.DocumentOptions.MultiPageFile = true;
saveOptions.get_PrinterSaveOptions(0).Flags = 0;
saveOptions.get_PrinterSaveOptions(0).SaveOptions.DocumentType = DocumentTypeConstants.FT_SAVE_TYPE_RASTER;
saveOptions.get_PrinterSaveOptions(0).SaveOptions.Format = ePrintFileConstants.FILE_TIFLZW;
saveOptions.get_PrinterSaveOptions(0).SaveOptions.RasterOptions.QFactor = 2;
Though I am setting the Save Options in the code, I am still getting the Save As Dialog box popped up. How can I avoid the Save As dialog box popping up and set the options in the code itself dynamically?
Thanks.
|