Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XFRX - Must I distrubute the physical report files?
Message
General information
Forum:
Visual FoxPro
Category:
Third party products
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01352380
Message ID:
01352714
Views:
66
Okay, I'm not sure I'm doing this right. But here is what I did:

I created a model form, added the XFCont class to it. In the form I have a method called LoadReport which I call from the show:
local loSession, lnRetval 
loSession= xfrx("XFRX#INIT") 
lnRetVal = loSession.SetParams(,,,,,,"CNT") 
If lnRetVal = 0 
	* * we are assuming the XFCont container is * available as thisform.cntXFRX * 
	thisform.cntXFRX.reset() 
	loSession.setotherparams(thisform.cntXFRX) 
	loSession.ProcessReport("test") 
	loSession.finalize() 
ENDIF
RELEASE loSession
This loads the test report into the previewer, and all that works, but I lose control of the form. I have a quit button on the form with thisform.release in the click method. If I don't call the LoadReport, the form works as expected (but no report in the preview), but once the report is loaded, the Quit button doesn't do anything, and unexpectedly (since it was a model form), I have access to the Command window and doing a Clear All release the form.

Any hints?

Kirk
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform