ui.Application.SetReportViewerConfigs() sets the configuration for the report viewer.
Syntax
ui.Application.GetCurrent().SetReportViewerConfigs(var)
Arguments
var |
report viewer configurations |
Usage and examples
MAIN
DEFINE repConf ui.ReportViewerConfig
LET repConf = ui.ReportViewerConfig.Create("download")
CALL repConf.SetParameter(".txt")
CALL repConf.SetViewerType("Download")
CALL ui.Application.GetCurrent().SetReportViewerConfigs(repConf)
CALL fgl_report_type("download","download")
START REPORT rep TO PIPE "download"
OUTPUT TO REPORT rep ("report text")
FINISH REPORT rep
CALL fgl_getkey()
END MAIN
REPORT rep(c)
DEFINE c CHAR(20)
OUTPUT
FORMAT
ON EVERY ROW
PRINT c
END REPORT