1

I am new to TXTextControl. I am currently using TXTextControl 24 version.

I need to upload an image from local system (Client system) into the document.

I have written the JS for uploading the file through .

The JS makes a call to backend service which gets the file, Add it to a new RTF file and respond back to JS. The RTF file is then loaded to the Selection.Load of TextControl.

Code: add image to RTF

TXTextControl.ServerTextControl tx = new TXTextControl.ServerTextControl();
tx.Create();
tx.Images.Add(myImage, tx.InputPosition.Page, new Point(100, 100), TXTextControl.ImageInsertionMode.FixedOnPage);
string sHTML;
tx.Save(out sHTML, TXTextControl.StringStreamType.RichTextFormat);

The server responds back with with message "The Module for displaying image is obsolete. (01-0803)"

How can I add the Image into the TXTextControl Document ?

Pradeep K
  • 307
  • 6
  • 17

0 Answers0