|
<%@ 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.GetPageImage(1, WFR2025.IMAGETYPE.PNG, 600, 300); Response.ContentType = "image/png"; Response.BinaryWrite(pdfImg); } } catch(Exception ex) { Response.ContentType = "text/plain"; Response.Write("ERROR" + ex.Message); } pdfImg = null; %> |