Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / November 2006

Tip: Looking for answers? Try searching our database.

Printing XSL document in Windows .NET Application

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
.NETUser - 07 Nov 2006 21:42 GMT
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
Ciaran O''Donnell - 10 Nov 2006 10:01 GMT
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

> Hello,
>    I hope that I can explain this correctly. I am trying to print a
[quoted text clipped - 5 lines]
>
> Thanks

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.