Preview/Print in landscape pages.

  • FasTTo

    FasTTo - 2007-10-04


    I am using NCReport on my App and I think it is a great tool. First of all I want to congratulate the author for the very good job.

    I have a problem though. When I build a landscape report template on NCReport-Designer, NCReport shows it in portrait. This is very bad because the information don't fit on the portrait page.

    Have someone tried to generate a landscape report with success? Can you tell me where  can I fix the code to do this?

    Thanks in advance.

    • FasTTo

      FasTTo - 2007-10-17

      It's working now. The landscape was working but just when running the report for PDF or Printer. If you want to enable the landscape preview, you have to edit the code.

      In ncreport.cpp
      Add reportOutput == Preview to the first if statement.

      if ( reportOutput == Printer || reportOutput == Pdf  ) {
          if ( pageOrientation == Landscape ) {
               //change width/heigt
               int _w = w;
               w = h;
               h = _w;


Log in to post a comment.