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

Free Support Forum - aspose.com


On a save, if I specify Generator.SaveType.OpenInBrowser, it opens using the current browser window. How can I force it to use a new browser window?

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

Well, there can be two options. One is to open the file in Adobe Acrobat if you use SaveType.OpenInAcrobat. But, if you want to open a new browser window then you might need to use javascript e.g.

Response.write("window.open(' " + pdfFileName + " ','mywindow','width=600,height=400')");

This may not be possible using the streams as the stream sends the response to the windows that requests it.

You can also check the following thread and see if that can be a work arround.

You may check ASP.NET or Javascript forum to get more insight about this as this is not related to Aspose.Pdf for .NET but with how the HTTP Response works. Hope this helps.

Thank You & Best Regards,