是否可以直接从Informix将文件转换为PDF?有命令吗?如果不可能,那我该怎么办?例如:我想将文件sm2026.4gl转换为PDF。
我不确定我是否正确理解了这个问题,看起来你正试图获得一个4GL程序的PDF版本,这没有任何意义。有任何数量的free websites可以为你做这件事。
但是,如果你问如何获得4GL报告来生成PDF,这是一个更有趣的问题。 Informix-4GL本身不会编写PDF文件。如果我没记错的话,4Js Genero会和Querix Lycia一样。
但是,在Linux上,有一个PDF打印机驱动程序(cups-pdf)将报告输出到PDF文件。
执行此操作留给读者练习。 :-)
您可以选择多种选择。您选择的将取决于您准备投入多少时间和金钱。您准备投入的越多,您将获得更好的报告
IF fgl_report_loadCurrentSettings(NULL) THEN -- simple compatibility mode
CALL fgl_report_selectDevice("PDF") -- indicates PDF
... -- optional calls to indicate filename, paper, printer and other options if required
LET grw = fgl_report_commitCurrentSettings()
START REPORT report-name TO XML HANDLER grw
使用此选项可以使用一些额外的配置选项,例如向您找到的免费工具可能无法提供的每个页面添加水印/徽标
-- Report
-- No layout information in report, only need to gather and formulate data
REPORT report-name ...
BEFORE GROUP OF invoice
PRINT invoice.*
ON EVERY ROW
PRINT invoice_line.*
AFTER GROUP OF invoice
LET invoice_total.net = GROUP SUM(...)
PRINT invoice_total.*
END REPORT
...
-- Produce report
IF fgl_report_loadCurrentSettings("reportdesign.4rp") THEN -- load the WYSIWYG design
CALL fgl_report_selectDevice("PDF") -- indicates PDF
... -- calls to indicate filename, paper, printer and other options if required
LET grw = fgl_report_commitCurrentSettings()
START REPORT report-name TO XML HANDLER grw
如图所示,您可以使用多种选项。至于你应该做什么,这取决于你的目标是什么,以及你准备投入多少时间和金钱来实现这一目标。