Information générale
Catégorie:
Gestionnaire de rapports & Rapports
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement