[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 295
  • Last Modified:

Saving a .txt file as .rtf ...

Guys,

For reasons I won't bore you with, my little VB app needs to create 3 versions of a compiled 'string' based file

1. a .txt version
2. a HTML version
3. a .rtf version

No problems with 1 & 2 ... but the .rtf version is causing me a problem.

I'm compiling my string-based document and saving it using FSO ... cheekily just changing the extension ... but the .rft 'knows' it is not true .rft ... that is having a knock-on effect for what I am actually using this for (pre-designing Autosigs. in Outlook, if you are interested)

Anyone know how I can save a .txt file as 'real' .rft ??

Thanks,

S.S.
0
SpencerSteel
Asked:
SpencerSteel
  • 2
1 Solution
 
rettiseertCommented:
One option is setting a hidden rich text box in your form, copying your text there and then call richtextbox1.SaveFile "filename.rtf",0
0
 
SpencerSteelAuthor Commented:
This sounds wicked - but I actually wasn't being totally truthful in that I'm using an Access/VBA application and SaveFile isn't available ... am looking for alternatives !

:(

S.S.
0
 
SpencerSteelAuthor Commented:
I'm going to move this to Access Q's ... sorry !

0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now