//public frmPrintViewer(string fRptTitle, string fOptionalTitle1, string fOptionalTitle2, string fSelectedSp, string fListField, string fListSQLType, string fListValue, dsLedgerNew ds_2, CrTrial rptName, string p) //{ // // TODO: Complete member initialization // this.fRptTitle = fRptTitle; // this.fOptionalTitle1 = fOptionalTitle1; // this.fOptionalTitle2 = fOptionalTitle2; // this.fSelectedSp = fSelectedSp; // this.fListField = fListField; // this.fListSQLType = fListSQLType; // this.fListValue = fListValue; // this.ds_2 = ds_2; // this.rptName = rptName; // this.p = p; //} //public frmPrintViewer(string fRptTitle, string fOptionalTitle1, string fOptionalTitle2, string fSelectedSp, string fListField, string fListSQLType, string fListValue, dsLedgerNew ds_2, CrTrialOp rptName_2, string p) //{ // // TODO: Complete member initialization // this.fRptTitle = fRptTitle; // this.fOptionalTitle1 = fOptionalTitle1; // this.fOptionalTitle2 = fOptionalTitle2; // this.fSelectedSp = fSelectedSp; // this.fListField = fListField; // this.fListSQLType = fListSQLType; // this.fListValue = fListValue; // this.ds_2 = ds_2; // this.rptName_2 = rptName_2; // this.p = p; //} //public frmPrintViewer(string fRptTitle, string fOptionalTitle1, string fOptionalTitle2, string fSelectedSp, string fListField, string fListSQLType, string fListValue, dsLedgerNew ds_2, CrLedger rptName_3, string p) //{ // // TODO: Complete member initialization // this.fRptTitle = fRptTitle; // this.fOptionalTitle1 = fOptionalTitle1; // this.fOptionalTitle2 = fOptionalTitle2; // this.fSelectedSp = fSelectedSp; // this.fListField = fListField; // this.fListSQLType = fListSQLType; // this.fListValue = fListValue; // this.ds_2 = ds_2; // this.rptName_3 = rptName_3; // this.p = p; //} public frmPrintViewerRS(string fRptTitle, DateTime dateTime, DateTime dateTime_2, string p, string plstField, string plstType, string plstValue, dsLedgerNew ds, CrLedger rpt1, string p_2) { // TODO: Complete member initialization this.fRptTitle = fRptTitle; this.dateTime = dateTime; this.dateTime_2 = dateTime_2; this.p = p; this.plstField = plstField; this.plstType = plstType; this.plstValue = plstValue; this.ds = ds; this.rpt1 = rpt1; this.p_2 = p_2; }
public frmPrintViewerRS(string fRptTitle, string fOptionalTitle1, string fOptionalTitle2, string fSelectedSp, string fListField, string fListSQLType, string fListValue, dsLedgerNew ds, CrLedger rptName_3, string p) { // TODO: Complete member initialization this.fRptTitle = fRptTitle; this.fOptionalTitle1 = fOptionalTitle1; this.fOptionalTitle2 = fOptionalTitle2; this.fSelectedSp = fSelectedSp; this.fListField = fListField; this.fListSQLType = fListSQLType; this.fListValue = fListValue; this.ds = ds; this.rptName_3 = rptName_3; this.p = p; }
private void btn_Print_Click( object sender, EventArgs e ) { //foreach (System.Reflection.PropertyInfo prop in typeof(Color).GetProperties()) //{ // if (prop.PropertyType.FullName == "System.Drawing.Color") // comboBox1.Items.Add(prop.Name); //} string fRptTitle = this.Text; string plstField = "@pLoc_id,@pGrp_id,@pCo_id,@pYear_id,@pAc_ID,@pFromDate,@pToDate"; string plstType = "8,8,8,8,8,18,18"; // { "8, 8, 8, 8, 8, 8" }; string plstValue = clsGVar.LocID.ToString() + "," + clsGVar.GrpID.ToString() + "," + clsGVar.CoID.ToString() + "," + clsGVar.YrID.ToString() + "," + lblTitle.Tag +"," + StrF01.ToShortD2StrCrystal(dtpStart) + "," + StrF01.ToShortD2StrCrystal(dtpEnd); // StrF01.ToShortD2StrCrystal( dsLedger ds = new dsLedger(); CrLedger rpt1 = new CrLedger(); frmPrintViewer rptLedger = new frmPrintViewer( fRptTitle, this.dtpStart.Text, this.dtpEnd.Text, "sp_gl_Ledger", plstField, plstType, plstValue, ds, rpt1, "SP" ); rptLedger.Show(); }
public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { CrLedger rpt = new CrLedger(); rpt.Site = this.Site; return rpt; }