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

save a text from rich text box

17
hellow
how can i do the following job
i am using rich text box 6.0
i write something in the rich text box
how can i save the file in disk as a text document
which can easily open by any text box editor
I use common dialog 6.0
Mar 18 '07 #1
6 7790
Killer42
8,435 Expert 8TB
how can i do the following job
i am using rich text box 6.0
i write something in the rich text box
how can i save the file in disk as a text document
which can easily open by any text box editor
I use common dialog 6.0
Check out the .SaveFile method on the RTB control. It allows you to specify file type.
Mar 19 '07 #2
anirban
17
Check out the .SaveFile method on the RTB control. It allows you to specify file type.
I use your suggestion but still the problem is not solved
I use the following command

Private Sub mnusave_Click()
cd.ShowSave
Form1.Caption = cd.FileName
rtb.SaveFile Form1.Caption
End Sub
Here rtb stand for rich text box & cd stands for common dialog

the following is save in file where I type just "this is a test page "

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl {\f0\fnil\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\f0\fs17 this is a test page
\par }
Mar 19 '07 #3
Killer42
8,435 Expert 8TB
You didn't put in the second parameter on the SaveFile.
Mar 19 '07 #4
ansumansahu
149 100+
hellow
how can i do the following job
i am using rich text box 6.0
i write something in the rich text box
how can i save the file in disk as a text document
which can easily open by any text box editor
I use common dialog 6.0
Hi ,

Do this

RichTextBox1.SaveFile "YourFileName", rtfText

thanks
ansuman
www.mindfiresolutions.com
Mar 19 '07 #5
debasisdas
8,127 Expert 4TB
thanx ansu for the advice
hope his problem is solved.
Mar 21 '07 #6
anirban
17
Hi ,

Do this

RichTextBox1.SaveFile "YourFileName", rtfText

thanks
ansuman
www.mindfiresolutions.com

the problem solved

Thanks
Mar 22 '07 #7

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

Similar topics

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...
3
by: Newbie | last post by:
I am trying to get the save/open dialog figured out. I am able open the save dialog but when I put in a file name (whatever.txt) and save the file does save with the name but it is blank. Below...
10
by: GJP | last post by:
Hello. Ive been asked to make my own notepade for college assignment. All ig going well, but i cant get the save to work. I can get Save a (shows dialog box), i can get it to just save too,...
2
by: AxOn | last post by:
How can I save the text from a rich text box that is generated as a new rich text box in a tab control? I want to be able to have several rich text boxes open, and save the one that is under the...
2
by: Kevin L | last post by:
I have a RTF control in my application. Is there a way to save formatted text from this control to SQL Server and retrieve it while preserving the format of the text? Thank you
1
by: tomi.trescak | last post by:
Hi I have a problem with storing rich text in MySQL. I store rich text in MySQL (in column with type "text") which i get from Rich Textbox control. When i do reverse processing by trying to...
2
by: csgraham74 | last post by:
Hi, I have a requirement in work that i give a person the ability to create a html document using a richt text editor. What i then want to do is save the HTML doct to my server & insert...
4
by: Neil | last post by:
Just found out that the Microsoft Rich Textbox does not support full text justification, since it's based on Version 1.0 of the RichEdit Window Class, and full text justification is only available...
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...
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:
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
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
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
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
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
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,...

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.