// --------------------------------------------------------------------------- public void Write(Stream stream) { SubmitForm x = new SubmitForm(); x.WebContext = HttpContext.Current; if (x.WebContext != null) { Subscribe sub = new Subscribe(); byte[] pdf = sub.CreatePdf(); x.WebContext.Response.ContentType = "application/pdf"; x.ManipulatePdf(pdf, stream); } else { x.SendCommandLine(stream); } }
// --------------------------------------------------------------------------- public void Write(Stream stream) { SubmitForm x = new SubmitForm(); x.WebContext = HttpContext.Current; if (x.WebContext != null) { Subscribe sub = new Subscribe(); byte[] pdf = sub.CreatePdf(); x.WebContext.Response.ContentType = "application/pdf"; x.ManipulatePdf(pdf, stream); } else { x.SendCommandLine(stream); } }