Windows does not have any native SVG support so trying the ShellExecute trick is not likely to work unless you have the Adobe viewer installed.
Generate a PNG instead of an SVG and you will be able to use the PIL + win32all method. -Chris On Thu, Sep 08, 2005 at 07:49:53PM +0200, Rob Marino wrote: > Hi Chris.. > > Yeah,what a headache!!! > > I'm currently using matplotlib to produce graphs in a gtk app. It's > capable of /saving /in .svg format,/displaying /? No way!! > > I've tried out some of the Tim Golden tips and, as nice as they are,when > you try and send an .svg file to a win32 printer using win32api and it > just burps and says no thanks. > > win32api.ShellExecute (0, "print", svg_file_name, None, ".", 0) = > fuggedaboudit!!! > > I'm at my wits end as there appears to be no simple way to perform this > triviality!! > > Don't know what to do. > > Rob M. > > Chris Lambacher wrote: > > >Hi, > > > >Check out Tim Golden's site for info on printing in win32: > >http://tgolden.sc.sabren.com/python/win32_how_do_i/print.html > > > >I am currently using the PIL method to print PNG files. There is a > >win32all > >limitation in the print dialog that makes it (currently) impossible to use > >it > >to provide an interface to users to select printer settings. > > > >A prerequisite would be having a SVG rasterizer. Anti-Grain Geometry > >might do > >this for you. There is no SVG gtk-pixbuf loader for win32 that I know of > >so > >you can't have GTK do this for you. If you are displaying SVG files on > >win32 > >in GTK please let me know how so that I can do it too :) > > > >-Chris > > > >On Thu, Sep 08, 2005 at 07:04:25PM +0200, Rob Marino wrote: > > > > > >>Hi. > >> > >>Does anyone know of a convenient pythonic way to print svg files on win32? > >> > >>Rob M. > >>_______________________________________________ > >>pygtk mailing list [email protected] > >>http://www.daa.com.au/mailman/listinfo/pygtk > >>Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/ > >> > >> > >_______________________________________________ > >pygtk mailing list [email protected] > >http://www.daa.com.au/mailman/listinfo/pygtk > >Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/ > > > > > > > > > > -- > O__ > _/`.\ > `=( ' > _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
