Exemple #1
0
 protected void Page_Init(object sender, EventArgs e)
 {
     if (WebClientPrint.ProcessPrintJob(this.Request))
     {
         PrintingManager.Print("AAAA", this);
     }
 }
        private void printItem_Click(object sender, EventArgs e)
        {
            PrintingManager manager = chartMain.Printing;

            manager.PrintDocument.DefaultPageSettings.Landscape = true;
            manager.PrintDocument.DefaultPageSettings.Margins   = new System.Drawing.Printing.Margins(39, 39, 39, 39);
            manager.Print(true);
        }
    public static void CreateInvoice(ShopingCart cart, int custId)                                                                         // -2
    {
        // calc total price
        //var total = cart..Sum(x => x.price);
        // get customer data
        // save to database

        PrintingManager.Print("");
        EmailService.send(new object());
    }
Exemple #4
0
 protected override int Execute(ActionData data)
 {
     try {
         PrintingManager manager = AppManager.MainForm.ChartControl.ChartMain.Printing;
         manager.PrintDocument.DefaultPageSettings.Landscape = true;
         manager.PrintDocument.DefaultPageSettings.Margins   = new System.Drawing.Printing.Margins(39, 39, 39, 39);
         manager.Print(true);
     }
     catch (Exception ex) {
         AppExtension.PrintStackTrace(ex);
     }
     return(0);
 }
        private void printButton_Click(object sender, EventArgs e)
        {
            PrintingManager printMgr = chart1.Printing;

            printMgr.Print(true);
        }