Changing value tags in xml string for report translation

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andrus

    Changing value tags in xml string for report translation

    I have rdl report in xml like below.
    I need to wrap all label <Valuetag contents to =Res.IR method call.

    For example
    <Value>ProductI d</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.55c m</Height>
    <CanShrink>true </CanShrink>
    <ZIndex>200</ZIndex>
    <Value>=test.Ge tRegnr()</Value>
    <Style>
    <FontFamily>Tim es New Roman</FontFamily>
    <FontSize>12p t</FontSize>
    <TextAlign>Righ t</TextAlign>
    </Style>
    </Textbox>
    <Textbox Name="Label3">
    <Top>3.09cm</Top>
    <Left>15.58cm </Left>
    <Height>0.53c m</Height>
    <CanGrow>fals e</CanGrow>
    <CanShrink>true </CanShrink>
    <ZIndex>200</ZIndex>
    <Value>ProductI d</Value>
    <Width>1.51cm </Width>
    <Style>
    <FontFamily>Tim es New Roman</FontFamily>
    <FontSize>12p t</FontSize>
    </Style>
    </Textbox>
  • mario@gemboxsoftware.com

    #2
    Re: Changing value tags in xml string for report translation

    Hi,

    Well you can do it by using XMLDocument and xpath to get all the nodes
    you want and then simply parse the string elements.

    Mario
    GemBox Software
    --
    GemBox.Spreadsh eet for .NET - Easily read and write Excel (XLS, XLSX
    or CSV)
    or export to HTML files from your .NET apps. See

    --

    Comment

    Working...