Page orientation RRS feed

  • Question

  • User-1059519470 posted

    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[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);

    Monday, October 6, 2014 7:55 AM

All replies