How to use createdocumentfragment(.NET) function to add a document fragment containing namespace prefix?
-
textbox1 true 2.75in 1in <paddingleft>2pt</paddingleft> <paddingright>2pt</paddingright> <paddingtop>2pt</paddingtop> <paddingbottom>2pt</paddingbottom> 3 true 4.75in 1.125in tttttttttttttttttttttttttttttttttttttttttttt en-US 1in I have a xml document like this, when i tried to use createdocumentfragment() to add another textbox node textbox2 true 2.75in 1in <paddingleft>2pt</paddingleft> <paddingright>2pt</paddingright> <paddingtop>2pt</paddingtop> <paddingbottom>2pt</paddingbottom> 3 true 4.75in 1.125in ssssssssssssssssssssssssssssssssss since there is a , I get an error saying rd namespace not declared. Anyone has some idea about it? Thanks in advance! Ricky
-
textbox1 true 2.75in 1in <paddingleft>2pt</paddingleft> <paddingright>2pt</paddingright> <paddingtop>2pt</paddingtop> <paddingbottom>2pt</paddingbottom> 3 true 4.75in 1.125in tttttttttttttttttttttttttttttttttttttttttttt en-US 1in I have a xml document like this, when i tried to use createdocumentfragment() to add another textbox node textbox2 true 2.75in 1in <paddingleft>2pt</paddingleft> <paddingright>2pt</paddingright> <paddingtop>2pt</paddingtop> <paddingbottom>2pt</paddingbottom> 3 true 4.75in 1.125in ssssssssssssssssssssssssssssssssss since there is a , I get an error saying rd namespace not declared. Anyone has some idea about it? Thanks in advance! Ricky
As far as I know, you have to repeat the explicit declarations in the document fragment:
<textbox xmlns="http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition" name="textbox2">
<rd:defaultname xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">textbox2</rd:defaultname>
<visibility>
<hidden>true</hidden>
</visibility>
<top>2.75in</top>
<width>1in</width>
<style>
<paddingleft>2pt</paddingleft>
<paddingright>2pt</paddingright>
<paddingtop>2pt</paddingtop>
<paddingbottom>2pt</paddingbottom>
</style>
<zindex>3</zindex>
<cangrow>true</cangrow>
<left>4.75in</left>
<height>1.125in</height>
<value>ssssssssssssssssssssssssssssssssss</value>
</textbox>"We make a living by what we get, we make a life by what we give." --Winston Churchill
modified on Friday, January 30, 2009 3:03 PM