Click to See Complete Forum and Search --> : Word saving a text file
badgers
Jan 12th, 2000, 04:50 AM
I am using VB to save a RTF as a text file. The problem is that I loose the formating. We used to have a unix based word perfect program that could take a formated file and save it as a text file, inserting spaces and tabs were they were needed.
Can Word preserve the layout when saving a text file?
thank you for your time and have a good day
------------------
I am so skeptacle, I can hardly believe it!
Aaron Young
Jan 12th, 2000, 04:53 AM
When you save the Text in the RichTextBox use its SaveFile Method to save the File in RTF Format, ie.
Private Sub Command1_Click()
RichTextBox1.SaveFile "C:\Formatted.rtf", rtfRTF
End Sub
------------------
Aaron Young
Analyst Programmer
aarony@redwingsoftware.com
ajyoung@pressenter.com
badgers
Jan 12th, 2000, 05:33 AM
I didn't say this the right way.
I cant have a RTF. I need a txt file.
I am trying to take advantage of word's SaveAs command. there is a choice for text with formatting. The proble(bug) is that it doesn't do a good job of formatting.
Battery Back-Up Exit and Egress Lights
***The EC shall test all battery back-up exit and egress light
***fixtures as follows:
***1. Connect all battery back-up lights to power and allow
********batteries to charge for at least 12 hours.
gets saved by word as the following
Battery Back-Up Exit and Egress Lights
***The EC shall test all battery back-up exit and egress light
***fixtures as follows:
***1. Connect all battery back-up lights to power and allow
***batteries to charge for at least 12 hours.
it looses the imbedded indention. Is there a setting or something that I am missing. I assumed that when is said text file with formating it would keep the formatting.
thank you arron for your reply
------------------
I am so skeptacle, I can hardly believe it!
[This message has been edited by badgers (edited 01-12-2000).]
badgers
Jan 12th, 2000, 10:02 PM
:)
badgers
Jan 13th, 2000, 01:48 AM
I'm sinking!
is their a RTF to .txt conversion program on the net? I mean one that works better then the one in Word :)
badgers
Jan 13th, 2000, 05:26 AM
I will not give up!
there has to be a way to get a RTF into a text file that keeps the format!
KENNNY
Jan 13th, 2000, 05:32 AM
unfortunately, it looks like everyone else has :)
sorry, no idea m8
except figure it out yourself :)
hehe
------------------
cintel rules :p
www.cintelsoftware.co.uk
badgers
Jan 13th, 2000, 05:37 AM
OK I give up :)
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.