web
You’re offline. This is a read only version of the page.
close
Skip to main content
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 384

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)
  • Asif Shahzad Profile Picture
    384 on at
    RE: picture is not showing on report

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

    trigger OnInitReport()

       begin

           TempShop.SetAutoCalcFields(Logo);

           TempShop.FindSet();

       end;

  • Suggested answer
    JAngle Profile Picture
    117 on at
    RE: picture is not showing on report

    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

  • Suggested answer
    Suresh Kulla Profile Picture
    50,054 Super User 2025 Season 2 on at
    RE: picture is not showing on report

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

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 3,878

#2
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 3,405

#3
Sumit Singh Profile Picture

Sumit Singh 2,865

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans