i need to output a webpage in pdf format... is there any com object i can use to do this.
Things i already know:
*pdf files are binary files. Therefor i could use the appropriate content type with a response.binarywrite "binarystring"
using a XSL stylesheet.
*------------------------my sample. for some reason this does not work
Code:
Set objXMLHTTP= Server.CreateObject("Microsoft.XMLHTTP")
objXMLHTTP.Open "GET", "http://localhost/siteroot/page.html", False
objXMLHTTP.Send
Response.AddHeader "Pragma", "no-cache"
Response.ContentType = "application/pdf"
Response.BinaryWrite objXMLHTTP.responseBody
Set xml = Nothing
*---------------------------------------------------------
i used the following com object: Microsoft.XMLHTTP to generate the binarystring and not XSL.
the output is gen. but its not pdf format.
need suggession/solution ASAP.