|
Rank: Newbie Groups: Member
Joined: 2/20/2015 Posts: 2
|
Hi, I'm evaluating the EO products, to see if they are functional for our needs and then purchase a license.
I'm using VB2010 express, I have a form with one eo.webcontrol and one eo.webview I want to print (or print a PDF file) fron a html file, setting some parameters, but I have a strange behaviour:
Dim pd As New PrintDocument() pd.PrinterSettings = EO.WebBrowser.WebView.GetDefaultPrintSettings()
'I can set some properties: pd.PrinterSettings.DefaultPageSettings.Margins.Top 'working
'but not some others: pd.PrinterSettings.DefaultPageSettings.Color = True 'not working pd.DefaultPageSettings.Color = True 'not working
whay I'm missing here?
Thanks.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi, Unfortunately that is not supported. Pretty much the only settings that actually work is the settings presented by the Windows's print dialog. For example, if you open notepad and then select File -> Print, you will see the print dialog. There are only a few options there. These are the settings that are associated to each print job. the color settings are settings for the printer (you can access them from the "Preference" button in the standard print dialog), not to the print job, so they are "global settings". You can find some code that can change global settings here: http://www.codeproject.com/Articles/6899/Changing-printer-settings-using-CHope this helps. Please feel free to let us know if you still have any more questions. Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 2/20/2015 Posts: 2
|
Ok, understood. Maybe I'm looking at the wrong parameter, the "color", let me explain better:
I have an html page, with tables and some cells are colored or grayed.
If I print that page from the browser (Internet Explorer for example) on a b/w printer, I have to check in the IE print dialog "print background images and colors". That way the print come out in black but perfect (colored cells are in grayscale) If I do not check "print background images and colors", the print come out without the colored cells. The printed page is incomplete.
And with EO objects is like I have to flag to enable color->grayscale. Is the color parameter what I'm looking for?
Thanks
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
Unfortunately, we do not have this option now. We may add this option in our next release though. We would read that value and generate black/white rendering on the engine side.
Thanks!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
|
|