SHARE
TWEET

Untitled

a guest Sep 14th, 2017 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public void CreateReceipt(object sender, System.Drawing.Printing.PrintPageEventArgs e)
  2. {
  3.     PrinterSettings ps = new PrinterSettings();
  4.     ps.PrinterName = "Nombre de la impresora"; //Para cargar las propiedades de la impresora en ps
  5.  
  6.     e.PageSettings.PaperSize = ps.DefaultPageSettings.PaperSize;
  7.  
  8.     ...
  9.  
  10. }
RAW Paste Data
Top