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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

DataItem not visible in Word report

(0) ShareShare
ReportReport
Posted on by 436

Hey community, 

I have created a report extension for "Standard Sales - Pro Forma Inv" and I'm creating a dataitem in header but when I'm opening the word layout, the created dataitem is not in the XML Mapping Pane. I have also tried addlast, addbefore and addafter but it is not working. Kindly help

pastedimage1672910201994v2.png

pastedimage1672910281765v3.png

I have the same question (0)
  • Suggested answer
    Nitin Verma Profile Picture
    21,812 Moderator on at

    Hi,

    Have you added any report layout with .docx or RDLC?

    Thanks.

  • Suggested answer
    Steven Renders Profile Picture
    5,698 Moderator on at

    learn.microsoft.com/.../devenv-report-ext-object

    The report layout of an existing report can't be extended, only substituted. To use an existing report as a starting point, you can download the layout from Business Central and include it in the extension project.

    Layouts that are included in a report extension will show up in Business Central as built-in layouts. The layout in a report extension will not automatically be used when the report extension is deployed. To use the report extension layout, go to the Report Layout Selection page in Business Central, make sure to choose to use a built-in layout in the Selected layout field, and then choose the layout for the report in question from the Custom Layout Description drop-down box.

    You can automatically update a report layout from the error message that appears when you run the report by choosing the Yes button on the error message. Or, in advance of running reports, you can update specific report layouts or all custom report layouts that might be affected by dataset changes.

    Update Custom Report Layouts - Business Central | Microsoft Learn

  • Muhammad Anas Naeemi Profile Picture
    436 on at

    Hey Nitin, as it a default report and I'm just extending it so its layout is already defined. However, my issue is resolved. Thank you.

  • Muhammad Anas Naeemi Profile Picture
    436 on at

    Thank you Steven for your help. My issue is resolved,

  • Suggested answer
    Nitin Verma Profile Picture
    21,812 Moderator on at

    Thanks for confirmation, you can also put your solution here, so that it help others.

  • Muhammad Anas Naeemi Profile Picture
    436 on at

    I didn't changed much but instead of using addfirst(Header) I used addfirst(Totals). As "Totals" was the last dataitem of "Header" in Pro Forma Invoice layout so it worked for me. Just make sure that the last dataitem is placed inside addfirst(). 

    Thank you.

    pastedimage1672988602820v1.png

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 Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,713 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,032 Super User 2026 Season 1

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 914 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans