Hi all
How do you create a word document, and add text with like word-features (Bold, size, font, Paragraphs etc...) ?
Is it also possible for Mac?
Thanks
Create word document
- Arctic Fox
- Enthusiast

- Posts: 609
- Joined: Sun Dec 21, 2008 5:02 pm
- Location: Aarhus, Denmark
Re: Create word document
For Windows you will probably use a COM application like COMate, but Word needs to be present on the computer.
There are some good examples in the COMate package on how to communicate with Word.
I do not know how to do this on MacOS, though.
There are some good examples in the COMate package on how to communicate with Word.
I do not know how to do this on MacOS, though.
Re: Create word document
With great difficulty 
You would find it far easier to generate an RTF file instead, as it's just text based (and very much cross platform). For example:
You would find it far easier to generate an RTF file instead, as it's just text based (and very much cross platform). For example:
Code: Select all
OpenFile(0, "test.rtf")
WriteStringN(0, "{\rtf1")
WriteStringN(0, "{\fonttbl")
WriteStringN(0, "{\f0 Arial;}")
WriteStringN(0, "{\f1 Times New Roman;}")
WriteStringN(0, "}")
WriteStringN(0, "\f0\fs60 PureBasic Unleashed\par")
WriteStringN(0, "\f1\fs20 Feel the {\b Pure...} Power!\par")
WriteStringN(0, "}")
CloseFile(0)- Rook Zimbabwe
- Addict

- Posts: 4322
- Joined: Tue Jan 02, 2007 8:16 pm
- Location: Cypress TX
- Contact:
Re: Create word document
Also PurePDF!
Re: Create word document
Ok. Thanks for all your supplies. Really helpful and fast 

