Focal Point
[SOLVED]Compound Document - Export to Excel

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

July 29, 2011, 12:52 PM
dburton
[SOLVED]Compound Document - Export to Excel
I have a Compound Document that has a total of 4 Page Layouts, 5 if you include the Master. I have a total of 3 procedures that run on the first page layout and 1 procedure on each of the remaining page layouts.

When I change the output to excel, it runs and stores each of the procedures on seperate sheets in the excel document.

Is there a way that I can tell it to put all the reports on one sheet?

Also, one of the reports does not have any values except for those in the Report Heading which is setup using the Alignment Grid. This report looses all formatting when it is put into Excel. Does anyone know how to get this report to keep its formatting when outputting to Excel?

Thanks,

Dave

This message has been edited. Last edited by: dburton,


WebFOCUS 7.7.03
Windows Web Server 2008
MS SQL Server 2000
Excel,CSV,PDF,HTML
July 31, 2011, 05:43 PM
Waz
Can you post the layout ?


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!

August 02, 2011, 09:18 AM
dburton
 SET HTMLARCHIVE=ON
COMPOUND LAYOUT PCHOLD FORMAT EXL2K
UNITS=IN, $
SECTION=section1, LAYOUT=ON, METADATA='0.5^1.4^0.5^0.65^1', MERGE=OFF, ORIENTATION=LANDSCAPE, PAGESIZE=Letter,  $
PAGELAYOUT=ALL, NAME='Page Master', $
OBJECT=IMAGE, NAME='image1', IMAGE=caduceon.jpg, POSITION=(0.518 0.519), DIMENSION=(4.483 0.727), METADATA='Z-INDEX: 196; POSITION: absolute; WIDTH: 4.483in; HEIGHT: 0.727in; TOP: 0.519in; LEFT: 0.518in', $
OBJECT=BOX, NAME='line2', POSITION=(0.500 1.313), DIMENSION=(10.000 0.035), BACKCOLOR=BLACK, BORDER-COLOR=BLACK, METADATA='Z-INDEX: 197; POSITION: absolute; BACKGROUND-COLOR: black; WIDTH: 10in; HEIGHT: 0.035in; FONT-SIZE: 1pt; TOP: 1.313in; LEFT: 0.5in', $
OBJECT=STRING, NAME='qahead', TEXT='Quality Assurance Report', POSITION=(6.542 0.500), MARKUP=OFF, WRAP=ON, DIMENSION=(3.792 0.375), font='TIMES NEW ROMAN', color=RGB(0 0 0), style=bold, size=24, METADATA='', $
OBJECT=STRING, NAME='reporthead', TEXT='Report No:', POSITION=(8.542 1.042), MARKUP=OFF, WRAP=ON, DIMENSION=(1.000 0.250), font='TIMES NEW ROMAN', color=RGB(0 0 0), style=bold, size=12, METADATA='', $
OBJECT=STRING, NAME='batchnum', TEXT='&B1BATCH', POSITION=(9.417 1.042), MARKUP=OFF, WRAP=ON, DIMENSION=(0.792 0.167), font='TIMES NEW ROMAN', color=RGB(0 0 0), style=bold, size=12, METADATA='', $
OBJECT=STRING, NAME='pagenum', TEXT='Page <ibi-page-number/> of <ibi-total-pages/>', POSITION=(9.292 8.042), MARKUP=ON, WRAP=ON, DIMENSION=(1.000 0.167), font='TIMES NEW ROMAN', color=RGB(0 0 0),  size=8, METADATA='', $
OBJECT=STRING, NAME='footer', TEXT='<center>The analytical results reported herein refer to the samples as received. Reproduction of this analytical report in full or in part is prohibited without prior written consent from Caduceon Environmental Laboratories.</center>', POSITION=(1.750 7.917), MARKUP=ON, WRAP=ON, DIMENSION=(7.500 0.375), font='TIMES NEW ROMAN', color=RGB(0 0 0),  size=8, METADATA='', $
OBJECT=BOX, NAME='line3', POSITION=(0.500 7.875), DIMENSION=(10.000 0.035), BACKCOLOR=BLACK, BORDER-COLOR=BLACK, METADATA='Z-INDEX: 203; POSITION: absolute; BACKGROUND-COLOR: black; WIDTH: 10in; HEIGHT: 0.035in; FONT-SIZE: 1pt; TOP: 7.875in; LEFT: 0.5in', $
COMPONENT='DfltCmpt1', POSITION=(0 0), DIMENSION=(0 0), $
PAGELAYOUT=1, NAME='Page layout 1', text='Page layout 1', TOC-LEVEL=1, BOTTOMMARGIN=1.65, TOPMARGIN=1, ORIENTATION=LANDSCAPE, METADATA='BOTTOMMARGIN=1.65,TOPMARGIN=1,LEFTMARGIN=0,RIGHTMARGIN=0,ORIENTATION=LANDSCAPE,', $
COMPONENT='clientinfo4', TEXT='clientinfo4', TOC-LEVEL=2, POSITION=(0.623 1.054), DIMENSION=(* *), METADATA='Z-INDEX: 100; POSITION: absolute; WIDTH: 9.877in; HEIGHT: 2.25in; OVERFLOW: auto; TOP: 1.054in; LEFT: 0.623in', $
COMPONENT='report8', TEXT='report8', TOC-LEVEL=2, POSITION=(0.660 3.050), DIMENSION=(* *), METADATA='Z-INDEX: 100; POSITION: absolute; WIDTH: 9.5in; HEIGHT: 3.8in; OVERFLOW: auto; TOP: 3.05in; LEFT: 0.66in', $
COMPONENT='report9', TEXT='report9', TOC-LEVEL=2, POSITION=(8.229 7.010), DIMENSION=(2.029 0.900), METADATA='Z-INDEX: 100; POSITION: absolute; WIDTH: 2.029in; HEIGHT: 0.9in; OVERFLOW: auto; TOP: 7.01in; LEFT: 8.229in', $
OBJECT=STRING, NAME='comment1', TEXT='&COMMENT1', POSITION=(0.667 7.250), MARKUP=OFF, WRAP=ON, DIMENSION=(3.500 0.167), font='TIMES NEW ROMAN', color=RGB(0 0 0),  size=10, METADATA='', $
OBJECT=STRING, NAME='comment2', TEXT='&COMMENT2', POSITION=(0.667 7.417), MARKUP=OFF, WRAP=ON, DIMENSION=(3.500 0.167), font='TIMES NEW ROMAN', color=RGB(0 0 0),  size=10, METADATA='', $
OBJECT=STRING, NAME='comment3', TEXT='&COMMENT3', POSITION=(0.667 7.667), MARKUP=OFF, WRAP=ON, DIMENSION=(3.500 0.167), font='TIMES NEW ROMAN', color=RGB(0 0 0),  size=10, METADATA='', $
OBJECT=STRING, NAME='comment4', TEXT='&COMMENT4', POSITION=(4.417 7.250), MARKUP=OFF, WRAP=ON, DIMENSION=(3.500 0.167), font='TIMES NEW ROMAN', color=RGB(0 0 0),  size=10, METADATA='', $
OBJECT=STRING, NAME='comment6', TEXT='&COMMENT6', POSITION=(4.417 7.667), MARKUP=OFF, WRAP=ON, DIMENSION=(3.500 0.167), font='TIMES NEW ROMAN', color=RGB(0 0 0),  size=10, METADATA='', $
OBJECT=STRING, NAME='comment5', TEXT='&COMMENT5', POSITION=(4.417 7.417), MARKUP=OFF, WRAP=ON, DIMENSION=(3.500 0.167), font='TIMES NEW ROMAN', color=RGB(0 0 0),  size=10, METADATA='', $
OBJECT=IMAGE, NAME='signature', IMAGE=&IMGPATH, POSITION=(8.302 6.698), DIMENSION=(1.870 0.564), METADATA='Z-INDEX: 210; POSITION: absolute; WIDTH: 1.87in; HEIGHT: 0.564in; TOP: 6.698in; LEFT: 8.302in', $
OBJECT=BOX, NAME='line12', POSITION=(8.177 7.271), DIMENSION=(2.119 0.025), BACKCOLOR=BLACK, BORDER-COLOR=BLACK, METADATA='Z-INDEX: 211; POSITION: absolute; BACKGROUND-COLOR: black; WIDTH: 2.119in; HEIGHT: 0.025in; FONT-SIZE: 1pt; TOP: 7.271in; LEFT: 8.177in', $
OBJECT=STRING, NAME='text46', TEXT='<center><B><U>GENERAL COMMENTS</U></B></center>', POSITION=(3.375 7.000), MARKUP=ON, WRAP=ON, DIMENSION=(1.542 0.167), font='TIMES NEW ROMAN', color=RGB(0 0 0),  size=10, METADATA='', $
PAGELAYOUT=2, NAME='Page layout 2', text='Page layout 2', TOC-LEVEL=2, BOTTOMMARGIN=1, TOPMARGIN=1, ORIENTATION=LANDSCAPE, METADATA='BOTTOMMARGIN=1,TOPMARGIN=1,LEFTMARGIN=0,RIGHTMARGIN=0,ORIENTATION=LANDSCAPE,', $
COMPONENT='btexphcrpt', TEXT='btexphcrpt', TOC-LEVEL=2, POSITION=(0.623 1.054), DIMENSION=(* *), METADATA='Z-INDEX: 100; POSITION: absolute; WIDTH: 9.877in; HEIGHT: 6.696in; OVERFLOW: auto; TOP: 1.054in; LEFT: 0.623in', $
PAGELAYOUT=3, NAME='Page layout 3', text='Page layout 3', TOC-LEVEL=3, BOTTOMMARGIN=1.75, TOPMARGIN=1, METADATA='BOTTOMMARGIN=1.75,TOPMARGIN=1,LEFTMARGIN=0,RIGHTMARGIN=0,', $
COMPONENT='organicsrpt', TEXT='organicsrpt', TOC-LEVEL=3, POSITION=(0.623 1.054), DIMENSION=(* *), METADATA='Z-INDEX: 100; POSITION: absolute; WIDTH: 9.877in; HEIGHT: 6.696in; OVERFLOW: auto; TOP: 1.054in; LEFT: 0.623in', $
PAGELAYOUT=4, NAME='Page layout 4', text='Page layout 4', TOC-LEVEL=4, BOTTOMMARGIN=2.25, TOPMARGIN=1, ORIENTATION=LANDSCAPE, METADATA='BOTTOMMARGIN=2.25,TOPMARGIN=1,LEFTMARGIN=0,RIGHTMARGIN=0,ORIENTATION=LANDSCAPE,', $
COMPONENT='inorganicsrpt', TEXT='inorganicsrpt', TOC-LEVEL=4, POSITION=(0.623 1.054), DIMENSION=(* *), METADATA='Z-INDEX: 100; POSITION: absolute; WIDTH: 9.877in; HEIGHT: 5.444in; OVERFLOW: auto; TOP: 1.054in; LEFT: 0.623in', $
END
SET COMPONENT='DfltCmpt1'
TABLE FILE SYSCOLUM
" "
SUM TBNAME NOPRINT
IF READLIMIT EQ 1
ON TABLE SET PREVIEW ON
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
END
SET COMPONENT='clientinfo4'
-*component_type report
-INCLUDE cad_qc_clientinfo_cover.fex
SET COMPONENT='report8'
-*component_type report
-INCLUDE cad_qc_coverpg.fex
SET COMPONENT='report9'
-*component_type report
-INCLUDE cad_qc_jobtitle.fex
SET COMPONENT='btexphcrpt'
-*component_type report
-INCLUDE cad_qc_btexphc.fex
SET COMPONENT='organicsrpt'
-*component_type report
-INCLUDE cad_qc_organics.fex
SET COMPONENT='inorganicsrpt'
-*component_type report
-INCLUDE cad_qc_inorganics.fex
COMPOUND END 



WebFOCUS 7.7.03
Windows Web Server 2008
MS SQL Server 2000
Excel,CSV,PDF,HTML
August 02, 2011, 05:55 PM
Waz
Dave, this seems to be an issue discussed before on the forum.

Perhaps someone else on the forum can help, or I might suggest putting in a case with techsupport.


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!

August 16, 2011, 12:08 PM
dburton
Tech Support suggested to use NOBREAK to put all the reports on one sheet in the Excel document.

I had to go to the Compound Report to get the order the reports were included. In the first report I had to use the following:

 ON TABLE PCHOLD FORMAT EXL2K OPEN NOBREAK 


Each of the following reports I had to use:

 ON TABLE PCHOLD FORMAT EXL2K NOBREAK 


The last report I had to use:

 ON TABLE PCHOLD FORMAT EXL2K CLOSE 


That solved my problem.


WebFOCUS 7.7.03
Windows Web Server 2008
MS SQL Server 2000
Excel,CSV,PDF,HTML