Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Ask Reuben 53 - GRW - Font Size Compatibility Report  (Read 1315 times)
Reuben B.
Four Js
Posts: 935


« on: October 30, 2020, 05:12:30 am »

The Compatibility Report feature of Genero Report Writer allows you to take an existing 4gl report that uses the REPORT syntax and outputs it via any of the Genero Report Writer devices.  By the addition of a handful of lines of code, this allows your existing 4gl report to be output to PDF.  This can be done very quickly, has no need to create a .4rp report design file, and for the majority of reports on your application this maybe sufficient to take them and output to PDF and other formats.  A question that gets asked with these reports is how to change the font size of the report?  The fgl_report_configureCompatabilityReport() function has a number of parameters but none of them are the font size.

The missing point in the developers knowledge is that for these compatibility reports is that the font size used is the biggest font size that will fit within the confines of the page.  That is the report engine looks at the selected font, the page size, the margins, the number of lines on each page of the report, and the number of columns in the report and from these calculates the maximum font size that will fill up most of the page.

For more details click https://4js.com/ask-reuben/ig-53/

Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines