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

Reading an (RTF)Rich Text Format or MS-WORD file in Vb.NET

Hello,
I want to read (RTF) files in my VB.NET programme. How can i do it. I apply
the same method of reading text files, but it does not save the formatting of
text like (bold, italics, underline) etc.

So , how can i make programme which allows me to read (RTF) Rich Text Format
files or Microsoft WORD files in VB.NET through FILE HANDLING.

Plz help me
Nov 21 '05 #1
2 11626
Hi Eshban,

Dont know abt the Word Docuemnt .. but for the RTF is a plain text file with
the text in proper format.

In case you want to read the RTF as a file, u will have to Parse the RTF
text and then get the text as well as the formatting.
This can be tedious, the parsing. 'Cause you might have to know the rtf in
detail and these \f0 things can be hard to read.

One thing that you can do - if it fits ur scenario - is that you can take an
object of RichTextBox and set its RtfText property with the text you have
read from the file - some juggling for the header might be required here.
And then use the RTF controls other methods to do whatever you want to do
with the data.

Ask if there is something else.

HTH
rawCoder

"Eshban Bahadur" <Eshban Ba*****@discussions.microsoft.com> wrote in message
news:EC**********************************@microsof t.com...
Hello,
I want to read (RTF) files in my VB.NET programme. How can i do it. I apply the same method of reading text files, but it does not save the formatting of text like (bold, italics, underline) etc.

So , how can i make programme which allows me to read (RTF) Rich Text Format files or Microsoft WORD files in VB.NET through FILE HANDLING.

Plz help me

Nov 21 '05 #2
I don't think you can read Word files without making calls into MS-Word (COM
or VBA).

--
Jonathan Allen
"Eshban Bahadur" <Eshban Ba*****@discussions.microsoft.com> wrote in message
news:EC**********************************@microsof t.com...
Hello,
I want to read (RTF) files in my VB.NET programme. How can i do it. I apply the same method of reading text files, but it does not save the formatting of text like (bold, italics, underline) etc.

So , how can i make programme which allows me to read (RTF) Rich Text Format files or Microsoft WORD files in VB.NET through FILE HANDLING.

Plz help me

Nov 21 '05 #3

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

Similar topics

2
by: Trader | last post by:
Hi, I'm trying to use Mark Hammond's win32clipboard module to extract more complex data than just plain ASCII text from the Windows clipboard. For instance, when you select all the content on...
3
by: Alfredo Agosti | last post by:
Hi folks, I have an Access 2000 db with a memo field. Into the memo field I put text with bold attributes, URL etc etc What I need to to is converting the rich text contained into the memo...
1
by: Jim P. | last post by:
I have a rich text box that I want to 'insert' into my SQL2K db. But I'm not sure how to handle it. Do I convert it to XML first? Do I place the rich text box in an object then insert it as a...
1
by: ProDevel | last post by:
Hi, I'm desperately trying to figure out how to take rich-formatted text from a rich text box and store it in a memo field (or any other type of field!) in an Access database. Can anyone help??...
5
by: Lee | last post by:
Hi, I have a rich text box that can have hyperlinks ect within the text! when I save this data to file how should I do it? that is can I just save it as text? or do I need to serialize it...
16
by: anya | last post by:
Hey, I have a certain problem and till now I didnt find an answer on the web. I want to send an email message with picture in it. I dont want to put it as attachment but make it in the body of...
3
by: Peter Hale | last post by:
Hi all I'm doing a conversion and I need to convert an RTF field to TXT . ie the input field ( read from a SQL table ) using a DataReader is in RTF fomat - the output to another system...
16
by: Neil | last post by:
I posted a few days ago that it seems to me that the Access 2007 rich text feature does not support: a) full text justification; b) programmatic manipulation. I was hoping that someone might...
6
by: Pat.Rick | last post by:
Hi Freinds, I need a control / script to be able to give the user to edit a TEXT field online on browser for hyper text and rich text format, just like most of the email and contect editor allow...
1
by: Randy Shore | last post by:
I have run into a problem with the new rich text control in Access 2007. It seems that you can only choose from 6 preset font sizes when entering or editing text. The sizes are...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.