Focal Point
Merging individual PDF report with Compund PDF
December 28, 2007, 02:27 AM
PrasannaMerging individual PDF report with Compund PDF
Hi,
I am working on a solution where i need to generate a PDF report in which i have to include 3-5 pdf reports and one compund PDF report (in this compund PDF i am showing 6 reports in one page and another 6 report in 2nd page).Both i am able to do individually. but when it comes for merging them it didnt work. I tried using like this
SET COMPUND = OPEN
-include <fex1>
-include <fex2>
-include <fex3>
-include <fex4> (all these as having pchold format as PDF)
SET COMPUND = CLOSE
-include <compund pdf file>(this already has 2 page of PDF output)
But it didnt give me any output. Just says NO HTML OUTPUT and show how records processed.
If you know any forum discussion on this or your solution please let me know.
Dev:
Dev Studio 7.1.6,Report Caster 7.1.1,Servlet
Local:
Dev Studio 7.1.6,Report Caster 7.1.1,Apache 5.0.2,
Win XP
December 28, 2007, 03:18 AM
FrankDutchPrasanna
I suppose your other included compound report has the same structure as this one, so if you think of the whole report included the other compound report you would see two times the command "set compound=open" and two time "set compound=close".
In my opinion that ruins the whole thing.
I would remove the "set compound=close line" here and see if that works better.
If you still have a problem, rty to remove the "set compound=open" in the second report too.
If you do not need to run the second report separate, than make it as one fex.
|
Frank |
 | prod: WF 7.6.10 platform Windows, databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7 test: WF 7.6.10 on the same platform and databases,IE7 |
December 28, 2007, 03:55 AM
PrasannaFrank,
There is a typo in my report. I need to merge the normal PDF report with the COMPONENT pdf report. The component PDF report is generated by PDF layout painter.
Now tell me how do you merge the 5 PDF (individual) reports with one COMPONENT PDF report (this component reprt has 6 reports in one page and 6 reports another page of PDF).
is my SET COMPOUND method is right for this issue.
Dev:
Dev Studio 7.1.6,Report Caster 7.1.1,Servlet
Local:
Dev Studio 7.1.6,Report Caster 7.1.1,Apache 5.0.2,
Win XP
December 28, 2007, 05:15 AM
FrankDutchPlease post the script of the other compound report that will make it more clear and I will see if I can help.
|
Frank |
 | prod: WF 7.6.10 platform Windows, databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7 test: WF 7.6.10 on the same platform and databases,IE7 |
December 28, 2007, 06:20 AM
PrasannaHere is the program that has the same requirement for me. I used CAR file.
CONTENTS OF MAIN FILE
SET COMPOUND=OPEN
-INCLUDE includecheck3.fex
SET COMPOUND=CLOSE
-INCLUDE includecheck4.fex
CONTENTS OF includecheck3.fex WHICH IS INCLUDED IN MAIN FILE
TABLE FILE CAR
BY COUNTRY
ON TABLE PCHOLD FORMAT PDF
END
CONTENTS OF COMPOUND PDF (includecheck4.fex) CREATED USING PDF LAYOUT PAINTER
COMPOUND LAYOUT
UNITS=IN, $
SECTION=section1, LAYOUT=ON, MERGE=OFF, ORIENTATION=PORTRAIT, PAGESIZE=Letter, $
pagelayout=1, name='Layout page 1', $
component='report1', type=report, position=(0.500 0.500), dimension=(1.917 1.292), $
component='report2', type=report, position=(3.333 0.625), dimension=(1.979 1.250), $
END
SET COMPONENT='report1'
-*component_type report
-INCLUDE includecheck2
SET COMPONENT='report2'
-*component_type report
-INCLUDE includecheck1
COMPOUND END
CONTENTS OF includecheck2 WHICH IS PRESENT IN THE COMPOUND PDF
TABLE FILE CAR
BY BODYTYPE
ON TABLE PCHOLD FORMAT PDF
END
CONTENTS OF includecheck1 WHICH IS ALSO PRESENT IN THE COMPOUND PDF
TABLE FILE CAR
BY MODEL
ON TABLE PCHOLD FORMAT PDF
END
Dev:
Dev Studio 7.1.6,Report Caster 7.1.1,Servlet
Local:
Dev Studio 7.1.6,Report Caster 7.1.1,Apache 5.0.2,
Win XP
December 28, 2007, 07:42 AM
Tony AYou are trying to combine two types of PDF compound, the old method and the new method. Stick to one or the other - not both.
T
In FOCUS since 1986 | WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2 | | |
WebFOCUS App Studio 8.2.06 standalone on Windows 10 | |
December 28, 2007, 08:32 AM
FrankDutchthat was my line Tony....
|
Frank |
 | prod: WF 7.6.10 platform Windows, databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7 test: WF 7.6.10 on the same platform and databases,IE7 |
