Recent

Author Topic: Unable to Open MS Word from program  (Read 6309 times)

AgriMensor

  • Jr. Member
  • **
  • Posts: 63
Re: Unable to Open MS Word from program
« Reply #45 on: September 22, 2022, 12:59:51 pm »
Oops! First line of code should have been TForm1, not TfrmMain.

Thaddy

  • Hero Member
  • *****
  • Posts: 18786
  • To Europe: simply sell USA bonds: dollar collapses
Re: Unable to Open MS Word from program
« Reply #46 on: September 22, 2022, 01:03:48 pm »
Note the use of the type library is
1. Much faster than Ole
2. Much easier to debug
If Europe sells their USA bonds the USD will collapse. Europe can affort that given average state debts. The USA can't affort that. Just an advice...

AgriMensor

  • Jr. Member
  • **
  • Posts: 63
Re: Unable to Open MS Word from program
« Reply #47 on: September 22, 2022, 01:08:45 pm »
Note the use of the type library is
1. Much faster than Ole
2. Much easier to debug

Yes, Thaddy, noted with thanks!

rvk

  • Hero Member
  • *****
  • Posts: 6953
Re: Unable to Open MS Word from program
« Reply #48 on: September 22, 2022, 01:11:44 pm »
Note the use of the type library is
1. Much faster than Ole
2. Much easier to debug
But that requires early binding, doesn't it?
You can't run the entire program without Word installed.
(No problem if this is the only code but might be a problem otherwise)


 

TinyPortal © 2005-2018