|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Printing XSL document in Windows .NET ApplicationHello,
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 Printing has to be done manually in .NET. By that I mean to have to create a
print document object. Set it up with PrintSettings and call print. Then handle the printpage event and draw on a Graphics surface what needs to come out of the printer. It isnt a trivial task but is doable with a lot of code. What would probably be easier for you is to spit out a HTML file from you XSL sheet and open it in IE for the user to print. You could also load the text from the report into a RichTextBox and there are lots of samples on the web of how to print formatted contents from those. Ciaran O'Donnell Show quote ".NETUser" wrote: > 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 > > |
|||||||||||||||||||||||