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);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)