Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Answered

Copy Word layout from one report to another

(1) ShareShare
ReportReport
Posted on by 23
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 23 on at
    Copy Word layout from one report to another
    Thank you all!
  • Verified answer
    YUN ZHU Profile Picture
    YUN ZHU 74,148 Super User 2024 Season 2 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 24,961 Super User 2024 Season 2 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,495 Super User 2024 Season 2 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 3,962 Super User 2024 Season 2 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,431 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,503 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans