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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Output to Word
 Login/Join
 
<Larry A>
posted
Is there a way to have Word as a Display Format? I've looked all over and haven't been able to find how to do this.

Thanks.
 
Report This Post
Guru
posted Hide Post
Give this a try:
TABLE FILE CAR
SUM
RETAIL_COST
DEALER_COST
BY CAR
ON TABLE PCHOLD FORMAT DOC
END
-RUN
 
Posts: 406 | Location: Canada | Registered: May 31, 2004Report This Post
<Larry A>
posted
Thanks. That put me in the right direction. I can see that I'll have to do some work on the formatting though.

Thanks again.
 
Report This Post
Guru
posted Hide Post
Try....

ON TABLE HOLD FORMAT WP

Good Luck!
Carol
 
Posts: 428 | Location: Springfield, MA | Registered: May 07, 2003Report This Post
Master
posted Hide Post
The problem with DOC and WP formats in WebFOCUS is you don't get formatting. And WP has that silly NULL as first character - a relic from MVS days.

Here is another technique that actually gets you a FORMATTED document.

In the FOCEXEC, but *before* your TABLE FILE, issue a FILEDEF like this:

APP FILEDEF MYDOC DISK MYAPP\MYDOC.DOC

where MYAPP is a WebFOCUS application folder and MYDOC is your filename.

Then, in your TABLE FILE request, issue a line like this

ON TABLE HOLD AS MYDOC FORMAT HTML

What happens is WebFOCUS outputs an HTML file with a DOC extension. Word can open this just fine (as long as you have Office or Word 97 or later) and all your formatting is preserved.
 
Posts: 919 | Registered: March 26, 2003Report This Post
Virtuoso
posted Hide Post
This works....but does anyone know how to get it to recognize a page-break when it prints?

Thanks..
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Virtuoso
posted Hide Post
Does anyone have any ideas on the Page Break issue on doing this.. it prints as one continuous page..
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Virtuoso
posted Hide Post
Hi, this creates a word document, however, due to the page eject, you get one blank page.
The FILEDEF is one of our WebFOCUS directories we use as a mapped drive to get to information we save.

FILEDEF DDD DISK D:\FOCUS\UNO\QUALOUT\TEST.DOC
TABLE FILE CAR
PRINT MODEL
BY COUNTRY
ON COUNTRY PAGE-BREAK
ON TABLE SAVE AS DDD FORMAT DOC
END
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Member
posted Hide Post
This topic comes close to something I need to accomplish. I need to have a formatted report open up in a browser window using the Word plugin.

The trick holding the output in html format does preserve the formatting, and gets me close, but our users would not have access to the doc file, hence the need to have it open in the browser.

Any ideas?

Thanks
 
Posts: 10 | Registered: December 03, 2004Report This Post
Master
posted Hide Post
Ok, Lets think out side the box. If
the WebFOCUS Client and The
WebFOCUS Reporting Server are on the save box and If
holding it with format HTML
give you what you
want. Then you can
hold/save the file to the directory that is define as the web
server alias approot. Then at the
bottom of the focexec add the following code.
-HTMLFORM BEGIN  
<SCRIPT language="javascript">
<br />var gotopage = "/approot/temp/tempfile.doc";
window.location.replace
(gotopage);
</BODY>-HTMLFORM END

making it look something like this
FILEDEF OUTPUT DISK C:\ibi\apps\temp\tempfile.doc
TABLE FILE CAR<br />PRINT CAR MODEL BODY
BY COUNTRY<br />ON TABLE 
HOLD AS OUTPUT FORMAT HTML
-HTMLFORM BEGIN<
<SCRIPT language="javascript">
<br />var gotopage = "/approot/temp/tempfile.doc";
window.location.replace(
gotopage);
-HTMLFORM END<br />-RUN<br />-EXIT

You may have to d
o some additional
coding to generate a unique hold file
so one users file does not get written over by anothers

This message has been edited. Last edited by: <Mabel>,
 
Posts: 865 | Registered: May 24, 2004Report This Post
Virtuoso
posted Hide Post
I save the File as mentioned above and using Reportcaster, have it e-mailed to the user...where they can open it and save it where they want.
You can also Filedef the report to a local drive, and just tell the user where it is...but I like the e-mail method.
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders