Author Topic: Write file DOC with MSWORD.OLB without WORD.application installed.  (Read 478 times)

0 Members and 1 Guest are viewing this topic.

FELIX

  • Bull Frog
  • Posts: 244
I need to write a DOC file using only the MSWORD.OLB library file without WORD.application, without MSWord being installed.

I think there's an example here on this forum but I can't find it because it's been a long time since I saw it and I didn't need it at the time.
OK.

kdub_nz

  • Mesozoic keyThumper
  • SuperMod
  • Water Moccasin
  • Posts: 2149
  • class keyThumper<T>:ILazy<T>
Re: Write file DOC with MSWORD.OLB without WORD.application installed.
« Reply #1 on: January 14, 2024, 09:59:56 PM »
Hi Felix,

There are 4 references to 'MSWORD.OLB'

Select 'TheSwamp' main page

Enter MSWORD.OLB into Search

Follow the breadcrumbs.

Regards,
Called Kerry in my other life
Retired; but they dragged me back in !

I live at UTC + 13.00

---
some people complain about loading the dishwasher.
Sometimes the question is more important than the answer.

FELIX

  • Bull Frog
  • Posts: 244
Re: Write file DOC with MSWORD.OLB without WORD.application installed.
« Reply #2 on: January 14, 2024, 10:23:54 PM »
Thank you kdub_nz for sending it but I had already researched this and they all use "(setq msw (vlax-get-or-create-object "Word.Application"))" which means that MSWord must be installed.
OK.

Lee Mac

  • Seagull
  • Posts: 12924
  • London, England
Re: Write file DOC with MSWORD.OLB without WORD.application installed.
« Reply #3 on: January 15, 2024, 08:13:45 AM »
Word docs are just zipped XML, so you could write the XML as plain text and then zip it programmatically.

FELIX

  • Bull Frog
  • Posts: 244
Re: Write file DOC with MSWORD.OLB without WORD.application installed.
« Reply #4 on: January 15, 2024, 09:10:08 AM »
XML are .DOCX files but I need it to be .DOC
OK.

BIGAL

  • Swamp Rat
  • Posts: 1429
  • 40 + years of using Autocad
Re: Write file DOC with MSWORD.OLB without WORD.application installed.
« Reply #5 on: January 15, 2024, 09:18:03 PM »
Handy hint Lee same with Acad CUIX.

Can they not read the docx ? Docx was introduced in 2007 that is a lot of years ago.

Lots of free stuff out there if you trust to convert docx to doc. Do a google.

A man who never made a mistake never made anything