Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sending the value of a property to a report
Message
 
To
31/07/2002 10:26:34
Carmen Gassi
Perseus Software Systems
Oakville, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00684427
Message ID:
00684466
Views:
32
It should work. Did you check "Stretch with Overflow" checkbox? How long is the string?

>>Jayesh
> You are right. This particular report will only be printed from within the form. In order to make it more generic, I should include your approach. Good idea. By the way, what is the easiest way to print the contents of a memo field on a report. If I try to expand the field box on the report and the memo field is more than 1 line ( using word-wrap ), I receive the following error "String Too Long". I imagine it's because it is trying to fit the entire memo contents into one string. What is the best approach to printing the contents of a memo field using the report writer? Thanks again.
>
>Regards,
>Carmen
>Thisform can only be used within the Form. If you want to access Properties of the form in the report, do something like this.
>>
>>Form1.MyMethod()
>>
>>PUBLIC goForm
>>
>>goForm = Thisform
>>
>>REPORT FORM myReport
>>
>>Use goForm.myProperty in the PRINT WHEN, it should work.
>>
>>
>>>Thanks Jayesh
>>> I tried it both ways and to my surprise, it worked with the control property being examined by the report writer as well. I used the property in the PRINT WHEN for a field and in the expression I actually used thisform.property. It seems the control's properties are still in scope during the report session.
>>>
>>>Thanks
>>>Carmen
>>>>You are going in the right direction. I use Report Parameter object that is assinged to a PUBLIC varialble. I pass it around the Report Engine, add new properties using Object.AddProperty(). Works great.
>>>>
>>>>>Hello All
>>>>> Is it possible to send from a form, the value of a property to a report as a parameter? Would the alternative be to declare a public variable and assign the value of the property to the public variable so that the report writer will be aware of it?
>>>>>
>>>>>Thanks in advance
>>>>>Carmen
- Jayesh
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform