Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sending the value of a property to a report
Message
De
31/07/2002 10:42:20
Carmen Gassi
Perseus Software Systems
Oakville, Ontario, Canada
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00684427
Message ID:
00684476
Vues:
32
>I'm not sure what you mean, in the field box on the report writer the expression is "grpsales.notes"

Carmen
What's the expression of the Field?
>
>>>I did check "Stretch with Overflow". I don't know how long the string is because I just wanted to try continuous typing in the edit box. I let the wordwrap function format the appearance of the text on the screen.
>>
>>Carmen
>>
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform