示例#1
0
// ---------------------------------------------------------------------------    
    public virtual void Write(Stream stream) {
      using (ZipFile zip = new ZipFile()) {
        HtmlMovies1 h = new HtmlMovies1();
        byte[] pdf = h.CreateHtmlAndPdf(stream);
        zip.AddEntry(HTML, h.Html.ToString());
        zip.AddEntry(PDF, pdf);
        zip.Save(stream);             
      }
    }
示例#2
0
// ---------------------------------------------------------------------------
        public virtual void Write(Stream stream)
        {
            using (ZipFile zip = new ZipFile()) {
                HtmlMovies1 h   = new HtmlMovies1();
                byte[]      pdf = h.CreateHtmlAndPdf(stream);
                zip.AddEntry(HTML, h.Html.ToString());
                zip.AddEntry(PDF, pdf);
                zip.Save(stream);
            }
        }