Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dispalying a report

Status
Not open for further replies.

JE77

Technical User
Aug 29, 2002
12
IE
Hi all,
As part of my system i need to be able to open a report from a button in a dialog box. At the moment i can open the report but my problem it that the report opens behind the dialog box. Is there any way i can force the report to open in front of the dialog box.
Thanks
JE77
 
If the dialog box is modal, then the dialog box will always be on top - i.e. will will not be able to bring the report to the front even by clicking on it. If this is the case, the only cure is to make the dialog box non modal (right click on the source form, select Window Style and un-check Modal check box).

If this is only a problem caused by the report not getting focus, you could use code like this:

var
rpt report
endVar

if rpt.open("SOME_REPORT.RSL") then
rpt.bringToTop() ;give focus to the report
rpt.wait() ;wait until user closes report
endif

Padraig
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top