示例#1
0
// --------------------------------------------------------------------------- 
    public void Write(Stream stream) {
      using (ZipFile zip = new ZipFile()) {
        PagedImages p = new PagedImages();
        zip.AddEntry(RESULT, p.CreatePdf());
        zip.AddFile(RESOURCE1, "");
        zip.AddFile(RESOURCE2, "");
        zip.AddFile(RESOURCE3, "");
        zip.Save(stream);
      }
    }    
示例#2
0
// ---------------------------------------------------------------------------
        public void Write(Stream stream)
        {
            using (ZipFile zip = new ZipFile()) {
                PagedImages p = new PagedImages();
                zip.AddEntry(RESULT, p.CreatePdf());
                zip.AddFile(RESOURCE1, "");
                zip.AddFile(RESOURCE2, "");
                zip.AddFile(RESOURCE3, "");
                zip.Save(stream);
            }
        }