December 28, 2007, 10:34 AM
Tony A
December 28, 2007, 11:47 AM
FrankDutchI would include all the components into this file something like
COMPOUND LAYOUT UNITS=IN, $
SECTION=section1, LAYOUT=ON, MERGE=OFF, ORIENTATION=PORTRAIT, PAGESIZE=Letter, $
pagelayout=1, name='Layout page 1', $
component='report1', type=report, position=(0.500 0.500), dimension=(1.917 1.292), $
component='report2', type=report, position=(3.333 0.625), dimension=(1.979 1.250), $
pagelayout=2, name='Layout page 2', $
component='report3', type=report, position=(0.500 0.500), dimension=(2 2), $
component='report4', type=report, position=(4.000 1.000), dimension=(3 3), $
pagelayout=3, name='Layout page 3', $
component='report5', type=report, position=(0.500 0.500), dimension=(1 2), $
component='report6', type=report, position=(3.00 1.000), dimension=(3 3), $
END
SET COMPONENT='report1'
-*component_type report
-INCLUDE includecheck1
SET COMPONENT='report2'
-*component_type report
-INCLUDE includecheck2
SET COMPONENT='report3'
-*component_type report
-INCLUDE includecheck3
SET COMPONENT='report4'
-*component_type report
-INCLUDE includecheck4
SET COMPONENT='report5'
-*component_type report
-INCLUDE fex1
SET COMPONENT='report6'
-*component_type report
-INCLUDE fex2
COMPOUND END
Now this creates a report with 3 pages and on each page 2 tables.
It depends on the size of each table if this works, but you can play with the dimensions.
If a report is bigger than one page you need to create an overflow page.
It's also possible to put text, lines and images into the compound page.
|
Frank |
 | prod: WF 7.6.10 platform Windows, databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7 test: WF 7.6.10 on the same platform and databases,IE7 |
December 28, 2007, 11:57 AM
LeahI've found that in the last fex to say
ON TABLE SET ONLINE-FMT PDF
ON TABLE SET COMPOUND CLOSED
for where report is closed works.
Leah
December 31, 2007, 05:38 AM
PrasannaThanks for the replies.
Actually my client wants the report like this. he is having 15 different reports. One of the report will be in COMPOUND report, where we integrated 6 graphs and 9 tables. Remaining all are individual reports. Each individual report will go more than one page. COMPOUND report will be in 2 pages.
There is a option for the user to select the ALL 15 reports. In that i need to integrate the COMPOUND report and other reports.
Leah: i tried your approach, but it didnt work.
Dev:
Dev Studio 7.1.6,Report Caster 7.1.1,Servlet
Local:
Dev Studio 7.1.6,Report Caster 7.1.1,Apache 5.0.2,
Win XP
December 31, 2007, 12:30 PM
Darin LeeI am very interested in finding a solution to your issue as it sounds like the same as
this question I posted a couple weeks back. Unfortunately I have not been able to come up with anything either.
User can select up to 16 different reports or graphs, but two of the reports are their own compound report. Hmm. I'll keep an eye on your post and let you know if I come up with anything.
Regards,
Darin
In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat