NetTalk Central

Author Topic: XHtml to rtf?  (Read 3904 times)

johanco123

  • Full Member
  • ***
  • Posts: 245
    • View Profile
    • Email
XHtml to rtf?
« on: January 05, 2015, 05:21:38 AM »
Hi Bruce.

I have standard letters that is save with the rtf controls in a field using a MSSQl database.

I getting the rtf field displayed correctly in a web form by using
SL:paragraph  = p_web.HtmlToXhtml(SL:paragraph)
using TinyMCE and 'Allow xHTML' tiched on.

I want to do now some changes in the web to the field. My problem is how can I save now the record back as a rtf control. The same letters is mainly used in a Windows apps. If i open the record now in the windows apps it display the html controls.

Is there a producer similar as  p_web.HtmlToXhtml to save it back to rtf?

Kind regards
Johan

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: XHtml to rtf?
« Reply #1 on: January 05, 2015, 05:28:59 AM »
There are no RTF related functions in NetTalk which convert from Ftp, or To RTF.

>> SL:paragraph  = p_web.HtmlToXhtml(SL:paragraph)

This does no RTF management. If this is displaying correctly then I suspect it's because TinyMCE is doing it for you.

cheers
Bruce

johanco123

  • Full Member
  • ***
  • Posts: 245
    • View Profile
    • Email
Re: XHtml to rtf?
« Reply #2 on: January 05, 2015, 05:36:30 AM »
Tanks Bruce

My problem is I must save it in the web back to a rtf control so that it works correctly in the windows apps.

Regards
Johan

johanco123

  • Full Member
  • ***
  • Posts: 245
    • View Profile
    • Email
Re: XHtml to rtf?
« Reply #3 on: January 05, 2015, 05:43:36 AM »
Hi Bruce

Can Capesoft OfficeInside convert a field from HTML to rtf ?

Regards
Johan

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: XHtml to rtf?
« Reply #4 on: January 05, 2015, 09:20:11 PM »
>> My problem is I must save it in the web back to a rtf control so that it works correctly in the windows apps.

Google around for DLL's that have RTF/HTML translation capability.

>> Can Capesoft OfficeInside convert a field from HTML to rtf ?

no, I don't think so.

cheers
Bruce