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("con tent-lengt h",result. Length.ToS tring());
Response.ContentType = "application/pdf";
Response.BinaryWrite(resul t);
Response.Flush();
Response.Close();
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("con
Response.ContentType = "application/pdf";
Response.BinaryWrite(resul
Response.Flush();
Response.Close();
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.
ASKER
can you be more elaborate>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.