Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
20
UltraFormattedTextEditor: Save UltraFormattedTextEditor's Value in word Document with formate
posted

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....