Example #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            crPoleForce rpt = new crPoleForce();

            rpt.Site = this.Site;
            return(rpt);
        }
Example #2
0
        private void crViewPoleForce_Load(object sender, EventArgs e)
        {
            crPoleForce a = new crPoleForce();

            a.SetDataSource(ds);
            crViewPoleForce.ReportSource = a;
            System.IO.Stream     b = a.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat);
            System.IO.FileStream f = new System.IO.FileStream("C:\\aaaa.pdf", System.IO.FileMode.Create);
            byte [] reader         = new byte[b.Length];
            b.Read(reader, 0, Convert.ToInt32(b.Length));
            f.Write(reader, 0, reader.Length);
            f.Close();
        }