Kbase 22016: Report Builder: Printing and File Names with Blank Spaces
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  07/05/2002 |
|
SUMMARY:
This Solution explains how to print a report using a file name with
blank spaces in it with Report Builder.
EXPLANATION:
Report Builder does not support the long files names or file names containing blank spaces. In order to generate a file using Report Builder, the 16-bit file format should be used.
Two Examples:
-- If the file to create is: c:\Program files\Reports\myReport.txt, the field name variable should be:
DEFINE VARIABLE cFileName AS CHARACTER NO-UNDO.
cFileName = "c:\Progra" + CHR(126) + "1\Reports\myReport.txt".
-- If the file to create is .\My reports\myReport.txt, the field variable name should be:
DEFINE VARIABLE cFileName AS CHARACTER NO-UNDO.
cFileName = "c:\MyRepo" + CHR(126) + "1\Reports\myReport.txt".
The field name stored in the variable should be used in the RB-OUTPUT-FILE parameter as shown in this example:
RUN aderb/_printrb.p
("reports.prl", /* RB-REPORT-LIBRARY */
"customer", /* RB-REPORT-NAME */
"-db sports2000 -N tcp -S 2500 -H pcmferrante", /* RB-DB-CONNECTION */
"", /* RB-INCLUDE-RECORDS */
"", /* RB-FILTER */
"", /* RB-MEMO-FILE */
"F", /* RB-PRINT-DESTINATION */
"", /* RB-PRINTER-NAME */
"", /* RB-PRINTER-PORT */
"cFileName", /* RB-OUTPUT-FILE */
1, /* RB-NUMBER-COPIES */
1, /* RB-BEGIN-PAGE */
99999, /* RB-END-PAGE */
no, /* RB-TEST-PATTERN */
"", /* RB-WINDOW-TITLE */
yes, /* RB-DISPLAY-ERRORS */
yes, /* RB-DISPLAY-STATUS */
no, /* RB-NO-WAIT */
""). /* RB-OTHER-PARAMETERS */