Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

How to supress Save As Dialog box for EPrint
Started by pkomakula at 10-21-2009 18:18. Topic has 3 replies.

Print Search « Previous Thread Next Thread »
  10-21-2009, 18:18
pkomakula is not online. Last active: 10/22/2009 3:46:37 PM pkomakula

Not Ranked
Joined on 07-03-2009
Posts 7
How to supress Save As Dialog box for EPrint
Reply Quote

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.


   Report 
  10-22-2009, 5:18
Maen Hasan is not online. Last active: 3/15/2010 4:38:38 PM Maen Hasan



Top 10 Posts
Joined on 08-05-2004
Posts 2,563
Re: How to supress Save As Dialog box for EPrint
Reply Quote
If you don't want to show the ePrint Save As dialog you can either use a task printer (they don't have Save As dialogs) or you can enable the ShowUI event but not handle it.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
   Report 
  10-22-2009, 10:47
pkomakula is not online. Last active: 10/22/2009 3:46:37 PM pkomakula

Not Ranked
Joined on 07-03-2009
Posts 7
Re: How to supress Save As Dialog box for EPrint
Reply Quote

Can you please tell me what changes to make in the above code? Or can you please provide me some sample code. I tried all possible ways....but I'm still getting the Save As dialog popped up.

Thanks

 


   Report 
  10-22-2009, 11:42
Maen Hasan is not online. Last active: 3/15/2010 4:38:38 PM Maen Hasan



Top 10 Posts
Joined on 08-05-2004
Posts 2,563
Re: How to supress Save As Dialog box for EPrint
Reply Quote
The following forum post contains useful information about how to hide the Save dialog box when printing with ePrint 5:
http://support.leadtools.com/SupportPortal/CS/forums/24986/ShowPost.aspx

Thanks,
Maen Badwan
LEADTOOLS Technical Support
   Report 
Post
LEAD Support Fo... » Enduser » ePrint » How to supress Save As Dialog box for EPrint

Powered by Community Server, by Telligent Systems