Ejemplo n.º 1
0
 private void performPrint()
 {
     Printer printer = new Printer(this.context, this);
     //printer.Print(this.report.HTML);
     printer.PrintForm(this.report.HTML);
 }
Ejemplo n.º 2
0
 private void buttonPrint_Click(object sender, EventArgs e)
 {
     try
     {
         Statement statement = getStatement();
         Printer printer = new Printer(this.context, this);
         printer.PrintForm(statement.HTML);
     }
     catch (Exception ex)
     {
         Tools.ShowError("Unable to print statement\n" + ex.Message);
     }
 }
Ejemplo n.º 3
0
 private void buttonPrint_Click(object sender, EventArgs e)
 {
     try
     {
         foreach (ListViewItem item in listView.SelectedItems)
         {
             int id = Convert.ToInt16(item.Tag);
             Invoice invoice = new Invoice(id);
             Printer printer = new Printer(this.context, this);
             printer.PrintPreview(invoice.HTML);
         }
     }
     catch (Exception ex)
     {
         Tools.ShowError("Unable to print invoice\n" + ex.Message);
     }
 }
Ejemplo n.º 4
0
 private void buttonPrint_Click(object sender, EventArgs e)
 {
     Printer printer = new Printer(this.context, this);
     printer.PrintPreview(invoice.HTML);
 }
Ejemplo n.º 5
0
 private void performPrint()
 {
     Printer printer = new Printer(this.context, this);
     printer.PrintForm(invoice.HTMLPreview, invoice.HTML);  //we do printform, otherwise the form unloads before printpreview shown
 }
Ejemplo n.º 6
0
 private void performPrint()
 {
     Printer printer = new Printer(this.context, this);
     printer.Print(statement.HTML);
 }