Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Printing 2 tables as a DOC format

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Printing 2 tables as a DOC format
 Login/Join
 
Gold member
posted
I am trying to print 2 tables as a DOC format.

 -*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,


WebFOCUS 8.2.01M on Windows 10
 
Posts: 54 | Registered: July 30, 2018Report This Post
Virtuoso
posted Hide Post
I would add a -RUN after each report.


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Expert
posted Hide Post
quote:
add a -RUN after each report

Not sure how that would achieve what is required apart from good practice?

Anyway, back to the question,

@CCollier,

You are essentially trying to create a document so you need to understand what formats you can use for such an output.

Unfortunately for you, DOC format is not one of those Frowner.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Gold member
posted Hide Post
So what you're saying is that there's no real way to combine the 2 into a DOC format because of the way that format works?


WebFOCUS 8.2.01M on Windows 10
 
Posts: 54 | Registered: July 30, 2018Report This Post
Virtuoso
posted Hide Post
Tony A: It's like chicken soup...it couldn't hurt. Smiler

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, 2015Report This Post
Guru
posted Hide Post
try adding a OPEN on the first report and a CLOSE on the last report


WF 7.6.11
Oracle
WebSphere
Windows NT-5.2 x86 32bit
 
Posts: 398 | Registered: February 04, 2008Report This Post
Guru
posted Hide Post
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.


Test: WF 8.2
Prod: WF 8.2
DB: Progress, REST, IBM UniVerse/UniData, SQLServer, MySQL, PostgreSQL, Oracle, Greenplum, Athena.
 
Posts: 454 | Location: Europe | Registered: February 05, 2007Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Printing 2 tables as a DOC format

Copyright © 1996-2020 Information Builders