Dear Experts,
I am designing a document report. I am successfully able to retrieve Company & Customer details and display on the Report header. Also, I am able to retrieve item details and display on the Report body.
One of the user requirement is to convert total amount and display in words. I have converted the amount into words using Check->Report, but my issue is I am not able to display same on Report body.
I have defined an variable AmountInWords in DataItem - "Sales Invoice Line".
I am calculating the sum of row amount in "Sales Invoice Line" - OnAfterGetRecord() and I am assigning the final amount to AmountInWords in "Sales Invoice Line" - OnPostDataItem().
Could any help me, why am I not able to display the amount converted to word in the report header. Many Thanks for your help in advance.
Chetan
Bangalore
0
Answers
Thanks for your response.
Actually I have used SetData & GetData for Company & Customer details in report header.
Please make a correction to above statement, I want to print the Words in the Report Body.
When I assign the required words to AmountInWords variable, it is not passed to it in the DataSet(Report Screen -> Help -> About This Report).
Could you please through some light on this. Many Thanks.
Bangalore
I am having only one record, hence cannot consider Last(fields!Amountinwords.value) also.
Bangalore
in which dataitem you have placed the Amountinwords textbox
can you check placing the code and amountinwords text box OnAfterGetRecord of SalesInvoiceline
I have tried placing the AmountInWords variable in both "Sales Invoice Header" and "Sales Invoice Line" and have no result.
If I place the code in OnAfterGetRecord, it will print the totalamount for each record in that sales invoice line which I dont want.
Bangalore