Click here to Skip to main content
16,020,673 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

C#
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
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900