Routines to create Word Documents

Routines to create Word Documents

Post by bob » Wed, 15 Jul 1998 04:00:00



Hello Everyone,

I want to be able to create Word Documents on demand from a C based
application.

I have done it with WordPerfect but would really like a set of routines
that
already understands the word file format.  Something simple like:

        OpenWordDoc( "test.doc" );
        BoldOn();
        TextOut( buffer );
        BoldOff();
        Indent();

Does anyone have any routines or have you heard of any routines for
doing this.

I would really prefer to not learn yet another file format so ANYTHING
would be
helpfull.

If you have any ideas how this could easily be done I would appreciate
hearing
from you.

Thank you for your time.

Bob

 
 
 

Routines to create Word Documents

Post by Dan A. Merc » Wed, 15 Jul 1998 04:00:00


: Hello Everyone,

: I want to be able to create Word Documents on demand from a C based
: application.

: I have done it with WordPerfect but would really like a set of routines
: that
: already understands the word file format.  Something simple like:

:       OpenWordDoc( "test.doc" );
:       BoldOn();
:       TextOut( buffer );
:       BoldOff();
:       Indent();

: Does anyone have any routines or have you heard of any routines for
: doing this.

: I would really prefer to not learn yet another file format so ANYTHING
: would be
: helpfull.

Words format is proprietary and changes constantly.  The MS preferred
method of converting documents is to use Rich Text Format as an
intermediary.  RTF is also proprietary,  but with a published
format  (course,  the* around with that format all the time as well).
The MS attitude appears to be - use Word exclusively and to hell with
everything else.

Course,  if you really need to get something into word format,
out Word Basic commands instead of Word format and build it
dynamically.  I once had to convert DCA/RFT documents to AsterX 2.1
(now Applix) format.  The existing convertor melted down,  particularly
on some of the nastier constructions.  DCA/RFT (an IBM format) used
a typewriter (Selectric,  natch) paradigm.  It had no concept of
paragraphing,  but did allow you to compose characters like the +/-
sign by scrolling up a half line,  entering the plus, scrolling down
a line,  entering the minus, then scrolling up a half line to enter
the rest of the expression.  Our documents,  written by engineers,
were full of this stuff.

I could have spent weeks figuring out the ASTERX format.  Instead,
I output ASTERX macros that easily did all the work.

: If you have any ideas how this could easily be done I would appreciate
: hearing
: from you.

: Thank you for your time.

: Bob

--
Dan Mercer

Opinions expressed herein are my own and may not represent those of my employer.

 
 
 

Routines to create Word Documents

Post by Joao Cardos » Fri, 17 Jul 1998 04:00:00


Try

http://www.csn.ul.ie/~caolan/docs/MSWordView.html

it's an M$Word (8) to html converter, it might help you.


> Hello Everyone,

> I want to be able to create Word Documents on demand from a C based
> application.

> I have done it with WordPerfect but would really like a set of routines
> that
> already understands the word file format.  Something simple like:

>         OpenWordDoc( "test.doc" );
>         BoldOn();
>         TextOut( buffer );
>         BoldOff();
>         Indent();

> Does anyone have any routines or have you heard of any routines for
> doing this.

> I would really prefer to not learn yet another file format so ANYTHING
> would be
> helpfull.

> If you have any ideas how this could easily be done I would appreciate
> hearing
> from you.

> Thank you for your time.

> Bob


--

INESC, R. Jose Falcao 110   |   tel:    + 351 2 2094322
4050 Porto, Portugal        |   fax:    + 351 2 2008487
 
 
 

Routines to create Word Documents

Post by Randy For » Fri, 17 Jul 1998 04:00:00



> > Hello Everyone,

> > I want to be able to create Word Documents on demand from a C based
> > application.

<snip>
> > Bob


Sorry that I didn't catch the first part of this thread: this may have
already been sugested.  How about creating RTF (rich text format)
instead.  M$ word reads this in well.

randy

 
 
 

Routines to create Word Documents

Post by i.. » Fri, 17 Jul 1998 04:00:00



> : Hello Everyone,

> : I want to be able to create Word Documents on demand from a C based
> : application.

> : I have done it with WordPerfect but would really like a set of routines
> : that
> : already understands the word file format.  Something simple like:

> :       OpenWordDoc( "test.doc" );
> :       BoldOn();
> :       TextOut( buffer );
> :       BoldOff();
> :       Indent();

> : Does anyone have any routines or have you heard of any routines for
> : doing this.

> : I would really prefer to not learn yet another file format so ANYTHING
> : would be
> : helpfull.

From the good old times (when i was programming in clipper) i recall a
routine
(c-coded) to build MS-Word compatible files (I thing it's creating
version 5.5 compatible files).
I do not know if i still have that stuff and i don't know if it's
copyrighted
is someway.
Check Clipper libraries for a best chance. I'll be checking my old
libraries (1988??).

Regards,

Koen Scholtus

 
 
 

1. Routines to create Word Documents

More like:
        OpenTextDoc("input.txt");
        GetTodaysMicrosoftStandard();
        InsertExtraGarbage(AMOUNT_OF_INPUT*100);
        ....

..

Another file format every time Microsoft releases a new version.

Bill
--

UUCP:              camco!bill   PO Box 820; 6641 E. Mercer Way
FAX:           (206) 232-9186   Mercer Island, WA 98040-0820; (206) 236-1676

2. autodetect network card

3. converting MIME application/ms-word to a word document...

4. SCSI controller for cdrw (Initio 4203U ?)

5. Word documents viewer?

6. Remote printing performance 3.1 --> 3.2

7. Need to edit Microsoft Word documents in Linux

8. Is the D-Link DFE 530TX 10\100 PCI NIC compatible with Linux?

9. Wanted: document converter MS-Word <-> FrameMaker

10. Conversion of TROFF/NROFF documents to MS Word for Windows

11. Apache 1.0, MIME types and Word documents

12. opening attached word documents in Navigator

13. MS Word Documents