Files
WebGIM/WebSites/WebGIM/ExportPdf.aspx.cs
T
samuele 22c9acb675 - Aggiunta pagina ExportPdf.aspx
- Aggiunto installer

git-svn-id: https://keyhammer.ath.cx/svn/WebGIM/trunk@33 3e04ef4b-3b25-4b6c-be27-bb5389ca777b
2009-01-22 17:36:30 +00:00

24 lines
830 B
C#

using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class ExportPdf : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
// carico i parametri per chiamare export...
string idx = Request.QueryString["idx"];
reportRichiesto tipo = (reportRichiesto)Convert.ToInt32(Request.QueryString["tipo"]);
// eseguo export
reportExporter re = new reportExporter();
re.popolaPdfStream(tipo, idx);
Response.Clear();
Response.ContentType = re.mimeType;
Response.AddHeader("content-disposition", "attachment; filename=WebGIM." + re.fileNameExtension);
Response.BinaryWrite(re.renderedBytes);
Response.End();
}
}