Announcements
No record found.
If your custom ItemDescription field is of type BLOB (e.g. used for long or formatted text), it won’t show directly in Word layouts unless you calculate and convert it into a text variable in the AL report code.
ItemDescription
Here’s how to handle it: (i did this for Tax Invoice adjust your code according to your requirements)
dataitem(WorkDescriptionLines; "Integer") { DataItemTableView = sorting(Number) where(Number = filter(1 .. 99999)); column(WorkDescriptionLineNumber; Number) { } column(WorkDescriptionLine; WorkDescriptionLine) { } trigger OnPreDataItem() var myInt: Integer; begin "Sales Invoice Header"."Work Description".CreateInStream(WorkDescriptionInstream, TextEncoding::UTF8); end; trigger OnAfterGetRecord() var TypeHelper: Codeunit "Type Helper"; begin if WorkDescriptionInstream.EOS then CurrReport.Break(); WorkDescriptionLine := TypeHelper.ReadAsTextWithSeparator(WorkDescriptionInstream, TypeHelper.LFSeparator()); end; trigger OnPostDataItem() var begin Clear(WorkDescriptionInstream); end; }
Assign ItemDescText to a global variable and bind that to the Word layout.
ItemDescText
Also, for the VAT column, use a visibility condition in the layout like:
=IIF(Fields!VATAmount.Value = 0, False, True)
Lastly, check out Mr. Yun Zhu’s blog for more Word layout handling tips: 🔗 https://yzhums.com/27951/
✅ Mark this answer as verified if it helps you.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 2,005 Super User 2026 Season 1
YUN ZHU 1,148 Super User 2026 Season 1
Khushbu Rajvi. 557 Super User 2026 Season 1