I'm not sure how to use the wx.html.HtmlEasyPrinting module, I'm sorry to say. The documentation is less than helpful, although that may well be attributed to my newbishness over their lack of documentation.
So suppose I decided to embed, say, Google Chrome into my program, to utilize its printing capabilities. How would I go about doing that? :3 I've never had to embed a browser in my code before... On 6 July 2011 12:54, Tim Roberts <t...@probo.com> wrote: > Anthony Sterrett wrote: > > What are the available data types accepted by /tuple/ in > > win32print.StartDocPrinter(/hprinter, level, tuple/)? Or, if this is > > determined by my printer driver, how can I find this information? > > RAW and EMFSPOOL are predefined. The printer driver might define other > types, but few do so. > > > I am trying to hack together a program that will print a html file > > I've generated onto a 3x5 index card... code below: > > ... > > So what I'm really asking, if anyone can answer, is this: How do I > > turn my HTML file into something I can print? > > You have to render the HTML, just like a browser would. That, of > course, is not a trivial task, especially if you have tables and > stylesheets. You could use Internet Explorer to do this, or embed one > of the other browsers. > > Perhaps you should look at the wx.html.HtmlEasyPrinting module in > wxPython. It doesn't take arbitrary HTML, but it works for generating > reports and things. > > -- > Tim Roberts, t...@probo.com > Providenza & Boekelheide, Inc. > > _______________________________________________ > python-win32 mailing list > python-win32@python.org > http://mail.python.org/mailman/listinfo/python-win32 >
_______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32