Page 1 of 1

Maximize Report Runtime Previewer

Posted: Mon Jul 17, 2006 3:11 pm
by Khalil
Dear

I wish to maximize report runtime previewer window programatically i.e when run_product statement execute the report preview should be maximize automatically. We should not maximize it by clicking the maximize icon of the window. Would you please help in the matter. I shall really thankfull to you.

Posted: Tue Jul 18, 2006 1:38 am
by admin
Here is the metalink note so try it and let us know.

Subject: How to Maximize the Report Previewer window when called from Forms
Doc ID: Note:146291.1 Type: PROBLEM
Last Revision Date: 21-NOV-2003 Status: PUBLISHED


Problem Description
-------------------

When a report is called from Forms using Run_Product, the Report Previewer
window is not maximized. This has to be done manually.

Is there any way to maximize the Report Previewer window automatically when
the report is called from Forms?


Solution Description
--------------------

Pass MAXIMIZE parameter with Run_product for maximizing the Report previewer
window.


Explanation
-----------
example:

DECLARE
pl_id ParamList;
BEGIN

pl_id := Get_Parameter_List('tmpdata');

IF NOT Id_Null(pl_id) THEN
Destroy_Parameter_List( pl_id );
END IF;

pl_id := Create_Parameter_List('tmpdata');
Add_Parameter(pl_id, 'MAXIMIZE', TEXT_PARAMETER, 'YES');
Run_Product(REPORTS, 'e:\emp.rdf', SYNCHRONOUS, RUNTIME,FILESYSTEM, pl_id, NULL);
END;

Posted: Fri Jul 21, 2006 3:55 pm
by Khalil
Thanks a lot. I realy appreciate your efforts. God helps those who help others.