Ejemplo n.º 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            rptPharmacyNotes rpt = new rptPharmacyNotes();

            rpt.Site = this.Site;
            return(rpt);
        }
Ejemplo n.º 2
0
        private void frmPharmacynotes_Load(object sender, EventArgs e)
        {
            patientDetails();
            rptDocument = new ReportDocument();
            IQCareUtils theUtil       = new IQCareUtils();
            IDrug       ReportDetails = (IDrug)ObjectFactory.CreateInstance("BusinessProcess.Pharmacy.BDrug,BusinessProcess.Pharmacy");
            DataSet     theDS         = (DataSet)ReportDetails.GetPharmacyNotes(GblIQCare.patientID);

            theDS.WriteXmlSchema(GblIQCare.GetXMLPath() + "\\PharmacyNotes.xml");

            rptPharmacyNotes rep = new rptPharmacyNotes();

            rep.SetDataSource(theDS);
            //frmPharmacyNotes theRepViewer = new frmPharmacyNotes();
            frmReportViewer theRepViewer = new frmReportViewer();

            theRepViewer.MdiParent              = this.MdiParent;
            theRepViewer.Location               = new Point(0, 0);
            theRepViewer.crViewer.ReportSource  = rep;
            theRepViewer.crViewer.ToolPanelView = CrystalDecisions.Windows.Forms.ToolPanelViewType.None;
            theRepViewer.Width             = 902;
            theRepViewer.Height            = 650;
            theRepViewer.crViewer.Width    = 880;
            theRepViewer.crViewer.Height   = 600;
            theRepViewer.crViewer.Location = new Point(11, 11);
            theRepViewer.btnExit_position(451, 615);
            theRepViewer.Show();
            this.Close();
        }