Link to home
Start Free TrialLog in
Avatar of aspnetdev
aspnetdev

asked on

Opening SQL Server 2005 report in PDF format in new window.

Hi,
I am calling SQL Server 2005 report from my asp.net application using web services.Everything looks fine except for that report is being rendered in same window.I want this pdf report to open in a different window.Can any one tell me what lines of code should i add it get this done.
Below are the last few lines of my code....and can any one tell me how do i get the response in a pop up or seperate window....

Response.ClearContent();
Response.AppendHeader("content-length",result.Length.ToString());
Response.ContentType = "application/pdf";
Response.BinaryWrite(result);
Response.Flush();
Response.Close();
Avatar of Christopher Kile
Christopher Kile
Flag of United States of America image

You have to have the request ask that the response be delivered to a new window, not the same window from which the request comes.
Avatar of aspnetdev
aspnetdev

ASKER

can you be more elaborate>
ASKER CERTIFIED SOLUTION
Avatar of Christopher Kile
Christopher Kile
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial