Share via

Embedded Objects started to behave strange

Anonymous
2018-04-28T22:38:53+00:00

Hi,

I have to include snippets of code in word documents. To do so I always embed a word document with "Insert -> Object... -> Microsoft Word Object" and then copy my RTF into this document. This used to work great till about a month ago. Now when I insert objects they do not resize properly anymore and the object isn't placed properly between paragraphs. All the existing objects still look fine. This is really annoying for me, because I need to use this feature a lot.

I'm currently using MS Word for Mac version 16.12.

This is how it used to work (Object respects the dimensions of the page and is placed in paragraph):

This is how it looks now:

Now if I resize the object by using the resize handles the text is updated and is scaled fine but the Object is still too large and the paragraphs are messed up.

 

Thanks

Microsoft 365 and Office | Word | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Anonymous
    2018-04-29T09:12:31+00:00

    Apparently the layout always sets itself to Postcard/Landscape. This is why I think the object os to large. So I change it to A4/Portrait but when open the object again it resets itself to Postcard/Landscape.

    I tried putting my code directly into the Word document but that has other disadvantages.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2018-04-28T23:01:10+00:00

    Sorry, I don't know a fix for that object problem.

    When I include code in my documents I use a "screen print" paragraph style:

    . * Courier font, so that text lines up vertically (for tab indent formatting)

    . * light grey background, to simulate an old mainframe "green screen" background (yes, I'm that "young")

    . * a border line on the paragraph

    The end result is the my code lines up, appears to be in a simulated screen with a border around it and a background to distinguish it from other body text.

    In addition I created several character styles, based on the para style to apply text color for highlighting (like the green you use).

    So I would just copy the text from RTF, pasted it in to my document, then apply the required styles.

    It is a bit more work to start with, but allows me to make the code examples part of the document rather than existing as static objects..

    Was this answer helpful?

    0 comments No comments