NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: johanco123 on January 05, 2015, 05:21:38 AM

Title: XHtml to rtf?
Post by: johanco123 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
Title: Re: XHtml to rtf?
Post by: Bruce 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
Title: Re: XHtml to rtf?
Post by: johanco123 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
Title: Re: XHtml to rtf?
Post by: johanco123 on January 05, 2015, 05:43:36 AM
Hi Bruce

Can Capesoft OfficeInside convert a field from HTML to rtf ?

Regards
Johan
Title: Re: XHtml to rtf?
Post by: Bruce 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