I don't know if this is the best way to do this or not, but I had to print
an HTML page from the command line in another file. On Windows, one way
to do this is as below:
rundll32.exe mshtml.dll,PrintHTML "c:\temp\allclasses-frame.html"
This brings up Internet Exploder's print panel directly for that file. I
don't if this command is accessible from IEHtmlWindow.
HTH,
Hubert Hickman
hubert@tconl.com
T.Peter Herndon wrote:
Hello,
I built an application that uses a Cheetah template as a template for a
report. The app allows the end-user to choose the parameters of the
report, then fills in the template, generating an HTML document. Under
wxPython 2.4, I was using a wx.html.HtmlWindow to display the page, and
was using standard buttons and events to allow the end user to print the
page.
Moving to 2.5, the rendering engine in wx.html.HtmlWindow has changed,
and my page no longer renders the same. In short, yuck. I am trying to
use wx.lib.iewin.IEHtmlWindow in its place, as IE renders my page
reasonably well. However, I can not figure out how to tell the
IEHtmlWindow to print. I know I can right-click on the window and
choose Print... from the context menu, but I'd like to be able to do
this with a clearly-labeled button. Is there a way to send a print
command to the window? Would that be the normal wx.Printer, wx.Printout
way? I was using wx.html.HtmlEasyPrinting on the old version.
Alternately, is there a way to show the IE menu and/or toolbars? I
noticed a ShowBrowserBar method, but it takes parameters that I don't
know anything about.
···
Thanks in advance for your help,
---Peter Herndon
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org