Prev: Link Failed
Next: MS-Word Pages in OLEObject
From: John Martens on 8 Dec 2009 01:54 In another post I asked for a RTF to HTML convertor. There's not many response so I think that noone has done (at least the basics) in VO. Another way to solve my problem is to have a HTML control instead of a RTF control on the window where text sould be entered. In this NG I found a post aboud a HTML contol by Willy Moore. Does anyone have a code example with Willy's control ? John
From: Geoff Schaller on 8 Dec 2009 02:39 John, There is a third way - harder in some respects, easier in others. You could build a small window in C# and expose it as a com object. Then you can call it from VO with about 15 lines of code. There is a ton of free code out there showing how to do this (the html/rtf bit) and you can easily call up this code from VO. The window would just be a C# window. The user needn't notice if you get your fonts and colours right. Firstly, this way is free. Secondly it gets you on your way to learning Dot Net and thirdly, it is quick. Most of samples you can find in Google work right out of the box, even if you know no C#. This is the easiest and best way to extend your VO applications. Once you've broken the ice with one project you won't stop. You will marvel at how easy it is to do in C# and how quickly you can add it to your VO app. Geoff "John Martens" <adsl672100(a)tiscali.nl> wrote in message news:4b1df829$0$28138$5fc3050(a)news.tiscali.nl: > In another post I asked for a RTF to HTML convertor. > There's not many response so I think that noone has done (at least the > basics) in VO. > > Another way to solve my problem is to have a HTML control instead of a > RTF control on the window where text sould be entered. > In this NG I found a post aboud a HTML contol by Willy Moore. > > Does anyone have a code example with Willy's control ? > > John
From: Willie Moore on 8 Dec 2009 05:36 John, I do not remember posting a HTML control. I would have to see the message context. I do remember using DHTML a long time ago but Microsoft stopped supporting the DHTML control. Regards, Willie "John Martens" <adsl672100(a)tiscali.nl> wrote in message news:4b1df829$0$28138$5fc3050(a)news.tiscali.nl... > In another post I asked for a RTF to HTML convertor. > There's not many response so I think that noone has done (at least the > basics) in VO. > > Another way to solve my problem is to have a HTML control instead of a RTF > control on the window where text sould be entered. > In this NG I found a post aboud a HTML contol by Willy Moore. > > Does anyone have a code example with Willy's control ? > > John > > __________ Information from ESET NOD32 Antivirus, version of virus > signature database 4669 (20091208) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.eset.com > > > __________ Information from ESET NOD32 Antivirus, version of virus signature database 4669 (20091208) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com
From: Sherlock on 8 Dec 2009 06:44 John Well maybe RTF to TXT antd TXT to HTML is very easy. Phil McGuinness --- FUNCTION RtfToText(oShell,cRtfText) LOCAL cPlain AS STRING LOCAL cRichedit AS RichEdit cRichedit := RichEdit{ oShell,-1, Point{0,0},Dimension{100,100}} cRichedit:Value := cRtfText cPlain := cRichedit:TextValue // RETURN cPlain
From: John Martens on 8 Dec 2009 11:57
Phil, Is there any markup left when using the oRtfTextValue ? John Sherlock schreef: > John > > Well maybe RTF to TXT antd TXT to HTML is very easy. > > Phil McGuinness > --- > > FUNCTION RtfToText(oShell,cRtfText) > > LOCAL cPlain AS STRING > LOCAL cRichedit AS RichEdit > > cRichedit := RichEdit{ oShell,-1, Point{0,0},Dimension{100,100}} > cRichedit:Value := cRtfText > cPlain := cRichedit:TextValue > // > RETURN cPlain |