[MSWordUtils] Newline() inserts shift+enter, how to insert enter
mswordutils
Web icon
Forge component by Stuart Harris
Application Type
Traditional Web

Hi, loving this component, but I have an issue regarding the Newline() function. 

Newline() inserts into the word file key combination [shift + enter]. Is there any way to insert the value of the [enter] key into the word file?

The problem gets disturbing when using alignment 'justify'. With [shift + enter] the text in the line gets streched out. I added an screen snippet from word as an example.

picture from word.png

Solution

Hi Toomas,

Thank you for your question.

Could you maybe insert a separate paragraph for each line?  I know this means a bit more code to split the string by new lines then insert a paragraph each time.

I hope this helps.

Kind regards,

Stuart


Thanks, Stuart!

That helped.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.