How to remove space between line in word doc?

Hi All,

I unable to remove space between line.

Example:-

image

Expecting:-
image

Anyone help in this?

Hi @shuklarchana001 ,

To remove spaces, could you try reading the data and use this snippet of code?

image

System.Text.RegularExpressions.Regex.Replace(str_txtData,"(?<=\r?\n)\r?\n","")

RemoveUnwantedBlanks.xaml (5.2 KB)

Kind Regards,
Ashwin A.K

Use replace activity

Environment.Newline to make it as string.empty to replace the value.

Regards,
Arivu

I could be work.

But I am using list of print value one by one though for loop and print value in word file.

using vblf for new line but when it has space b/w two lines

Use Environment.NewLine

No, It returns same with space

Hi @shuklarchana001

Remove vblf in the append and try once.

Regards,
Arivu

Yes, I did that as well so it write data like:-

Additional Driver: CooperAdditional Driver: Tommie