I can export to pdf,but I can't open the Pdf File.

Technical support for Spire.DataExport

Moderators: iceblue support, DataExport, Manager

I can export to pdf,but I can't open the Pdf File.

Postby Rain » Fri Sep 15, 2006 3:52 am

Response.Clear();
Response.AppendHeader("Content-Disposition", "attachment;filename=myPdf.pdf");
Response.ContentType = "Application/pdf";


try
{
System.IO.StringWriter stringWrite = new System.IO.StringWriter();
System.Web.UI.HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite);
table1.RenderControl(htmlWrite);
datagrid1.RenderControl(htmlWrite);
Response.Write(stringWrite.ToString());
Response.End();
}
Rain
 
Posts: 1
Joined: Fri Sep 15, 2006 1:29 am

Postby DataExport » Fri Sep 15, 2006 3:57 pm

Hello,

Whether you have described is the use of the Spire.DataExport problem?
Technical Support
Spire.DataExport Team

support@e-iceblue.com
DataExport
 
Posts: 35
Joined: Thu Jun 29, 2006 2:29 pm


Return to Spire.DataExport

Who is online

Users browsing this forum: No registered users and 0 guests