Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Odd Preview Window Behavior
Message
 
To
25/05/2005 14:26:15
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01017308
Message ID:
01017637
Views:
21
What about doing it like this?
TRY

loForm = CREATEOBJECT('myForm')
loForm.Show()
loForm.RunReport()
READ EVENTS

CATCH TO oException


ENDTRY

DEFINE CLASS myForm as Form

ShowWindow = 2 &&as top level form

PROCEDURE RunReport()

	SET REPORTBEHAVIOR 90
	REPORT FORM HOME(1) + "Tools\Filespec\60SCX1.frx" PREVIEW NOWAIT

ENDPROC

PROCEDURE Destroy
	CLEAR EVENTS
ENDPROC

ENDDEFINE
>Add the following to a prg file. You should be able to see the issue I'm experiencing just by running in VFP 9, but you can try compiling it to an exe as well...
>If I select any other option for ShowWindow, I can access the report preview controls.
>if you set report behavior to 80, or run in VFP 8 with the set report omitted,
>the preview controls function properly as well.
>
>
>
>
>TRY
>
>loForm = CREATEOBJECT('myForm')
>loForm.Show()
>loForm.RunReport()
>
>
>CATCH TO oException
>
>
>ENDTRY
>
>DEFINE CLASS myForm as Form
>
>ShowWindow = 2 &&as top level form
>
>PROCEDURE RunReport()
>	
>	SET REPORTBEHAVIOR 90
>	REPORT FORM HOME(1) + "Tools\Filespec\60SCX1.frx" PREVIEW
>
>ENDPROC
>
>
>ENDDEFINE
>
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform