Free Support Forum - aspose.com

PDF output to 'classic' ASP stream

Dim pdf As Pdf = New Pdf()
pdf.BindXML("C:/xml/Test.xml",Nothing)
Response.ClearContent()
Response.ClearHeaders()
Response.ContentType="application/pdf"
pdf.Save(Response.OutputStream)
Response.End()

This code works fine in .NET. But is it possible to save the pdf to a classic ASP response object?

Hi, Marang
Thanks for considering Aspose.Pdf.
Aspose.Pdf can save the pdf to a asp response object as well as to a output stream . Please refer to http://www.aspose.com/Products/Aspose.Pdf/Api/Aspose.Pdf.Pdf.Save2.html for the details.

Please also refer to Accessing Component from COM Clients .

Kevin Zuo wrote:
Hi, Marang
Thanks for considering Aspose.Pdf.
Aspose.Pdf can save the pdf to a asp response object as well as to a output stream . Please refer to http://www.aspose.com/Products/Aspose.Pdf/Api/Aspose.Pdf.Pdf.Save2.html for the details.


Yes, but this is .NET code. I want to save to the 'old' asp response object, the one before .NET (Visual Basic 6.0)