How to remove space if XML node data is blank?

Stimulsoft Reports.NET discussion
Post Reply
amitkaushik
Posts: 74
Joined: Fri Dec 07, 2012 11:35 am

How to remove space if XML node data is blank?

Post by amitkaushik »

Hi,

I want to remove space or line if xml file contain node without any data.

like;

XML:

<A></A>
<B>test1</B>
<C>test2</C>

mrt:
{Con.A}
{Con.B}
{Con.C}

Output :
blank line
test1
test2

but required Output is: (without blank line)
test1
test2

regards.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: How to remove space if XML node data is blank?

Post by HighAley »

Hello.

Please, send us a report template with data for analysis.

Thank you.
amitkaushik
Posts: 74
Joined: Fri Dec 07, 2012 11:35 am

Re: How to remove space if XML node data is blank?

Post by amitkaushik »

Pls find the templates.

Thanks
template.rar
Pls find attached files
(2.39 KiB) Downloaded 186 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: How to remove space if XML node data is blank?

Post by HighAley »

Hello.

You should set the Can Shrink property for all Text Components to True and Shift Mode to Increasing Size, Decreasing Size.
Test.mrt
(7.9 KiB) Downloaded 535 times
Thank you.
amitkaushik
Posts: 74
Joined: Fri Dec 07, 2012 11:35 am

Re: How to remove space if XML node data is blank?

Post by amitkaushik »

Thank you Aleksey Andreyanov.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: How to remove space if XML node data is blank?

Post by HighAley »

Hello.

We are very glad to help you.
Let us know if you will need any additional help.

Thank you.
Post Reply