1

I'm developing billing application, in that project I need to generate PDF,for that I use 'iTextSharp.dll' to generate pdf,Its work fine. After PDF generation, I need to print that PDF file in dot matrix printer(rolling paper), I want to stop the printer after the data over(if 5 line data is there, its should print only 5 line). My code as follow:

PdfWriter writer = PdfWriter.GetInstance(document, new FileStream("d:\\Bill1.pdf", FileMode.Create));
document.Open();
document.Add(table1);
PdfAction action = new PdfAction(PdfAction.PRINTDIALOG);
writer.setOpenAction(action);
document.close();
Soner Gönül
  • 97,193
  • 102
  • 206
  • 364
sreeju kp
  • 143
  • 9
  • 2
    Please don't repeat your [question](http://stackoverflow.com/questions/15827318/print-automatically-after-pdf-is-generated-in-c), edit the original one. – Hans Kesting Apr 05 '13 at 07:13
  • 1
    sorry... dot matrix? I know retro is in... but wow. Plus one for using old techniques! – Tschallacka Apr 05 '13 at 07:13

0 Answers0