Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
maximum the browser
 Login/Join
 
Gold member
posted
How can I Maximize the browser window when the report output is PDF?

I found a response on this forum that provided a solution for HTML but it does not work for PDF.
 
Posts: 84 | Location: Tallahassee, Fl. | Registered: December 02, 2005Report This Post
Virtuoso
posted Hide Post
Do you need this to happen every time a pdf or excel report is executed?


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
 
Posts: 1102 | Location: Toronto, Ontario | Registered: May 26, 2004Report This Post
Gold member
posted Hide Post
Yes, I found a work around that works but would like to know if there is a way to this from the report itself.

The work around is add script code in HTML publish report that resizes window. This works fine but was just wandering if there was another way.

Thanks
 
Posts: 84 | Location: Tallahassee, Fl. | Registered: December 02, 2005Report This Post
Virtuoso
posted Hide Post
Mike,

I have a way of doing that, but tread carefully. If you are using the english version, then there exists a file called entmplts.wfs. In this file is a tag called "REDIRECT_BODY". This tag contains the html that is sent back to the browser whenever a redirrected mime type is called (eg: EXCEL, PDF etc). You can alter the contents of this and add the JS setting to maximize your window. So to do this dynamically, add the following before the REDIRECT_BODY setting:
<if> MY_MAX EQ "YES"
  MY_MAX_OUT=window.moveTo(0,0);window.resizeTo(screen.width,screen.height);
<else>
  MY_MAX_OUT=
<endif>


And change the function in the REDIRECT_BODY to now contain the MY_MAX_OUT parameter thusly:
 
REDIRECT_BODY=<HTML><Head><Title>WebFOCUS Report</Title>\n   \\=
<Script Language="JavaScript">\n                             \\=
<\!--\n                                                      \\=
function getrep() {\n                                        \\=
   &MY_MAX_OUT \n                                            \\= 
   if(parseInt(window.navigator.appVersion,10)<4)\n          \\=
 


Now, whenever you execute a report with either excel or pdf as the output, and there exists a parameter called &MY_MAX that is equal to "YES", then the end result will be a maximized screen.

Be warned, as there is no guarentee that this will work in future releases, as you should not be touching these files.


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
 
Posts: 1102 | Location: Toronto, Ontario | Registered: May 26, 2004Report This Post
Gold member
posted Hide Post
Thanks,

I will save this code. But I don't have access to the file in question. I only have the MRE version of Developer Studio. Thanks again.
 
Posts: 84 | Location: Tallahassee, Fl. | Registered: December 02, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders