Printing an html/xml

skunkx1

New member
Joined
Aug 4, 2005
Messages
4
Programming Experience
Beginner
hello,
I have a program that takes a dataSet, transforms it to xml and then transforms it with an xslt. The final file is saved as an html. The code looks like this:


Dim htmlFileName As String = "C:\Inetpub\wwwroot\MITWebSite\Print.html"
Dim xslStyleSheet As String = "C:\Inetpub\wwwroot\MITWebSite\PrintXSL.xsl"
Dim xmlDoc As XmlDataDocument = New XmlDataDocument(dataListDataSet)
Dim xslTran As XslTransform = New XslTransform
xslTran.Load(xslStyleSheet)
Dim writer As XmlTextWriter = New XmlTextWriter(htmlFileName, System.Text.Encoding.UTF8)
xslTran.Transform(xmlDoc, Nothing, writer)

This all occurs when the 'Print' button is pressed. How may I have the program open the html and automatically print it (or print it without opening it)?

Thanks for your help......
 
Back
Top