Hi Asnidzal,
You should probably get in the habit of sending these types of questions to your local support center.
support@4js.com.auFor your first question, what would probably work best is if you can take the OrderReportASCII sample program and modify it to have a width greater than 250 so that it is similar to what is happening with your code. I suspect there is something not quite right because if I take OrderReportASCII.4gl and modify it so that ...
RIGHT MARGIN = 320
Add a line in the PAGE HEADER PRINT COLUMN 100,"100", COLUMN 200,"200", COLUMN 300, "300"
... to simulate a wide report.
I get the expected output when I still have...
CALL fgl_report_configureMultipageOutput(2, 4, TRUE)
... If I then change to Landscape by calling...
CALL fgl_report_configureMultipageOutput(2, 4, FALSE)
...then that is a better output.
Now finally I change that to...
CALL fgl_report_configureMultipageOutput(0, 4, FALSE)
... so that it is 1 page per physical page, I get 1 A4 portraint page and not 1 A4 landscape page as expected.
For your second question, printing with Genero Report Writer is performed through the back-end server and not the front-end client. Hence when you select fgl_report_selectDevice("Printer") it will print to your default printer, just as if you had typed lp filename at the command line. The ability to print to the front-end printer via Genero Report Writer is a future feature being planned. To change the printer you can try fgl_report_setprintername(printer-name).
Another technique to print a GRW report to the front-end is to do this...
CALL fgl_report_selectDevice("PDF")
...
FINISH REPORT report-name
CALL FGL_PUTFILE(filename.pdf, "C:\\temp\\filename.pdf")
CALL ui.Interface.FrontCall("standard","shellexec",["C:\\temp\\filename.pdf","Print"],result)
... This saves the report as a PDF on your server, you then transfer it to the front-end PC, and then use a FrontCall to print the PDF file. As far as I know we cannot change the behaviour of Adobe in that it prints the file without prompting for a printer.
Hope this helps,
Reuben