As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
-*Table 1
TABLE FILE CAR
SUM
RETAIL_COST
BY COUNTRY
BY CAR
ON TABLE HOLD AS REPORT1
END
TABLE FILE REPORT1
PRINT *
ON TABLE PCHOLD FORMAT HTML
END
-*Table 2
TABLE FILE EMPLOYEE
SUM
EMPLOYEE.EMPINFO.CURR_SAL
BY EMPLOYEE.EMPINFO.EMP_ID
BY EMPLOYEE.EMPINFO.LAST_NAME
BY EMPLOYEE.EMPINFO.FIRST_NAME
BY EMPLOYEE.EMPINFO.DEPARTMENT
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ASNAMES ON
ON TABLE NOTOTAL
ON TABLE SET HTMLEMBEDIMG ON
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = IBFS:/EDA/EDASERVE/_EDAHOME/ETC/warm.sty,
$
ENDSTYLE
ON TABLE HOLD AS REPORT2
END
TABLE FILE REPORT2
PRINT *
ON TABLE PCHOLD FORMAT HTML
END
The code here holds both tables and prints them as HTML which will print both tables on the page. When I try to print both of them as DOC format, it only prints Table 1 and not Table 2. Is that a limitation of the DOC format or is there any way to print both files onto one DOC file?This message has been edited. Last edited by: FP Mod Chuck,
Tony A: It's like chicken soup...it couldn't hurt.
I just tried this and it seemed to work only in HTML. Neither PDF nor DOC will render the second report in the output. I agree that putting the output of several reports in one document makes sense. The only problem is it won't be in a format that'll open in MS Word.
WebFOCUS 8206, Unix, Windows
Posts: 1853 | Location: New York City | Registered: December 30, 2015
Because doc is a file, you first need to combine it in one file:
FILEDEF DOCFILE DISK docfile.doc (APPEND
TABLE FILE CAR BY COUNTRY
HEADING
"REPORT 1"
ON TABLE HOLD AS DOCFILE FORMAT DOC
END
TABLE FILE CAR BY COUNTRY
HEADING
"REPORT 2"
ON TABLE HOLD AS DOCFILE FORMAT DOC
END
EX EDAGET TXT, docfile.doc,T
P.s. for your HTML output it would also be better to use compound like RSquared suggested.