March 25, 2008, 05:19 AM
BHS6868Problem Generating PDF document
Dear All,
Basically I have a code that generates about 200 lines of data into a PDF document. Here is the bottom part of the code:
ON TABLE SET PAGE-NUM OFF
ON TABLE SET TITLE OFF
ON TABLE SET STYLESHEET *
TYPE=REPORT, ORIENTATION=LANDSCAPE,$
TYPE=REPORT, SQUEEZE=ON, $
TYPE=REPORT, GRID=ON, $
ENDSTYLE
ON TABLE PCHOLD FORMAT PDF
END
The PDF Document is able to be generate without any problem.However the layout is way off as some columns overflow to a different page.
So I added some code just to make the fonts smaller.
ON TABLE SET PAGE-NUM OFF
ON TABLE SET TITLE OFF
ON TABLE SET STYLESHEET *
TYPE=REPORT, ORIENTATION=LANDSCAPE,$
TYPE=REPORT, SQUEEZE=ON, $
TYPE=REPORT, GRID=ON, $
-* Added this line
TYPE=DATA,COLOR=BLACK, FONT=ARIAL, SIZE=4,STYLE=NORMAL, $
ENDSTYLE
ON TABLE PCHOLD FORMAT PDF
END
The report then run for a long time and finally the browser says that It can't display the webpage because the connection timeout.
Any idea on how to solve this issue or monitor the WebFOCUS server?
Thanks in advance.
March 25, 2008, 07:08 AM
Tony ARead Mickey Grackins excellent articles on the tips and techniques pages accessed from the "IB - Developer Center" link above.
T
March 25, 2008, 09:26 AM
FrankDutchThe 200 lines of output might not be the problem, but the collection of that data.
If you post a bit more of your coding, tell us something about the database you are working on, try to report first in HTML, try to get some intermediate results, put some debugging code in the FEX and things like that, you may find an answer.