1
Answer

printing crystal with Epson printer problem

alaa

alaa

9y
526
1
hi everybody i have crystal report thats  get data from database  ehen i setup  my printer (EPSON(TM-T10II) i get along space area before and after the report this  is  my code


  CrystalReport1 report1 = new CrystalReport1();
  report1.PrintOptions.PaperOrientation = PaperOrientation.Portrait;
  //  report1.Dispose();

  PageMargins margins;

  // Get the PageMargins structure and set the
  // margins for the report.
  margins = report1.PrintOptions.PageMargins;
  margins.bottomMargin = 0;
  margins.leftMargin = 0;
  margins.rightMargin = 0;
  margins.topMargin = 0;
  // Apply the page margins.

  report1.PrintOptions.ApplyPageMargins(margins);
  report1.PrintToPrinter(1, false, 0, 0);


and this is aphoto to indicate the problem

http://store1.up-00.com/2015-04/1430318552251.jpg
Answers (1)