Focal Point
[CLOSED] Title on browser in pdf report

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

March 10, 2009, 08:32 AM
pk
[CLOSED] Title on browser in pdf report
hello all,

i need to display the report title name on browser. the report format is in PDF.

am able to achieve this in html format using the code
 <script type="text/javascript">parent.document.title='Executive Risk Report';</script> 


but am unable to obtain in pdf.....
could anyone please suggest me how it can be done?

Thanks in advance

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


714
March 10, 2009, 09:23 AM
Tony A
Use an iframe to house the PDF report and set the title attribute in the parent HTML page.

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 
March 11, 2009, 06:00 AM
pk
but though pdf is housed into an iframe it opens in a new window and the title of the browser is shown in url format but
my requirement is to display a title on browser


714
March 11, 2009, 07:10 AM
pk
may be i might be making some mistake in any step... could please post an example for this problem....


714
March 17, 2009, 09:05 AM
GamP
As Tony said, use an iframe to display your pdf.
Example? Here it is:
APP HOLD MYAPP

TABLE FILE CAR
PRINT DEALER_COST RETAIL_COST
BY COUNTRY
ON TABLE HOLD AS MYPDF FORMAT PDF
END
-RUN

-HTMLFORM BEGIN
<HTML>
<HEAD>
<TITLE>THIS IS MY PDF</TITLE>
</HEAD>
<BODY>
<iframe width=100% height=100% src=/approot/myapp/mypdf.pdf>
</BODY>
</HTML>
-HTMLFORM END  

Will this be of any help to you?


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988