示例#1
1
// --------------------------------------------------------------------------- 
    public void Write(Stream stream) {
      using (ZipFile zip = new ZipFile()) {
        Subscribe s = new Subscribe();
        byte[] pdf = s.CreatePdf();
        zip.AddEntry(Utility.ResultFileName(s.ToString() + ".pdf"), pdf); 
        InspectForm i = new InspectForm();
        zip.AddEntry(RESULTTXT, i.InspectPdf(pdf));             
        zip.Save(stream);             
      }
    }    
示例#2
0
// ---------------------------------------------------------------------------
        public void Write(Stream stream)
        {
            using (ZipFile zip = new ZipFile()) {
                Subscribe s   = new Subscribe();
                byte[]    pdf = s.CreatePdf();
                zip.AddEntry(Utility.ResultFileName(s.ToString() + ".pdf"), pdf);
                InspectForm i = new InspectForm();
                zip.AddEntry(RESULTTXT, i.InspectPdf(pdf));
                zip.Save(stream);
            }
        }