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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

picture is not showing on report

(0) ShareShare
ReportReport
Posted on by 410

Hello All,

I m trying to create a custom report... in the report there is a custom table with a field LOGO datatype is Blob and subtype is Bitmap. Picture is saving properly in the page and showing but when I added the column in the report,  it is not displaying the image. Please see the dataset where I am wrong.

report xxxxx "Temp Sales Invoice"
{
    Caption = 'Temp Sales Invoice';
    DefaultLayout = Word;
    WordLayout = 'Layout/ReportTempSalesInvoice.docx';
    PreviewMode = PrintLayout;
    //Permissions = TableData "Sales Shipment Buffer" = rimd;
    WordMergeDataItem = Header;
    dataset
    {
        dataitem(Header; "Sales Invoice Header")
        {
            DataItemTableView = SORTING("No.");
            RequestFilterFields = "No.", "Sell-to Customer No.", "No. Printed";
            RequestFilterHeading = 'Posted Sales Invoice';

            column(No_; "No.") { }
            column(Sell_to_Customer_Name; "Sell-to Customer Name") { }
            column(Document_Date; "Document Date") { }
            column(Bill_to_Customer_No_; "Bill-to Customer No.") { }

            dataitem(Shop; "Sales Invoice Line")
            {
                DataItemLink = "Document No." = FIELD("No.");
                DataItemLinkReference = Header;
                DataItemTableView = SORTING("Document No.", "Line No.");
                column(ShopName; tempShop.Description) { }
                column(ShopCode; tempShop.Code) { }
                column(shopLogo; tempShop.Logo) { }
            }

            dataitem(Line; "Sales Invoice Line")
            {
                DataItemLink = "Document No." = FIELD("No.");
                DataItemLinkReference = Header;
                DataItemTableView = SORTING("Document No.", "Line No.");
                column(LineNo_Line; "Line No.") { }
                column(AmountExcludingVAT_Line; Amount) { }
            }
            trigger OnAfterGetRecord()
            begin
                if TempShop.Get("Webshop Code") then begin
                    TempShop.SetAutoCalcFields(Logo);
                end;
            end;
        }

    }
    var
        TempShop: Record "Web Shop";

}

  • Suggested answer
    Suresh Kulla Profile Picture
    50,280 Super User 2026 Season 1 on at

    Where do you display the logo on the report? looks like you are getting the record at line level.

  • Suggested answer
    JAngle Profile Picture
    161 on at

    The variable of we shop doesn’t need to be onaftergetrecord of the invoice header. Check how it is done with the company setup on a standard report - like a sales invoice:

    trigger OnInitReport()

       begin

           GLSetup.Get;

           CompanyInfo.SetAutoCalcFields(Picture);

           CompanyInfo.Get;

           SalesSetup.Get;

    The column is then part of the first dataitem in the report

  • Asif Shahzad Profile Picture
    410 on at

    Thanks for your reply. Yes I did this too but still not showing.

    trigger OnInitReport()

       begin

           TempShop.SetAutoCalcFields(Logo);

           TempShop.FindSet();

       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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 631 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 409 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 222 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans