What about creating an .rtf file I don't see why an application must be available to create it's file. ie in foxpro you can create a .XLS .WK1 .TXT file and they don'd have to be available. I would assume you could create a .DOC etc file as well?
You can use Low Level File Functions: fcreate(),fopen(), fwrite() etc., or the SET TEXTMERGE command. You could write either RTF or HTML files which Word would be able to open.
There are example of HTML file creation (mostly for Excel, but it's the same idea) in the FAQ area.
Basicially, HTML and RTF files are both just text files with TAGs. As long as you know what the tages you want are, you can output them.
Hint: save a file formatted the way you want as an RTF/HTML file and then look at it in notepad or with a MODI COMM.
Your comment ....
>>>Hint: save a file formatted the way you want as an RTF/HTML file and then look at it in notepad or with a MODI COMM.
Attracted my attention because I tried that once with a standard Word Document ... thinking I was going to be able to create a word document in the manner your describe.
However, I found that not every formatting feature was dealt with using TAGS. There were formatting effects that were showing up in WORD for which I could find no tag. The conclusion was that there was a formatting MAP somewhere which was storing the formatting codes. This made it much more difficult (impossible I concluded) to deal with things.
Now, RTF might be different and I know that HTML is but just thought I would throw in my experience with this.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.