Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reports calling an object method
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00197705
Message ID:
00197707
Views:
17
>I know I've run into this before, but I never came up with a good reason why this happened (I just worked around it). I've got a report that calls a method that calculates a return value. On my report, I have fields that do something like:
>
>oReport.CalculatePercentage(lnFirst,lnSecond)
>
>In the oReport class (which is instanciated before the report), the CalculatePercentage method:
>
>LPARAMETER lnDivisor, lnDividend
>
>(stuff deleted)
>
>RETURN lnAnswer
>
> When I running the report directly to the printer, it seemed to work. Now I've switched it to printing to a PDF file, and the report is filling the fields with "999" which is the format for that field. If I preview it, it looks OK, but as soon as I print it, the report fills the values with "999" again.
>
> Last time I ran into this, I added the calculations into my cursor and just referenced those. In this project, that would create a lot more work (so I'd like to avoid it). Besides, I'm curious as to what's really happening.
>
>-Paul

Could you post instanciation line (createobject?) for 'oReport'? Basically, you may try to link it safer, i.e. to oApp.oReport property.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform