Solved

Saving a .txt file as .rtf ...

Posted on 2006-06-20
3
268 Views
Last Modified: 2010-04-30
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
Comment
Question by:SpencerSteel
  • 2
3 Comments
 
LVL 13

Accepted Solution

by:
rettiseert earned 500 total points
ID: 16943805
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
 

Author Comment

by:SpencerSteel
ID: 16943842
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
 

Author Comment

by:SpencerSteel
ID: 16944093
I'm going to move this to Access Q's ... sorry !

0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question