Пример #1
0
// ---------------------------------------------------------------------------
    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);
      }
    }
Пример #2
0
// ---------------------------------------------------------------------------
        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);
            }
        }