Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, October 21, 2009 1:13:23 PM(UTC)
pkomakula

Groups: Registered
Posts: 7


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.

 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Thursday, October 22, 2009 12:13:03 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

Was thanked: 1 time(s) in 1 post(s)

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
 
#3 Posted : Thursday, October 22, 2009 5:42:36 AM(UTC)
pkomakula

Groups: Registered
Posts: 7


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

 

 
#4 Posted : Thursday, October 22, 2009 6:37:54 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

Was thanked: 1 time(s) in 1 post(s)

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
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.069 seconds.