Quantcast
Channel: Crystal Reports
Viewing all articles
Browse latest Browse all 1507

Page orientation

$
0
0

Hello,
I'm having a problem while printing label on Monarch printer.
My label:
width: 4,5 cm
height: 3,5 cm
Page orientation for printer portrait - same as rpt file settings.
The printer prints my label rotated by 90 degrees.
It turns out that when width>height CR changes orientation to landscape.
Has anyone had such problem and found a solution?

My code:

  ReportDocument EtWydruk = new ReportDocument();
  EtWydruk.Load(string.Format(Properties.Settings.Default.PrintOutPath, WydrukNr)); //plik raportu
  EtWydruk.SetParameterValue(0, GID);
  EtWydruk.SetParameterValue(1, zlecID);
  EtWydruk.DataSourceConnections.Clear();
  EtWydruk.DataSourceConnections[0].SetConnection(Properties.Settings.Default.SQLSrv, Properties.Settings.Default.SQLDb, Properties.Settings.Default.SQLUser, Properties.Settings.Default.SQLPass);
  EtWydruk.PrintOptions.PrinterName = Properties.Settings.Default.Printer;
  EtWydruk.PrintOptions.DissociatePageSizeAndPrinterPaperSize = true;
  EtWydruk.PrintOptions.PaperOrientation = PaperOrientation.Portrait;
  EtWydruk.PrintToPrinter(IleKopii, false, 1, 1);
   EtWydruk.Dispose();


Viewing all articles
Browse latest Browse all 1507

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>