コード例 #1
0
 // ---------------------------------------------------------------------------
 public void Write(Stream stream)
 {
     using (ZipFile zip = new ZipFile())
     {
         MovieTemplates m   = new MovieTemplates();
         byte[]         pdf = Utility.PdfBytes(m);
         PrintTimeTable p   = new PrintTimeTable();
         zip.AddEntry(RESULT, p.ManipulatePdf(pdf));
         zip.AddEntry(RESOURCE, p.jsString);
         zip.AddEntry(Utility.ResultFileName(m.ToString() + ".pdf"), pdf);
         zip.Save(stream);
     }
 }
コード例 #2
0
 // ---------------------------------------------------------------------------
 public void Write(Stream stream)
 {
     using (ZipFile zip = new ZipFile())
     {
         MovieTemplates m = new MovieTemplates();
         byte[] pdf = Utility.PdfBytes(m);
         PrintTimeTable p = new PrintTimeTable();
         zip.AddEntry(RESULT, p.ManipulatePdf(pdf));
         zip.AddEntry(RESOURCE, p.jsString);
         zip.AddEntry(Utility.ResultFileName(m.ToString() + ".pdf"), pdf);
         zip.Save(stream);
     }
 }