|
<%@ Page Language="C#" Debug="true" %> <% byte[] pdfImg = null; try { using(WFR2025.WfrControl wfrObj = new WFR2025.WfrControl(WFR2025.CT.SERVER)) { wfrObj.Open(Server.MapPath(Request.QueryString.Get("File"))); wfrObj.Import("#1", WFR2025.IT.CSV_UTF8, Server.MapPath(Request.QueryString.Get("Csv"))); wfrObj.Create(); pdfImg = wfrObj.GetPageImage(2, WFR2025.IMAGETYPE.JPEG, 1200, 2400); Response.ContentType = "image/jpeg"; Response.BinaryWrite(pdfImg); } } catch(Exception ex) { Response.ContentType = "text/plain"; Response.Write("ERROR" + ex.Message); } pdfImg = null; %> |