473,396 Members | 1,992 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.

How to create a RTF file?

BVM
Hi,

Do you know how to create a RTF file? Do I have to use a third party component?

Thanks,

Dennis Huang
Nov 16 '05 #1
5 16045
"BVM" <De*****@TBH.com.au> schrieb:
Do you know how to create a RTF file? Do I have to use a third party
component?


Untested: Place a hidden richtextbox control on the form and use its
'Selection*' properties to construct the document. This should work for
"simple" RTF documents.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 16 '05 #2
Hi Dennis,

Well, you could use a RichTextBox object and use its SaveFile method
specifying which RTF format you want.
On Wed, 24 Nov 2004 10:08:18 +1100, BVM <De*****@TBH.com.au> wrote:
Hi,

Do you know how to create a RTF file? Do I have to use a third party
component?

Thanks,

Dennis Huang

--
Happy Coding!
Morten Wennevik [C# MVP]
Nov 16 '05 #3
Hello,

There is the RichTextBox control that can be used in your application. I believe it is loaded in the Visual Studio Toolbox by default, you will need to scroll down a bit.

If this doesn't answer your question, please add more specifics on what you need.

Take care,

--
Tom Krueger

Smart Client DevCenter - http://msdn.microsoft.com/smartclient/
Mobile DevCenter - http://msdn.microsoft.com/mobility

This posting is provided "as is" with no warranties and confers no rights.

"BVM" <De*****@TBH.com.au> wrote in message news:Ov**************@TK2MSFTNGP14.phx.gbl...
Hi,

Do you know how to create a RTF file? Do I have to use a third party component?

Thanks,

Dennis Huang
Nov 16 '05 #4
BVM
Thanks, Morten, Tom & Herfried.

Can I attach files to the RTF files, like attachment in email?

Dennis

"Morten Wennevik" <Mo************@hotmail.com> wrote in message
news:opshxxtj1iklbvpo@pbn_computer...
Hi Dennis,

Well, you could use a RichTextBox object and use its SaveFile method
specifying which RTF format you want.
On Wed, 24 Nov 2004 10:08:18 +1100, BVM <De*****@TBH.com.au> wrote:
Hi,

Do you know how to create a RTF file? Do I have to use a third party
component?

Thanks,

Dennis Huang

--
Happy Coding!
Morten Wennevik [C# MVP]

Nov 16 '05 #5
>"BVM" <De*****@TBH.com.au> wrote in message
news:Ov**************@TK2MSFTNGP14.phx.gbl... Do you know how to create a RTF file? Do I have to use a third party
component?


An RTF file is plain text marked up with RTF tags. The specification is in
MSDN. So one way is to generate your own RTF and write it out.

Tim
..NET pros and cons
http://www.itwriting.com/phorum/list.php?f=6
Nov 16 '05 #6

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

Similar topics

4
by: Frank Millman | last post by:
Hi all I need to generate potentially large reports from a database, and I want to offer the option of print preview before actually printing (using wxPython). I figure that the best way to...
7
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I...
4
by: I_AM_DON_AND_YOU? | last post by:
There is one more problem I am facing but didn't get the solution. In my Setup Program I am not been able to create 2 things (when the program is intalled on the client machine ) : (1) create...
5
by: Michael Sperlle | last post by:
Is it possible? Bestcrypt can supposedly be set up on linux, but it seems to need changes to the kernel before it can be installed, and I have no intention of going through whatever hell that would...
8
by: barb | last post by:
So that the world at large benefits from our efforts, here is one fully documented way to use Windows Irfanview freeware to create thumbnail web galleries (http://www.irfanview.com). STEP 1:...
23
by: sandy | last post by:
I need (okay, I want) to make a dynamic array of my class 'Directory', within my class Directory (Can you already smell disaster?) Each Directory can have subdirectories so I thought to put these...
4
by: Vlad | last post by:
I am having problems using the file.create method within a function that is called when looping through an array of filepaths. If I call my function with a hardcoded file path --C:\Temp.txt the...
3
by: sanghavi | last post by:
how to create a set up project in vb.net..how to run an application on a different machine
3
by: brook | last post by:
hey all - i´m new to php and having trouble writing a simple code which should create a file. here is the most simplified version: <?php $content = "my content"; $path = "test.txt";...
15
by: lxyone | last post by:
Using a flat file containing table names, fields, values whats the best way of creating html pages? I want control over the html pages ie 1. layout 2. what data to show 3. what controls to...
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: 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
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:
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.