Focal Point
[Solved] Unstyled excel output

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/9757007436

November 15, 2013, 08:09 AM
Tim P.
[Solved] Unstyled excel output
All,
I know there are a couple of different excel output options available in webfocus but is there one that eliminates any styling when putting the report into standalone excel so all thats left is the data? Currently if you export our report it brings the styling and drilldowns over to excel and gets kind of annoying, it also locks the columns.

I know we can create a second fex just for the excel output but thats not a good idea since your now maintaining two files. I guess you could also branch around the style sheet if the format is EXL2k but thats also a hassle.

Any ideas?

This message has been edited. Last edited by: Tim P.,


WebFOCUS App Studio 8.2.02
Windows 7, All Outputs
November 15, 2013, 09:36 AM
GamP
This sounds as if you do have a choice built into your code for type of output.
If that's the case, you could use DM to decide to either include or exclude the styling code, based on the selected output format.
Something like:
TABLE FILE xxx
---
-IF &OUTPUT EQ 'EXCEL' THEN GOTO :NO_STYLE;
-ON TABLE SET STYLE *
---
ENDSTYLE
-:NO_STYLE



GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
November 15, 2013, 09:57 AM
Tim P.
Yea we have used that option before but I was hoping there was another way without having to branch around the entire stylesheet.

We use a variable called &WFFMT to determine the output, html being default and they can chose excel or pdf if they want.

Is there no excel output option to load just the data from a report into excel?


WebFOCUS App Studio 8.2.02
Windows 7, All Outputs
November 16, 2013, 11:25 AM
George Patton
PCHOLD FORMAT EXCEL or
PCHOLD FORMAT EXL97


WebFOCUS 7.7.05 Windows, Linux, DB2, IBM Lotus Notes, Firebird, Lotus Symphony/OpenOffice. Outputs PDF, Excel 2007 (for OpenOffice integration), WP
November 18, 2013, 10:18 AM
njsden
quote:
Is there no excel output option to load just the data from a report into excel?


Do you mean just loading the data while ignoring any StyleSheet associated to the TABLE FILE request? I don't think such an option exists. You have to resort to skipping the whole style section by using Dialogue Manager's -IF ... GOTO statement as you're already doing.

George's suggestion is a good way to make it happen as EXCEL / EXL97 are non-styled output formats but keep in mind that you may be facing some additional restrictions such as the number of rows WebFOCUS will be allowed to place in the file (much lower in Excel 97 than in Excel 2000).



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
November 18, 2013, 12:27 PM
Donna Guadagno
We also use an output variable to branch to different styling depending on the user's request. If they want a spreadsheet with all cells populated (for pivot tables, etc) they select our format 'CSV' which creates the report using ON TABLE PCHOLD FORMAT COMT and no styling.


FOCUS 7.68, OpenVMS
WebFOCUS 7.7.03