views:

7

answers:

0

We are printing pdf from winform application. We are creating pdf file using infragistics report and printing it without opening it. following is the source code for printing it using default printer.

protected Report _report = new Infragistics.Documents.Report.Report();

var printDocument = new PrintDocument(); _report.Preferences.Printing.PaperSize = PaperSize.Auto; _report.Preferences.Printing.PaperOrientation = PaperOrientation.Portrait; _report.Print(printDocument.PrinterSettings.PrinterName);

We are using zebra printer for printing a above created page. I am getting my label in landscape instead of portrait. I have checked everything in my printer settings. I am wondering if there is any way to change orientation from code. Any suggestions will be highly appreciated.