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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I run a report outside the FORM window?

Status
Not open for further replies.

shelbytll

Programmer
Dec 7, 2001
135
0
0
SG
I have a FORM in which it's ShowWindow = 2.
When I click a button to run a REPORT, the REPORT is run inside the FORM window. Is it possible to run outside the FORM window? I am a clever newbie...[peace]
 
* Put a report preview in a specified window.
DEFINE WINDOW RepPreview FROM 0,0 to 50,100 title "Employees"
REPORT FORM Employees PREVIEW WINDOW RepPreview NOWAIT
Attitude is Everything
 
Hi,
ermm... that not exactly what I'm looking for.
I've tested out and the result is still the same. It still run inside the FORM where I call the REPORT. I want the REPORT to run outside the FORM. I am a clever newbie...[peace]
 
Shelbytll

I have a FORM in which it's ShowWindow = 2.
When I click a button to run a REPORT, the REPORT is run inside the FORM window. Is it possible to run outside the FORM window?


Hide your form. Let's say your form is called myMainForm. In the click event of your report button:
Code:
THISFORM.VISIBLE =.F.
REPORT FORM myReport.frx preview
THISFORM.VISIBLE =.T.



Mike Gagnon
 
HI SHelbytll,

1. REPORT FORM myReport PREVIEW WINDOW RepPreview
This will send the report to WINDOW or Form RepPreview.. etc.
2. If your simply say..
REPORT FORM myReport PREVIEW .... etc without Window name.. The report always go to _SCREEN

However, if you have a top level form and _screen.Visible = .f... then the situation is different.

SO the problem could be.. you have to code in your report command button...

_SCREEN.Visible = .t.
REPORT FORM myReport PREVIEW .... etc

Hope this helps you :) ramani :)
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top