Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

Can TMSFMXNativeNSRichTextView import from HTML

 Post Reply Post Reply
Michael Bierly View Drop Down
New Member
New Member

Joined: 06 May 2014
Posts: 12
Post Options Post Options   Quote Michael Bierly Quote  Post ReplyReply Direct Link To This Post Topic: Can TMSFMXNativeNSRichTextView import from HTML
    Posted: 05 Dec 2014 at 2:49pm
I'm considering purchasing the mCL controls. The make or break criteria is that after I create a document, apply styling (change fonts, change colors of some text, etc.) if I export the document to HTML can I later import that HTML document and have all of the formatting changes still be there?

I read the documentation and it's not clear to me whether the formatting changes are preserved from exporting and then importing only if the RTF format is used or whether they are preserved from other formats such as HTML as well.

Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support

Joined: 18 May 2010
Posts: 3463
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 08 Dec 2014 at 3:16am

Exporting and importing RTF/HTML should persist formatting.
You can always try the trial version first before purchasing. There is a rich text view demo included that you can use for testing purposes of exporting/importing RTF/HTML.

The following code should export to html:

TMSFMXNativeNSRichTextView1.ExportData(TPath.GetDocumentsPath + PathDelim + 'test.html', dtHTMLTextDocumentType);

and import from html:

TMSFMXNativeNSRichTextView1.ImportData(TPath.GetDocumentsPath + PathDelim + 'test.html', dtHTMLTextDocumentType);

Kind Regards, 
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down