Currently i am working on VSTO with C#.net. I am having a form where i am have one DropDownList and a RichTextBox.
When I select an item in the list, the xmldata(tags)from the database has to be shown in RichTextBox.
Here is the code snippet:
rtbReuseData.Rtf= xElement.Element(DropDown.Value).Value;
Now, when i am selecting an item from the DropDownList, it is showing an error "File format is Not valid". (When i take the .text instead of .rtf, it is showing some data but is not of
Please help me in getting this problem solved.
Thanks,
K.S.Reddi Prasad.

Karthikeyan AnbarasanRank #71 · 25.5K reputationPosted Apr 7, 2011, 12:34 AM EDT
VulpesRank #55 · 29.2K reputationPosted Apr 7, 2011, 12:40 AM EDT
rtbReuseData.Text = xElement.Element(DropDown.Value).ToString();
K S Reddi Prasad28 reputationPosted Apr 7, 2011, 1:24 AM EDT
K S Reddi Prasad28 reputationPosted Apr 7, 2011, 1:26 AM EDT