Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Preview from builder, runtime
Message
From
10/07/2008 08:06:10
 
 
To
10/07/2008 07:26:30
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01330149
Message ID:
01330171
Views:
29
Hi Agnes,

at the time I only see one difference between your approach and the one that I am working with.
My call is like this:
 MODIFY REPORT (m.vFile) NOENVIRONMENT PROTECTED SAVE
Although our customers get access to create/modify individuals reports, we never save the dataenvironment with the default report and it will always run in protected mode. BTW the MODI REPO is called from within a small exe which receives just one parameter and that's the frx including the path. If the parameter can be validated, there are some SET commands like path, reportbehavior and sysmenu and then the above mentioned modi repo.
Looking at your code, to me it isn't obvious why it doesn't behave the way it should. Oh, and we don't use foxuser.dbf...

>Thomas,
>I've changed my rpg like
>
>lvtemp='C:\Programme\Microsoft\VFP9.1\'
>*lvtemp=ADDBS(THIS.hcStartPath)
>   _REPORTOUTPUT  = lvTemp+'ReportOutput.app'
>   _REPORTPREVIEW = lvTemp+'ReportPreview.app'
>   _REPORTBUILDER = lvTemp+'ReportBuilder.app'
>
>?FILE(_REPORTOUTPUT) and FILE(_REPORTPREVIEW ) and FILE(_REPORTBUILDER)
>
>SET PATH TO C:\Programme\Microsoft\VFP9.1
>SET REPORTBEHAVIOR 90
>CREATE CURSOR cur1 (c1 c(10))
>INSERT INTO cur1 VALUES ('1')
>INSERT INTO cur1 VALUES ('2')
>INSERT INTO cur1 VALUES ('3')
>
>MODIFY REPORT e:\se\temp\modrep.frx
>
>
>but I get no preview. The print statement returns .t.
>
>Agnes
>>Hi Agnes,
>>
>>I can reproduce your problem, if there is no reportpreview.app within my PATH declaration.
>>Where is your reportpreview.app located? Only in C:\Programme\Microsoft Visual FoxPro 9 ?
>>I got mine within a subdirectory calles _apps and my path show to this directory. I removed the app and voilà, same error as yours.
Best Regards
-Tom

Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.

Oh, and BTW: 010101100100011001010000011110000101001001101111011000110110101101110011
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform