예제 #1
0
 private void simpleButton1_Click(object sender, EventArgs e)
 {
     var cl = new GridPrintingClass();
     //dd-MMM-yy
      
     cl.Heading1 = "Consolidated Sales Report From : " + dateEdit1.DateTime.ToString("dd-MMM-yy") + " To: " + dateEdit2.DateTime.ToString("dd-MMM-yy") + "";
     cl.DoPivoitPrint(pivotGridControl1);
 }
예제 #2
0
 private void simpleButton1_Click(object sender, EventArgs e)
 {
     var cl = new GridPrintingClass();
     //dd-MMM-yy
     if (lookUpEdit1.EditValue != null)
     {
         cl.Heading1 = lookUpEdit1.GetColumnValue("STORENAME").ToString();
     }
     else
     cl.Heading1 = Utils.Companyname;
     cl.Heading2 = "Sales Report From : " + dateEdit1.DateTime.ToString("dd-MMM-yy") + " To: " + dateEdit2.DateTime.ToString("dd-MMM-yy") + "";
     cl.DoPivoitPrint(pivotGridControl1);
    // pivotGridControl1.ShowPrintPreview();
 }