Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Style Options when Using WP or DOC format
Go
New
Search
Notify
Tools
Reply
  
[CLOSED] Style Options when Using WP or DOC format
 Login/Join
 
Gold member
posted
Hello,

I have a question about displaying report output in Word format. We have a customer who would like their report output in Word and have certain style options they would like to be able apply (fonts, right/left justify, alignment, etc.) My experience with the output options are to use either WP or DOC. However I think that this just opens a basic text file and doesn't honor most style sheet settings -- but I'm willing to be wrong about this! In my experience, most people usually use html or pdf (or even an Excel template) when they need more control over style, most people who use WP or DOC seem happy enough with just the basic text output. So, this is the first time I've had this type of request.

Anyway, does anyone know of a way that report output can be opened in Word that will respect style sheet settings?

(This customer is using WF 7.6.6 on AIX)

Thanks for any info,

Debbie Sullivan

This message has been edited. Last edited by: Kerry,
 
Posts: 52 | Location: Merrimack, NH | Registered: August 17, 2006Reply With QuoteReport This Post
Expert
posted Hide Post
This is a work in progress that tries to style FORMAT DOC, by holding as EXL2K and returning as DOC.

DEFINE FILE CAR
 PageBreak/A200 = '</FONT></TD></TR></table><span><br clear=all style=''mso-special-character:line-break;page-break-before:always''>'
                | '</span><TABLE X:STR BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD>' ;
END

TABLE FILE CAR
HEADING
"DOC Test"

PRINT CAR MODEL BODYTYPE
BY    COUNTRY PAGE-BREAK

FOOTING BOTTOM
"<PageBreak"
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
 TYPE=TITLE, STYLE=BOLD, BACKCOLOR=YELLOW, COLOR=BLUE, $
 TYPE=DATA, COLUMN=CAR, COLOR=RED, $
 TYPE=HEADING, STYLE=BOLD, SIZE=14, COLOR=PURPLE, FONT=ARIAL, $
ENDSTYLE

ON TABLE HOLD AS H_DOC2 FORMAT EXL2K
END

-RUN

SET HTMLFORMTYPE = DOC

-HTMLFORM H_DOC2


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.06OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6118 | Location: 33.8688° S, 151.2093° E | Registered: October 31, 2006Reply With QuoteReport This Post
Virtuoso
posted Hide Post
This code will produce styled DOC output. However, try as I might, I could not get rid of the spurious cell/border lines around the heading and at the bottom of the report. In fact, the only approach that seemed to "remove" any of the cell/border lines was to make them white.

TABLE FILE CAR
 SUM SEATS
 BY COUNTRY
 BY CAR
 BY MODEL
 HEADING
  "DOC Output with Formatting"
 ON TABLE HOLD AS HOLD1 FORMAT HTMTABLE
 ON TABLE SET PAGE NOPAGE
 ON TABLE SET BYDISPLAY ON
 ON TABLE SET HTMLCSS ON
 ON TABLE SET STYLE *
  TYPE=REPORT, SIZE=10, BORDER=LIGHT, BORDER-COLOR=WHITE, $
  TYPE=HEADING, SIZE=14, JUSTIFY=CENTER, COLOR=BLUE, $
  TYPE=TITLE, SIZE=12, STYLE=BOLD, BORDER-BOTTOM=MEDIUM, BORDER-BOTTOM-COLOR=BLACK, $
  TYPE=DATA, COLUMN=COUNTRY, STYLE=ITALIC, COLOR=BLUE, $
  TYPE=DATA, COLUMN=SEATS, COLOR=RED, STYLE=BOLD, WHEN=SEATS GT 4, $
 ENDSTYLE
END
-*
SET HTMLFORMTYPE = DOC
-RUN
-HTMLFORM BEGIN
!IBI.FIL.HOLD1 ;
-HTMLFORM END


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Style Options when Using WP or DOC format

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.