Exemplo n.º 1
0
        private void ReportsOpen()
        {
            if (m_frmReportPrinting != null)
            {
                return;
            }

            m_frmReportPrinting              = new OVRReportPrintingForm();
            m_frmReportPrinting.Owner        = this;
            m_frmReportPrinting.DBConnection = SqlCon;

            m_frmReportPrinting.m_EventReportContextQuery += new OVRReportContextQueryEventHandler(OnReportContextQuery);
            m_frmReportPrinting.m_EventReportGenerated    += new OVRReportGeneratedEventHandler(OnReportGenerated);
            m_EventReportContextChanged += m_frmReportPrinting.ReportChangedQueryEventHandler;
            m_frmReportPrinting.Initialize();

            if (m_EventReportContextChanged != null)
            {
                m_EventReportContextChanged(this, new OVRReportContextChangedArgs("VenueCode", m_strVenueCode));
            }
        }