|
<%@ Page Language="C#" Debug="true" %> <% byte[] pdfImg = null; try { using(WFR2025.WfrCommand wfrObj = new WFR2025.WfrCommand(WFR2025.CT.SERVER)) { wfrObj.Open(Server.MapPath(Request.QueryString.Get("File"))); wfrObj.Import("#1", WFR2025.IT.CSV, Server.MapPath(Request.QueryString.Get("Csv"))); wfrObj.Create(); pdfImg = wfrObj.GetPdfImage(); Response.ContentType = "application/pdf"; Response.BinaryWrite(pdfImg); } } catch(Exception ex) { Response.ContentType = "text/plain"; Response.Write("ERROR" + ex.Message); } pdfImg = null; %> |