We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

PDF to new browser window


Cannot figure out how to open a pdf document into a new browser window. The code with which I generate the pdf is:

Dim doc As Document = New Document(tstr)
Dim builder As DocumentBuilder = New DocumentBuilder(doc)
builder.InsertHtml(tstr) 'html text to show
doc.ViewOptions.ZoomPercent = 100
With doc
.SaveOptions.PdfExportImagesFolder = System.Configuration.ConfigurationManager.AppSettings("PathImages")
.Save("myfile.pdf", SaveFormat.Pdf, SaveType.OpenInBrowser, Response)
end with


<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. Please see the following forum thread to learn how you can achieve this:

Hope this helps.

Best regards.