HOW TO: Get HTML into RTF and RTF into HTML

Find out how to get things done with Servoy. Post how YOU get things done with Servoy

HOW TO: Get HTML into RTF and RTF into HTML

Postby bcusick » Wed Nov 09, 2005 8:37 pm

If anyone is interested - I've written an example file that shows how to do HTML to RTF and RTF to HTML examples.

You can download at: http://www.servoy.com/downloads/downloads/free_example_solutions/example_convert_rtf_html.servoy

I've also attached it to this message for ease-of-use. :D

Hope it helps.
Attachments
rtf_capture.JPG
rtf_capture.JPG (53.37 KiB) Viewed 2702 times
example_convert_rtf_html.servoy
Example showing RTF to HTML and HTML to RTF
(18.43 KiB) Downloaded 226 times
Bob Cusick
bcusick
 
Posts: 1185
Joined: Wed Apr 23, 2003 11:27 pm
Location: Thousand Oaks, CA USA

Re: HOW TO: Get HTML into RTF and RTF into HTML

Postby jasantana » Thu Aug 04, 2011 9:26 pm

Hi Bob it is imposible to import this solution into Servoy6 beause of the repository version.

Could you please upload a new version?

Thanks.
Best regards,
Juan Antonio Santana Medina
[email protected]
EAGER BEAVER 2011
EAGER BEAVER 2012
Servoy 6.x - Servoy 7.x - Servoy 8.x - MySQL - PostgreSQL - Visual Foxpro 9
User avatar
jasantana
 
Posts: 540
Joined: Tue Aug 10, 2010 11:40 am
Location: Leeds - West Yorkshire - United Kingdom

Re: HOW TO: Get HTML into RTF and RTF into HTML

Postby ROCLASI » Fri Aug 05, 2011 5:33 am

Hi Juan,

You can import it into Servoy 3.5 (if you have that) and export it again. Version 6 (at least 5.2 does) can import Servoy 3.5 solutions.

Hope this helps.
Robert Ivens
ROCLASI Software Solutions / JBS Group, Partner
SAN Developer / Servoy Valued Professional / Servoy Certified Developer
Twitter: @roclasi / @servoyforge
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5205
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: HOW TO: Get HTML into RTF and RTF into HTML

Postby jasantana » Fri Aug 05, 2011 10:00 am

Thanks Robert but I don´t have it. I´m new to Servoy.
Best regards,
Juan Antonio Santana Medina
[email protected]
EAGER BEAVER 2011
EAGER BEAVER 2012
Servoy 6.x - Servoy 7.x - Servoy 8.x - MySQL - PostgreSQL - Visual Foxpro 9
User avatar
jasantana
 
Posts: 540
Joined: Tue Aug 10, 2010 11:40 am
Location: Leeds - West Yorkshire - United Kingdom

Re: HOW TO: Get HTML into RTF and RTF into HTML

Postby lvostinar » Fri Aug 05, 2011 11:59 am

jasantana wrote:Thanks Robert but I don´t have it. I´m new to Servoy.


You cannot import Servoy 2.2 solutions in Servoy 6.0 developer (not supported), but you can import the solution in admin page and then checkout in developer.
Laurian Vostinar
Servoy
lvostinar
 
Posts: 1047
Joined: Tue Feb 19, 2008 10:53 am

Re: HOW TO: Get HTML into RTF and RTF into HTML

Postby ROCLASI » Fri Aug 05, 2011 1:37 pm

Okay, I converted it into a Servoy 6 version. I also cleaned up the code (arguments vs params, JSDoc, etc) and removed the need for a table.
In other words it's new and shiny again :)

I didn't touched any of the logic so it should all work the way it did before.

Enjoy.
Attachments
example_convert_rtf_html_v6.servoy
Servoy 6 version of the solution
(9.61 KiB) Downloaded 136 times
Robert Ivens
ROCLASI Software Solutions / JBS Group, Partner
SAN Developer / Servoy Valued Professional / Servoy Certified Developer
Twitter: @roclasi / @servoyforge
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5205
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: HOW TO: Get HTML into RTF and RTF into HTML

Postby jasantana » Fri Aug 05, 2011 1:42 pm

Thanks Robert. Great job.
Best regards,
Juan Antonio Santana Medina
[email protected]
EAGER BEAVER 2011
EAGER BEAVER 2012
Servoy 6.x - Servoy 7.x - Servoy 8.x - MySQL - PostgreSQL - Visual Foxpro 9
User avatar
jasantana
 
Posts: 540
Joined: Tue Aug 10, 2010 11:40 am
Location: Leeds - West Yorkshire - United Kingdom

Re: HOW TO: Get HTML into RTF and RTF into HTML

Postby bobcusick » Mon Sep 12, 2011 3:41 pm

ROCLASI wrote:Okay, I converted it into a Servoy 6 version. I also cleaned up the code (arguments vs params, JSDoc, etc) and removed the need for a table.


THANKS Robert... I'm a slacker... :D
User avatar
bobcusick
 
Posts: 126
Joined: Mon Jan 12, 2009 9:13 pm

Re: HOW TO: Get HTML into RTF and RTF into HTML

Postby socorro » Thu Apr 09, 2015 12:15 pm

Hi Robert,

I imported your example.Thanks for sharing!

I have a question.

I would like to convert a html table in a RTF format.

Can you give some ideas please.

with regard,
Socorro Marquez
Servoy Developer
STB Automatisering & Advies BV
SAN Partner
socorro
 
Posts: 7
Joined: Fri Dec 14, 2007 6:38 pm

Re: HOW TO: Get HTML into RTF and RTF into HTML

Postby ROCLASI » Fri Apr 10, 2015 11:18 am

Hi Socorro,

The example is from Bob Cusick, I only converted it from a v2.2 solution to v6.x. and like I said in this thread I didn't touch the logic so I am not too familiar with it either.
Perhaps Bob (or any other rtf savvy developer) can give you some pointers.
Robert Ivens
ROCLASI Software Solutions / JBS Group, Partner
SAN Developer / Servoy Valued Professional / Servoy Certified Developer
Twitter: @roclasi / @servoyforge
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5205
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: HOW TO: Get HTML into RTF and RTF into HTML

Postby bcusick » Tue May 12, 2015 10:29 pm

This is really, really old... :)

You can google HTML to RTF - here's one of the resources I found...

Hope this helps...

http://sourceforge.net/projects/bzhtmlcss2rtf/
Bob Cusick
bcusick
 
Posts: 1185
Joined: Wed Apr 23, 2003 11:27 pm
Location: Thousand Oaks, CA USA


Return to How To

Who is online

Users browsing this forum: No registered users and 1 guest