// --------------------------------------------------------------------------- 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); } }