473,396 Members | 2,029 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Code to Convert From Text To HTML

Hi EveryBody:

I got this code from one newsgroup in google, the one who post this code
claim that this code convert Text to HTML , if that is right can Any body
help me and expline for me how can I use this code in VB.Net ?

The Code :

With ALLText

' Specify RTF formatted Text string
..FText = RTFString

' Convert to HTML
..SelStart = 0
..SelLength = . TextLength
..Rtf2Html 31
..selFType = -31
HTMLString = .FText

' Convert back to RTF
..SelFType = 63
RTFString = .FText

' Get the Raw Text
RawTextString = .Text

End With

Any help will be appreciated

Regard's

Husam

Jan 23 '06 #1
1 2003
This code is incomplete and I'm not sure it does what you want it to. It
appears to be an RTF (Rich text Format) to HTML converter. But all the
important parts are missing.

--
----
700cb Development, Inc.
http://www.700cb.net
..NET utilities, developer tools,
and enterprise solutions

"=?Utf-8?B?SHVzYW0=?=" <Hu***@discussions.microsoft.com> wrote in
news:79**********************************@microsof t.com:
Hi EveryBody:

I got this code from one newsgroup in google, the one who post this
code claim that this code convert Text to HTML , if that is right can
Any body help me and expline for me how can I use this code in VB.Net
?

The Code :

With ALLText

' Specify RTF formatted Text string
.FText = RTFString

' Convert to HTML
.SelStart = 0
.SelLength = . TextLength
.Rtf2Html 31
.selFType = -31
HTMLString = .FText

' Convert back to RTF
.SelFType = 63
RTFString = .FText

' Get the Raw Text
RawTextString = .Text

End With

Any help will be appreciated

Regard's

Husam


Mar 13 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Martin Ernst | last post by:
Hello. I want to show HTML source code in my browser (for debugging purposes). Which tag/formatting di i have to use to tell the browser not to render the code but display it as pure text? ...
3
by: hunterb | last post by:
I have a file which has no BOM and contains mostly single byte chars. There are numerous double byte chars (Japanese) which appear throughout. I need to take the resulting Unicode and store it in a...
2
by: name | last post by:
The piece of code is for a Web Form Page. Who can tell me why? Thanks a lot! ------------------------------------------------ VB.Net Code: Protected Overrides Sub AddParsedSubObject(ByVal obj As...
4
by: Larry Grady | last post by:
Anyone up for a challenge? I've been struggling with this for a few days and was hoping someone could help me. Pouring through all the messageboards I just can't find the solution. We have a...
1
by: jimb | last post by:
I can get the dropdownlist into the datagrid, and I can populate it, but I can't read it. Anybody have a working example of a dropdownlist in an editable grid? Thanks. -- .....
1
by: Husam | last post by:
Hi EveryBody: I have this code which convert RTF Text to HTML ? but I think it is written by vb.classic, I want some body help my in writting this code by Vb.Net ? but if it is already writen by...
0
by: Husam | last post by:
Hi EveryBody: I got this code from one newsgroup in google, the one who post this code claim that this code convert Text to HTML , if that is right can Any body help me and expline for me how...
135
by: Xah Lee | last post by:
Tabs versus Spaces in Source Code Xah Lee, 2006-05-13 In coding a computer program, there's often the choices of tabs or spaces for code indentation. There is a large amount of confusion about...
2
by: tepaul | last post by:
I am new to the DOM, but i try to figure out this simple tutorial on the book, and make it extractly the same as it is written. but when I run the program it okay, but when I click on the covert...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.