save to doc?

BlitzMax Forums/BlitzMax Programming/save to doc?

ckob(Posted 2006) [#1]
can blitzmax save to a .doc file? I know its simple to create and write to one but can you write to a .doc and include images and formating?


Scott Shaver(Posted 2006) [#2]
It's just like writting any other file. You have to create the code to write the bytes into the file in the correct format for an MS-Word document. BMax doesn't know what type of file you are writing, you do. So the short answer is no, unless you know the format of a Word file.

EDIT: unless of course someone has written a module for this purpose.


xlsior(Posted 2006) [#3]
If you're considering writing your own .DOC exporter, you may want to look at the RTF specifications instead. It's the 'older' word format, supported by pretty much any word processor, and a *lot* easier to do than the newer document formats.

Check out http://www.wotsit.org for format descriptions for most file extensions imaginable.


Winni(Posted 2006) [#4]
And RTF has the advantage of being a real standard.