PDA

View Full Version : save file as xml


Unregistered
January 6, 2003, 20:21:56
Hello,

Can you help me, i don't know how to save files in xmlformat in using TextControl in .NET

Thanks,
Stéphane Arnoux


This message was originally posted by Stéphane Arnoux in the old TX Text Control Support Forum.

Björn Meyer
January 7, 2003, 19:45:15
Hello Stéphane

Please have a look at the shipped XML sample and the documentation.

http://www.textcontrol.com/tx/docs/html/dotnet/users_guide/n_xml_basics.htm

Björn Meyer, TX Text Control


This message was originally posted by Björn Meyer in the old TX Text Control Support Forum.

hafeez
September 4, 2003, 11:12:52
Hello Björn Meyer,

this link "http://www.textcontrol.com/tx/docs/..._xml_basics.htm" shows only how to open any xml document, please give any sample code which shows how to save as xml file also I am facing a error message in saving as xml file i.e

An unhandled exception of type 'System.Exception' occurred in txtextcontrol.dll

Additional information: Invalid property value.
(01-2503)

Could you please help

thanks
Abdul Hafeez

OscarTheRabbit
June 30, 2005, 16:03:45
Has anyone successfully saved anything from a TXTextControl in XML? I'm getting the same problem as described above;


private void button1_Click(object sender, System.EventArgs e)
{
string xmlData;
TXTextControl.SaveSettings saveSettings = new TXTextControl.SaveSettings();

this.textControl1.Save(out xmlData, TXTextControl.StringStreamType.XMLFormat, saveSettings);

// Do something with the xmlData....
}



The above code looks fine to me. It works OK if the output format is (e.g.) RTF, but if I set it to write XML I get "Additional information: Invalid property value. (01-2503)"

Any hints ?

Björn Meyer
June 30, 2005, 16:36:20
Hello

Did you previously load a valid XML document with an according DTD which is neccessary for TX Text Control to switch to the special XML edit mode?