Focal Point
[closed] Compound Excel report

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

September 27, 2012, 04:20 PM
Kathy P
[closed] Compound Excel report
Hi, has anyone been successful in creating a compound excel report where you have two reports on the first tab, then only one report on the second tab. Or I can go vice versa, i.e., first tab one report, second tab having two reports. I have been playing around with this 'ALL' different ways and have not been successful as well as in my search for this type of thing to begin with. I am currently in 7.7.03. Thank you in advance.

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


Kathy Phillips
Web FOCUS 8.2.05.14, 8.1.05, 8.08, 8.0.7, 8.0.5,8.0.2m, 7.6.10,7.7.03
Windows
September 27, 2012, 05:33 PM
Waz
What sort of COMPOUND report is it, the old style or the new one ?

If its the old style, then did you try SET COMPOUND = NOBREAK


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

September 27, 2012, 05:55 PM
Kathy P
Yes, that too. I have tried all the manual coding combinations:
I have not been able to do both. I can do nobreak and get both reports on the same tab but then I cannot get the second tab to work. WF doesn't like that. I tried the first tab of one report, then issued the nobreak on the second fex and WF did not like that either. Seems to be one way or the other but not combined....


Kathy Phillips
Web FOCUS 8.2.05.14, 8.1.05, 8.08, 8.0.7, 8.0.5,8.0.2m, 7.6.10,7.7.03
Windows
September 27, 2012, 05:57 PM
Kathy P
I have coded around by adding a sort field to get my two reports on one tab and then my detail data dump on the second tab. Sighhh. But it would be nice if it could be done. Thank you!


Kathy Phillips
Web FOCUS 8.2.05.14, 8.1.05, 8.08, 8.0.7, 8.0.5,8.0.2m, 7.6.10,7.7.03
Windows
September 27, 2012, 06:09 PM
Waz
How about this code.

SET COMPOUND = OPEN NOBREAK

TABLE FILE CAR
HEADING
" Report 1"
PRINT COUNTRY
ON TABLE PCHOLD FORMAT EXL2K
END

TABLE FILE CAR
HEADING
" "
" Report 2"
PRINT CAR
END

SET COMPOUND = CLOSE

TABLE FILE CAR
HEADING
" "
" Report 3"
PRINT MODEL
END



Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

September 28, 2012, 08:39 AM
Kathy P
Thanks Waz! That worked. I always kept the compound close at the end. I didn't try moving it up as I thought I would lose the compound report.I was doing it on the same line as on table pchold, the open, nobreak and close. Interesting. Thanks again and have a great weekend!


Kathy Phillips
Web FOCUS 8.2.05.14, 8.1.05, 8.08, 8.0.7, 8.0.5,8.0.2m, 7.6.10,7.7.03
Windows
September 28, 2012, 09:39 AM
Kathy P
Interesting. This works with the car file but not with my fex. I have a lot going on in my fex, but the compound syntax is very straight forward. I commented out my tab title to see if that made a difference which it did not. I am also running Zero-Footprint WF Dev Studio. I don't have time today to play with it. I will come back to this next week. I only get the first tab and not the second tab. So close.....


Kathy Phillips
Web FOCUS 8.2.05.14, 8.1.05, 8.08, 8.0.7, 8.0.5,8.0.2m, 7.6.10,7.7.03
Windows
September 28, 2012, 11:03 AM
Francis Mariani
quote:
Zero-Footprint WF Dev Studio

Hmmmm???


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
September 28, 2012, 02:00 PM
Kathy P
No client side of software. All on the network. I have had other issues with it too.


Kathy Phillips
Web FOCUS 8.2.05.14, 8.1.05, 8.08, 8.0.7, 8.0.5,8.0.2m, 7.6.10,7.7.03
Windows
September 28, 2012, 02:30 PM
Crymsyn
I don't know if you have tried this but besides doing the set you can have it within the PCHOLD lines as well. Although, the tool does not like the NOBREAK keyword if you open it in the GUI.

TABLE FILE CAR
BY COUNTRY
FOOTING
""
ON TABLE PCHOLD FORMAT EXL2K OPEN NOBREAK
END

TABLE FILE CAR
BY COUNTRY
BY MODEL
ON TABLE PCHOLD FORMAT EXL2K
END

TABLE FILE CAR
BY CAR
BY MODEL
ON TABLE PCHOLD FORMAT EXL2K CLOSE
END



WF: 8201, OS: Windows, Output: HTML, PDF, Excel
September 29, 2012, 08:47 AM
Kathy P
Crymsyn, I need the third report on a separate tab. This is the code I am using along with set compound on and set compound off. Seems to be the only way I get sort of what I want. I added a dummy sort field and did a page break to get my second report on the first tab.


Kathy Phillips
Web FOCUS 8.2.05.14, 8.1.05, 8.08, 8.0.7, 8.0.5,8.0.2m, 7.6.10,7.7.03
Windows