A
Andrus
I have rdl report in xml like below.
I need to wrap all label <Value> tag contents to =Res.IR method call.
For example
<Value>ProductId</Value>
should be replaced with
<Value>=Res.IR("ProductId")</Value>
Value tags which start with = character should not replaced.
How to process such xml ?
Andrus.
</Textbox>
<Textbox Name="Textbox8">
<Top>3.07cm</Top>
<Left>17.11cm</Left>
<Width>1.89cm</Width>
<Height>0.55cm</Height>
<CanShrink>true</CanShrink>
<ZIndex>200</ZIndex>
<Value>=test.GetRegnr()</Value>
<Style>
<FontFamily>Times New Roman</FontFamily>
<FontSize>12pt</FontSize>
<TextAlign>Right</TextAlign>
</Style>
</Textbox>
<Textbox Name="Label3">
<Top>3.09cm</Top>
<Left>15.58cm</Left>
<Height>0.53cm</Height>
<CanGrow>false</CanGrow>
<CanShrink>true</CanShrink>
<ZIndex>200</ZIndex>
<Value>ProductId</Value>
<Width>1.51cm</Width>
<Style>
<FontFamily>Times New Roman</FontFamily>
<FontSize>12pt</FontSize>
</Style>
</Textbox>
I need to wrap all label <Value> tag contents to =Res.IR method call.
For example
<Value>ProductId</Value>
should be replaced with
<Value>=Res.IR("ProductId")</Value>
Value tags which start with = character should not replaced.
How to process such xml ?
Andrus.
</Textbox>
<Textbox Name="Textbox8">
<Top>3.07cm</Top>
<Left>17.11cm</Left>
<Width>1.89cm</Width>
<Height>0.55cm</Height>
<CanShrink>true</CanShrink>
<ZIndex>200</ZIndex>
<Value>=test.GetRegnr()</Value>
<Style>
<FontFamily>Times New Roman</FontFamily>
<FontSize>12pt</FontSize>
<TextAlign>Right</TextAlign>
</Style>
</Textbox>
<Textbox Name="Label3">
<Top>3.09cm</Top>
<Left>15.58cm</Left>
<Height>0.53cm</Height>
<CanGrow>false</CanGrow>
<CanShrink>true</CanShrink>
<ZIndex>200</ZIndex>
<Value>ProductId</Value>
<Width>1.51cm</Width>
<Style>
<FontFamily>Times New Roman</FontFamily>
<FontSize>12pt</FontSize>
</Style>
</Textbox>