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...
* 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...
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.
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.