We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to steam/open a pdf in a new window.

Thread ID:

Created:

Updated:

Platform:

Replies:

74065 May 29,2008 07:26 AM Jun 9,2008 12:23 AM ASP.NET Web Forms (Classic) 3
loading
Tags: PDF
Administrator [Syncfusion]
Asked On May 29, 2008 07:26 AM

Hi,
I am using the following code to stream a newly created pdf to internet explorer.

HttpResponse _response=HttpContext.Current.Response;
doc.Save("Quote-TAGP-" + Session["SelectedQuote"].ToString()+ ".pdf",_response, HttpReadType.Open);

I would like the pdf to open in a new window, and have read that this is not possible. Is there a way I can acheive the same required result, i.e. the pdf is displayed in a new inernet explorer window.

Thanks, Alasdair.


Sri Subhashini M [Syncfusion]
Replied On May 29, 2008 09:21 AM

Hi Alasdair,

It is possible to open pdf in new browser. To keep the pdf object live on new window you need to create a session variable with pdf document object. To popup a new browser window , use window.open() method.

Please look into the sample from the below specified link and let me know if this helps.

http://websamples.syncfusion.com/samples/PDF.Web/6.3.0.6/74065/main.htm



Regards,
Suba




Administrator [Syncfusion]
Replied On June 3, 2008 06:07 PM

Hi Suba, Thanks for your fast response. The code example you sugested works great. Regards, Alasdair.

>Hi Alasdair,

It is possible to open pdf in new browser. To keep the pdf object live on new window you need to create a session variable with pdf document object. To popup a new browser window , use window.open() method.

Please look into the sample from the below specified link and let me know if this helps.

http://websamples.syncfusion.com/samples/PDF.Web/6.3.0.6/74065/main.htm



Regards,
Suba






Sri Subhashini M [Syncfusion]
Replied On June 9, 2008 12:23 AM

Hi,

Glad to know that it helps you.

Please let me know if you have any other queries.

Best,
Suba


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;