Focal Point
[CLOSED] PDF compound reports overlapping....

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

March 21, 2015, 08:16 AM
info4pal
[CLOSED] PDF compound reports overlapping....
Hi,

Iam using the below piece of code and am generating the 4 reports in the PDF format

SET HTMLARCHIVE=ON
*-HOLD_SOURCE
COMPOUND LAYOUT PCHOLD FORMAT PDF
UNITS=IN, $
SECTION=section1, LAYOUT=ON, METADATA='prop_with_names^Margins_Left=0.5^Margins_Top=0.5^Margins_Right=0.5^Margins_Bottom=0.5^thumbnailscale=4', MERGE=OFF, ORIENTATION=LANDSCAPE, PAGESIZE=Legal, SHOW_GLOBALFILTER=ON, ACTIVE_UNITS=PTS, $
PAGELAYOUT=1, NAME='report1', text='report1', TOC-LEVEL=1, BOTTOMMARGIN=0.15, TOPMARGIN=0.15, METADATA='BOTTOMMARGIN=0.15,TOPMARGIN=0.15,LEFTMARGIN=0,RIGHTMARGIN=0,', $
COMPONENT='report1', TEXT='report1', TOC-LEVEL=2, POSITION=(0.145 0.145), DIMENSION=(13.706 8.205), METADATA='Z-INDEX: 100; POSITION: absolute; WIDTH: 13.706in; HEIGHT: 8.205in; TOP: 0.145in; LEFT: 0.145in', $
PAGELAYOUT=2, NAME='report2', text='report2', TOC-LEVEL=1, BOTTOMMARGIN=0.15, TOPMARGIN=0.15, METADATA='BOTTOMMARGIN=0.15,TOPMARGIN=0.15,LEFTMARGIN=0,RIGHTMARGIN=0,', $
COMPONENT='report2', TEXT='report2', TOC-LEVEL=2, POSITION=(0.145 0.145), DIMENSION=(13.706 8.205), METADATA='Z-INDEX: 100; POSITION: absolute; WIDTH: 13.706in; HEIGHT: 8.205in; TOP: 0.145in; LEFT: 0.145in', $
PAGELAYOUT=3, NAME='report3', text='report3', TOC-LEVEL=1, BOTTOMMARGIN=0.15, TOPMARGIN=0.15, METADATA='BOTTOMMARGIN=0.15,TOPMARGIN=0.15,LEFTMARGIN=0,RIGHTMARGIN=0,', $
COMPONENT='report3', TEXT='report3', TOC-LEVEL=2, POSITION=(0.145 0.145), DIMENSION=(13.706 8.205), METADATA='Z-INDEX: 100; POSITION: absolute; WIDTH: 13.706in; HEIGHT: 8.205in; TOP: 0.145in; LEFT: 0.145in', $
PAGELAYOUT=4, NAME='report4', text='report4', TOC-LEVEL=1, BOTTOMMARGIN=0.15, TOPMARGIN=0.15, METADATA='BOTTOMMARGIN=0.15,TOPMARGIN=0.15,LEFTMARGIN=0,RIGHTMARGIN=0,', $
COMPONENT='report4', TEXT='report4', TOC-LEVEL=2, POSITION=(0.145 0.145), DIMENSION=(13.706 8.205), METADATA='Z-INDEX: 100; POSITION: absolute; WIDTH: 13.706in; HEIGHT: 8.205in; TOP: 0.145in; LEFT: 0.145in', $
END

SET COMPONENT='report1'
TABLE FILE HOLD1
PRINT *
ON TABLE PCHOLD FORMAT PDF
END

SET COMPONENT='report2'
TABLE FILE HOLD1
PRINT *
ON TABLE PCHOLD FORMAT PDF
END

SET COMPONENT='report3'
TABLE FILE HOLD1
PRINT *
ON TABLE PCHOLD FORMAT PDF
END

SET COMPONENT='report4'
TABLE FILE HOLD1
PRINT *
ON TABLE PCHOLD FORMAT PDF
END
COMPOUND END

The problem is : the reports are getting generated one below the other but they are overlapping.I tried setting the position also and also did try changing the top position but everytime it keeps overlapping...

Can anyone please tell me how to get the 4 reports generated without any overlap.
Also is there any way to get the 4 reports in the pfd format in the form of tabs(next to each other).

Any help would be appreciated.
Thanks a lot in advance!

-IP

This message has been edited. Last edited by: <Kathryn Henning>,


Webfocus 8105 Developer studio,Windows 7,HTML,Excel,PDF,Text,Infoassist,Graph,AHTML
March 22, 2015, 11:49 PM
pradhan_dp
Two things here:
1) Position needs to be changed - I'm not sure if you tried changing "POSITION=(0.145 0.145)"
for each report. I think this needs to give out the top left cordinate of the individual report.

2) Dimension of all reports is set "DIMENSION=(13.706 8.205)". Just by the looks of it, it seems all reports have huge dimensions(width and height) which is almost equal or exceeds the paper size. Try decreasing this.


WebFOCUS 7.6.1
Windows, HTML,PDF,EXCEL2000
March 22, 2015, 11:51 PM
pradhan_dp
Compund PDFs in vertical tabs is easy. All you need to do is adjust your dimension and the position (mentioned in my post above).


WebFOCUS 7.6.1
Windows, HTML,PDF,EXCEL2000
March 23, 2015, 01:25 AM
info4pal
Hi,

Pradhan_dp - Iam already using the POSITION as (0.145 0.145) and still the reports are getting overlapped.
Changing the dimension has no impact on this one.Anyways thanks Pradhan Smiler

Also Iam not sure how much space does each report occupies everytime...I need to know how to make it dynamic rather than setting up the postion of each report separately....
Could anyone please let me know how to do this.

Any help is appreciated!

Thanks a lot!

-IP

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


Webfocus 8105 Developer studio,Windows 7,HTML,Excel,PDF,Text,Infoassist,Graph,AHTML
March 23, 2015, 03:06 AM
atturhari
For dynamic positioning, you should use relative position. The code below will give you an idea,


COMPONENT='table2', TEXT='table2', TOC-LEVEL=2, POSITION=(+0.000 +.00), DIMENSION=(* *), RELATIVE-TO='table1', RELATIVE-POINT=BOTTOM-LEFT, POSITION-POINT=TOP-LEFT, REQUIRED-SPACE=(* 2),

March 23, 2015, 08:09 AM
pradhan_dp
Atturhari - Wow! Did not know that we can do relative positioning.
I always thought PDF compound reports have to be hardcoded with the dimension.

I'm curious now. What happens if the two reports overflow the size of the page? or what if the one on top is very lengthy?
Do they still maintain the format on the first page and overflowing data goes on to the next page?


WebFOCUS 7.6.1
Windows, HTML,PDF,EXCEL2000
March 23, 2015, 08:48 AM
info4pal
Hi,

Thanks a lot Atturhari...I will try that and see if that works.

Regards,
IP


Webfocus 8105 Developer studio,Windows 7,HTML,Excel,PDF,Text,Infoassist,Graph,AHTML
March 23, 2015, 09:27 AM
atturhari
quote:

I'm curious now. What happens if the two reports overflow the size of the page? or what if the one on top is very lengthy?
Do they still maintain the format on the first page and overflowing data goes on to the next page?

Anything is possible with the tool. The overflow can also be controlled (OVERFLOW: autoWink and all depends on what attributes you set for each component.
Setting OVERFLOW as auto, you will make the 2nd report to being at the end of 1st report regardless of the pages. Turning OVERFLOW off will render the components in the fixed positions.