473,503 Members | 2,313 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

RTF to Word

Does anyone know a way to display RTF text in a word document?

I have RTF text from a dataset, and wish to display the text Formatted in a
Word document. The problem is that the format codes are displayed as well.

In VB6, my solution was to put the text in Clipboard and paste it. However,
this doesn't seem to work in VB .NET. Maybe I'm just overlooking a simple
solution, but I sure can't seem to find it.

Any help would be appreciated.
Jeff
Nov 20 '05 #1
3 2039
maybe there is an error in the RTF... Seems to me that a true RTF file will
display in Word reguardless... or are you just copying and pasting?

Does it display in the Richtextbox control? If you set selrtf?

"Jeff Haumesser" <ha*******@karpel.com> wrote in message
news:Oc**************@tk2msftngp13.phx.gbl...
Does anyone know a way to display RTF text in a word document?

I have RTF text from a dataset, and wish to display the text Formatted in a Word document. The problem is that the format codes are displayed as well.
In VB6, my solution was to put the text in Clipboard and paste it. However, this doesn't seem to work in VB .NET. Maybe I'm just overlooking a simple
solution, but I sure can't seem to find it.

Any help would be appreciated.
Jeff

Nov 20 '05 #2
I believe the codes are error free. This same text is displayed correctly
in a RichTextBox in another part of my application.
"SStory" <Th*******@TAKETHISSPAMBUSTEROUT.Softhome.net> wrote in message
news:ei**************@TK2MSFTNGP09.phx.gbl...
maybe there is an error in the RTF... Seems to me that a true RTF file will display in Word reguardless... or are you just copying and pasting?

Does it display in the Richtextbox control? If you set selrtf?

"Jeff Haumesser" <ha*******@karpel.com> wrote in message
news:Oc**************@tk2msftngp13.phx.gbl...
Does anyone know a way to display RTF text in a word document?

I have RTF text from a dataset, and wish to display the text Formatted in
a
Word document. The problem is that the format codes are displayed as

well.

In VB6, my solution was to put the text in Clipboard and paste it.

However,
this doesn't seem to work in VB .NET. Maybe I'm just overlooking a

simple solution, but I sure can't seem to find it.

Any help would be appreciated.
Jeff


Nov 20 '05 #3
How are you putting the text into word? Are you setting the
document.content?

The way I got rtf data from a dataset into word was to write it to a
temporary file, then use the InsertFile command on a range in word.

Hope that helps..

"Jeff Haumesser" <ha*******@karpel.com> wrote in message
news:%2******************@TK2MSFTNGP09.phx.gbl...
I believe the codes are error free. This same text is displayed correctly
in a RichTextBox in another part of my application.
"SStory" <Th*******@TAKETHISSPAMBUSTEROUT.Softhome.net> wrote in message
news:ei**************@TK2MSFTNGP09.phx.gbl...
maybe there is an error in the RTF... Seems to me that a true RTF file

will
display in Word reguardless... or are you just copying and pasting?

Does it display in the Richtextbox control? If you set selrtf?

"Jeff Haumesser" <ha*******@karpel.com> wrote in message
news:Oc**************@tk2msftngp13.phx.gbl...
Does anyone know a way to display RTF text in a word document?

I have RTF text from a dataset, and wish to display the text Formatted in
a
Word document. The problem is that the format codes are displayed as

well.

In VB6, my solution was to put the text in Clipboard and paste it.

However,
this doesn't seem to work in VB .NET. Maybe I'm just overlooking a

simple solution, but I sure can't seem to find it.

Any help would be appreciated.
Jeff



Nov 20 '05 #4

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

Similar topics

8
3486
by: Mike MacSween | last post by:
tblCourses one to many to tblEvents. A course may have an intro workshop (a type of event), a mid course workshop, a final exam. Or any combination. Or something different in the future. At...
3
6103
by: Yohancef Chin | last post by:
Hi, Being fairly new to .NET I am looking for a way to call MS Word from an event on a webform, and after the user is finished save that created document to an SQL Server database. Has anyone...
2
13481
by: Mikey | last post by:
Sample VB .NET source code to create mailing labels or customized letters using MS Word MailMerge This VB .NET source code will start MS Word and call methods and set properties in MS Word to...
7
6211
by: Dave | last post by:
Apologies for the newbie question. I have created a vb.net program for my company that is designed to work with Word Templates (about forty of them that we commonly use) that are selected by the...
4
12412
by: etuncer | last post by:
Hello All, I have Access 2003, and am trying to build a database for my small company. I want to be able to create a word document based on the data entered through a form. the real question is...
1
2991
by: beanie | last post by:
i am a c programming beginner and i am trying to Create a concordance of Word Count for a text File in c programming but my code isn't working.please can u help me out.here is my code: #include...
2
4935
by: beanie | last post by:
i am a beginer in c programming and i am trying to Create a Concordance of Word Count for a Text File but my code is not working.pls can anyone helpme out.here is my code: #include <stdio.h>...
0
1895
by: alivip | last post by:
I write code to get most frequent words in the file I won't to implement bigram probability by modifying the code to do the following: How can I get every Token (word) and ...
5
2524
by: alivip | last post by:
How can I get every Token (word) and PreviousToken(Previous word) From multube files and frequency of each two word my code is trying to get all single word and double word (every Token (word) and...
1
4354
by: dittytwo | last post by:
Hi there The below code works if you don't try to do anything to the word document which is great (Not :D) I am having problems with the context command both text (i.e initial document with no...
0
7070
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
7267
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7316
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...
1
6976
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
7449
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
5566
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,...
1
4993
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...
0
4666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
372
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.