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...
Answered

Copy Word layout from one report to another

(1) ShareShare
ReportReport
Posted on by 51
Hi experts,
In Business Central cloud, our customer has a Word layout in report 1306.
Is it possible to copy this layout into a new Word file that can be used for report 1303?
Hope you can help.
Morten
  • Suggested answer
    Daan_de_Meijer Profile Picture
    Daan_de_Meijer 2 on at
    Copy Word layout from one report to another
    Hi,
     
    I have found a 'hackaround' in order to change the dataset of an existing word layout.
     
    Step 1: Make sure file extensions are not hidden in Windows Explorer. Go to your word layout document and rename the document.docx file to document.zip. Extract the .zip file. This will allow you to get inside the actual word file.

     
    Step 2: Open the folder called 'customXml'. Open the item1.xml file in a text editor and make sure the content is matching your new dataset. Update the report name and id in the first row. Open itemProps1.xml and update the reference as well (both name and id).
     
    Step 3: Open the 'word' folder and open the document.xml file in a text editor. Search for the 'old' report name and id. Find and replace all databindings from the old report name and id to the new ones.
     
    Step 4: Go back to the root level of the folder and select the folders and file. Send the selection to a zipped folder again.
     
    Step 5: Rename the new .zip folder to .docx again. Now you can edit your word layout again, or import directly into Business Central!
     

     
  • MS-07051042-0 Profile Picture
    MS-07051042-0 51 on at
    Copy Word layout from one report to another
    Thank you all!
  • Verified answer
    YUN ZHU Profile Picture
    YUN ZHU 77,855 Super User 2025 Season 1 on at
    Copy Word layout from one report to another
    As mentioned by several other experts, the answer is no.
    Because the Report Objects are different, it is not recommended to reuse layout files, which may cause runtime errors.
    You should modify the layout of 1303 according to the report of 1306
     
    Thanks.
    ZHU
  • Suggested answer
    Valentin Castravet Profile Picture
    Valentin Castravet 26,185 Super User 2025 Season 1 on at
    Copy Word layout from one report to another
    KasparsSemjonovs is correct,  you can't use it directly, but you can copy certain elements.
       
  • Suggested answer
    Yi Yong Profile Picture
    Yi Yong 1,857 Super User 2025 Season 1 on at
    Copy Word layout from one report to another
    Hello,
     
    It can be a yes or no answer.
     
    You can't add directly to 'Custom Report Layouts' and assign it immediately.
     
    You need to ensure all the report field name matches.
  • Suggested answer
    KasparsSemjonovs Profile Picture
    KasparsSemjonovs 4,057 Super User 2025 Season 1 on at
    Copy Word layout from one report to another
    You can copy the structure (the whole WORD file), but all the XML mapping fields have to be re-entered, otherwise it will give an error, because it contains reference to other report.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,468 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,287 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans