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...
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";

}

I have the same question (0)
  • Suggested answer
    Suresh Kulla Profile Picture
    50,243 Super User 2025 Season 2 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
    133 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

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,229

#2
Jainam M. Kothari Profile Picture

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

#3
YUN ZHU Profile Picture

YUN ZHU 1,153 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans