On Jul 14, 11:58*am, "Leo Seccia" <lsec...@msn.comwrote:
Hello,
look at this:http://www.codeproject.com/KB/printing/printhml.aspx
Hope it helps.
Leo
"Andrew Meador" <and...@meadorcrafts.comwrote in message
news:04**********************************@t54g2000 hsg.googlegroups.com...
* I have a button on my form to "Print". I would like to create an
HTML file, of the output, and call the Explorer...Print function when
this "Print" button is clicked. How can I do this - the
Explorer...Print part? I can create the HTML file, just need help with
calling the Explorer...Print function - supplying the path to the file
so that only the Print Dialog pops up once they click on "Print"
Thanks!- Hide quoted text -
- Show quoted text -
Thanks Leo - this was what I was looking for. Got it done and it
works perfectly. I HATE windows printing. I have been looking at
ASP.NET programming a bit lately and didn't see why I shouldn't just
have my app create an HTML file/report and use this method to print
the html file. I seems to me that this is a lot easier than dealing
with the whole GDI/drawing approach. I get tables, borders, fonts,
etc... without having to deal with the font size calculations, line
spacing/tracking, etc...
If there is any other way that you guys recommend, I'm all ears,
but until then - I like this method! :)
Andrew