Hi,
I have created one editor using UltraFormattedTextEditor control, now i want to save the value of this control into word document with all formats. Please suggest me any way for this, first of all is this possible? my code for saving into word file as below, it saves file but without any format.
....
objWordApp = new CCWordApp(); objWordApp.Open(); objWordApp.SetFontName("Arial"); objWordApp.SetFontSize(10); objWordApp.InsertText(UltraFormattedTextEditor.Value.ToString()); docFilePath = System.IO.Path.GetFullPath("."); objWordApp.SaveAs(docFilePath + "\\" + "Documnet1"+ "_" + DateTime.Now.ToShortDateString().Replace("/", "_") + ".doc"); objWordApp.Quit();
Please reply me as early as possible.
Thanks in Advance....
The text being returned by the UltraFormattedTextEditor is an HTML encoded string. My guess is that the CCWordApp class either doesn't know how to do formatting, or is expecting RTF rather than HTML. I haven't used this class before, so I don't know the particulars.
-Tony
Actually, UltraFormattedTextEditor uses our own customer XML format. It's not HTML or RTF. So MS Word is not going to recognize it.
Any plans to add suport for saving UltraFormattedTextEditor data in a user-friendly format? E.g. RTF or HTML?Failing that, clipboard support would be nice - I.e. method to render all the text to the clipboard so that it can be pasted into another app.
Hi Rich,
I really can't dicsuss future product plans. All I can say is that no such plans have been officially announced.
What you should do is submit your idea to Infragistics as a feature request. Request a Feature or Component
Hi Mike,
Please inform, if Infragistics provides some control(s) to create a MS word document. I require to create a formatted MS word document with a specified template programmatically.
ThanksVivek Bahl