web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Display Text BLOB in Word Layout

(0) ShareShare
ReportReport
Posted on by 31

Hello,

I am working on extensions for NAV2018.

I tried to show a Text from a BLOB field in a Word Layout. But I am having the following result :

pastedimage1602146377083v2.png

I used a "Repeating" Content Control in the Word Layout and CalcFields in the trigger OnAfterGetRecord() :

8270.Capture.PNG

Thanks in advance.

I have the same question (0)
  • Suggested answer
    Andy Sather Profile Picture
    on at

    Hello  - We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist.  If you need assistance with debugging or coding I would recommend discussing this on one of our communities.

    www.yammer.com/dynamicsnavdev

    dynamicsuser.net/.../developers

    I will open this up to the community in case they have something to add.

  • Suggested answer
    JAngle Profile Picture
    133 on at

    Take a look at the “Work Description” field on the sales header. Using that as an example take a look at how this field is calculated and then displayed in the report for sales order confirmation or sales invoice. Should be enough inspiration to get your scenario solved

  • Verified answer
    BouMe Profile Picture
    31 on at

    Hi,

    The solution that I found is using a Text field that I fill with InStream

    trigger OnAfterGetRecord();
                var
                    locCalculLoyerEntete : Record "Calcul Loyer Entete";
                    osInStream : InStream;
                    sLine : Text;
                    sCrLf : Text;
                    cCr : Char;
                begin
                    locCalculLoyerEntete.Get("No.");
                    locCalculLoyerEntete.CalcFields("Documents Manquants");
                    // Transform BLOB "Documents Manquants" to Text in sDocsManquants
                    sDocsManquants:='';
                    sLine:='';
                    cCr:=10;
                    sCrLf:=Format(cCr, 1); // Display line break
                    Clear(osInStream);
                    if "Documents Manquants".HasValue then
                    begin 
                        locCalculLoyerEntete."Documents Manquants".CreateInStream(osInStream);
                        while not osInStream.EOS do begin
                            osInStream.ReadText(sLine);
                            sDocsManquants+=sLine+sCrLf;
                        end;
                    end;
                end;

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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,143

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,694 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans