473,385 Members | 1,863 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,385 software developers and data experts.

[VB .NET] RTF to HTML

8
HI!

I need to pass a document rtf (ritchtextbox) to HTML... I found one or two functions but only works with (bold, italic , underline and size of letters).

I need keep format of text (center, left, ...) images, bullets, etc




PS: sorry ! My english is poor :(
Jul 16 '07 #1
5 2417
Killer42
8,435 Expert 8TB
I need to pass a document rtf (ritchtextbox) to HTML... I found one or two functions but only works with (bold, italic , underline and size of letters).

I need keep format of text (center, left, ...) images, bullets, etc
Perhaps you could load it into Word and save as HTML?
Jul 17 '07 #2
cash
8
i have one aplication made in asp. This aplication keeps a string (html of the document) in database.

Now i need do aplication in vb.net to work with that database too.

In vb.net how do i load RTF in word and then pass to html ???




thanks..


PS : sorry my english .
Jul 18 '07 #3
Killer42
8,435 Expert 8TB
One quick and simple method (though probably far from being the best) would be to save the string to a temporary file with the appropriate extension (.RTF if it's RTF format). Then open that file in Word, and use Save As... to save it as an HTML document.
Jul 19 '07 #4
cash
8
that is a solution but i need something like this...

link

this is in c#.

I´m trying to convert to vb.net and update if necessary ...



... if you have another solution, be free to post :-)


thanks for your help
Jul 19 '07 #5
Try this RTF to HTML .Net library and this code in VB.Net:

Expand|Select|Wrap|Line Numbers
  1.         Dim r As New SautinSoft.RtfToHtml()
  2.         Dim rtfFile As String = "E:\test.rtf"
  3.         Dim htmlFile As String = "E:\test.html"
  4.  
  5.         Dim i As Integer = r.ConvertFile(rtfFile, htmlFile)
  6.         If i = 0 Then
  7.             System.Console.WriteLine("Converted successfully!")
  8.             System.Diagnostics.Process.Start(htmlFile)
  9.         Else
  10.             System.Console.WriteLine("Converting Error!")
  11.         End If
Nov 25 '11 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

33
by: John Timbers | last post by:
I'd like to purchase Visual C# .Net for learning purposes only since it's a lot cheaper than Visual Studio (note that I'm a very experienced C++ developer). Can someone simply clarify the basic...
9
by: Conrad F | last post by:
Hi, If any Microsoft people are listening.... Are there any plans for the new web language called "Curl" to be supported in .NET (ASP.NET)? I ask as Curl represents the first step to true OO...
1
by: Hari | last post by:
What is the difference between HTML controls, HTML server controls , ASP.Net controls? Which will give more performance?
2
by: pieter.breed | last post by:
Hi All, The company I work for has traditionally used COM/ActiveX for the solutions that it provides. We are in the process of moving to .NET and a few applications have been written in VB.NET...
11
by: Brian W | last post by:
Yet another editor problem To reproduce do the following 1) Open a Webform and switch to HTML edit mode 2) Enter the Following (include spaces) This is some text before <asp:hyperlink...
12
by: Alex D. | last post by:
How can I stop asp.net from rendering XHTML istead of HTML? My javascripts are rendering wrong because of that. It is rendering &amp; to clients instead of &. Any help? Thanks, Alejandro.
0
by: shamirza | last post by:
· What is view state and use of it? The current property settings of an ASP.NET page and those of any ASP.NET server controls contained within the page. ASP.NET can detect when a form is requested...
5
by: althafexcel | last post by:
hi everyone Im trying to include an external js in my aspx page under the head tag, it doesn't load or it displays an object expected error whenver the function from the .js is called. Actually...
12
by: Juan T. Llibre | last post by:
re: !I found an MSDN document that explains why what I'm trying to do should work Lee, From : http://www.w3.org/TR/REC-xml/ "A special attribute named xml:lang may be inserted in...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.