Jul 07, 2009, 10:39 PM
PDF open from TabPanel
Hi,
I am trying to open a PDF from an asp.net page inside a TabPanel and then show save/open dialog of either IE or FF the code is
Status code: 200
Status text: BADRESPONSE: Syntax error
I should add that from a GridPanel it works fine as in this example
http://forums.ext.net/showthread.php...?Highlight=pdf
and from a TabPanel in AutoLoad as in this example
http://forums.ext.net/showthread.php...?Highlight=pdf
Can I change the Response inside a TabPanel and is there a way to display a Save\Open dialog window from a TabPanel?
I am trying to open a PDF from an asp.net page inside a TabPanel and then show save/open dialog of either IE or FF the code is
Response.ContentType = "application/pdf";
Response.Cache.SetCacheability( System.Web.HttpCacheability.Public );
Response.AppendHeader( "Content-Type", "application/pdf" );
Response.AppendHeader( "Content-Disposition", "attachment; filename=testD.pdf" );
Response.OutputStream.Write( PDFData.GetBuffer(), 0, PDFData.GetBuffer().Length );
Response.OutputStream.Flush();
Response.OutputStream.Close();
I have a button that fires an AjaxEvent but the browser returns this response,Status code: 200
Status text: BADRESPONSE: Syntax error
I should add that from a GridPanel it works fine as in this example
http://forums.ext.net/showthread.php...?Highlight=pdf
and from a TabPanel in AutoLoad as in this example
http://forums.ext.net/showthread.php...?Highlight=pdf
Can I change the Response inside a TabPanel and is there a way to display a Save\Open dialog window from a TabPanel?