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
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.
Thanks for confirmation, you can also put your solution here, so that it help others.
Thank you Steven for your help. My issue is resolved,
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.
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
Hi,
Have you added any report layout with .docx or RDLC?
Thanks.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,228 Super User 2024 Season 2
Martin Dráb 230,056 Most Valuable Professional
nmaenpaa 101,156