Ejemplo n.º 1
0
        private void AfisareRaport()
        {
            //trimitem parametrii de filtrare pe raport
            //lRptDoc.Load(this.lRptImprimare);
            //lRptDoc.SetParameterValue("@IdTehnician", this.lStruct.lUtilizator.Id);
            //lRptDoc.SetParameterValue("NumeTehnician", this.lUtilizator.GetNumeCompletUtilizator());
            //lRptDoc.SetParameterValue("@DataInceput", this.lDataInceput);
            //lRptDoc.SetParameterValue("@DataSfarsit", this.lDataFinal);

            //this.lStruct.lRptDoc.Load(this.lStruct.lRptImprimare);

            //SetareParametrii();
            crvImprimare.ToolPanelView = CrystalDecisions.Windows.Forms.ToolPanelViewType.None;
            crvImprimare.ReuseParameterValuesOnRefresh = true;

            IHMUtile.seteazaConexiuneRaport(this.lStruct.lRptDoc);

            crvImprimare.ReportSource = this.lStruct.lRptDoc;
            crvImprimare.Refresh();
        }