Home All Groups Group Topic Archive Search About

Printing a document in XSL using VB.NET

Author
7 Nov 2006 9:37 PM
.NETUser
Hello,
   I hope that I can explain this correctly. I am trying to print a
specific report based upon user's input in a Windows application. I'm a
newbie to XSL and unaware of how to go about this. Basically, I want to
create the XML file based on the user's input, format the report with
XSL and then send the new document to the printer. Any sample code
would be appreciated as I have no idea of how to go about this.

Thanks

Author
8 Nov 2006 11:52 AM
Rick
What kind of report are you producing?  HTML, RTF, PDF?

A general solution is to output your report from the xslt transformation to
a file and then use System.Diagnostics.Process.Start() to print.

For help with XSLT you can start with
http://www.dpawson.co.uk/xsl/sect2/sect21.html.

Rick

Show quoteHide quote
".NETUser" <takal***@gmail.com> wrote in message
news:1162935461.924737.84830@m73g2000cwd.googlegroups.com...
> Hello,
>   I hope that I can explain this correctly. I am trying to print a
> specific report based upon user's input in a Windows application. I'm a
> newbie to XSL and unaware of how to go about this. Basically, I want to
> create the XML file based on the user's input, format the report with
> XSL and then send the new document to the printer. Any sample code
> would be appreciated as I have no idea of how to go about this.
>
> Thanks
>