Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP9's Data environment
Message
From
24/07/2009 11:23:59
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
01414218
Message ID:
01414221
Views:
48
>>Hi...
>>
>>My application open some tables and run dif. reports at some point... And, how this application runs on different environments I don't use the report's environment feature. Usually the report should work with application environment... Since that I start to use the 9 report's behevior I'm facing some troubles... The behavior always do this:
>>
>>start app EXE
>>open table A
>>open table B
>>run reports (that use those tables only) --- an open windows dialog appear asking for external data
>>
>>If I do the same inside VFP the report works fine.
>>
>>I'll appreciate any help..
>>
>>Ps: I already try to set PRIVATE DATA SESSION of report as well the opposite... And try to use the clause ENVIRONMENT on the *report form* command
>>
>>Claudio
>
>Did you try for problematic reports
>
>SET REPORTBEHAVIOR 80

I can't do this... because the center of the idea is to don't use paper.. And mostly of this reports is exported as HTML and emailed to someone..

And I'm using report listeners... Something as:
lclocal		= Justpath(_Screen.cSetupIniName)
lcassi		= Forcepath("employsignature.htm", lclocal)
If  File(lcdest)
	Erase lcdest
Endif
lclib				 = "_reportlistener.vcx"
If  Version(2)=2
	lclib			 = Forcepath("_reportlistener.vcx",Home()+"\FFc\")
Endif
oHTMLReport = Newobject("HtmlListener", lclib)
oHTMLReport.ListenerType = HTMLListener
oHTMLReport.TargetFileName = lcdest
IF  pcalias="pedcompr"  && a try to select to work around
	SELECT copedite
ENDIF
SET COVERAGE TO log.txt

*SET STEP ON 
*WAIT WINDOW "I'm here 1"
Report Form (lcrepo) &options &forexpr;
	TO Printer Prompt Noconsole Object oHTMLReport
*WAIT WINDOW "I'm here 2"
SET COVERAGE TO 
tks
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform