How can I save text from a rich text box using the Common Dialog control?
Thanks :)
Steve
Printable View
How can I save text from a rich text box using the Common Dialog control?
Thanks :)
Steve
It isnt the Common Dialog that saves the text, it is just a way of obtaining a filename.
once the user has closed the commondialog, you need to make the app OPEN the Filename FOR OUTPUT...
and that should do the trick!Code:dim MyFile as byte
MyFile = freefile
Open commondialog.filename for output as #Myfile
print #Myfile, RichText1.text
close #MyFile
------------------
Wossname,
Email me: [email protected] :)
I get an error on this line:
Open CommonDialog1.FileName For Output As #MyFile
it says "Path\File Access Error"
Steve