Page 5 of 5

Re: MS-Word from PB with COM Interface

Posted: Tue Feb 04, 2025 10:10 pm
by Quin
mk-soft wrote: Tue Feb 04, 2025 9:31 pm I've also done a lot with COM Objects. For example, with OPC-DA.

But for little things with Word or Excel I do VB-Scripting. There are also many VBS examples for this.
To run VB-Script with PureBasic they wrote me these Module ActiveScript for VBScript and JScript
with the includes Modul_SmartTags.pb for Variant and VariantHelper.pb special for ActiveScript.

It is important if you have installed Office as x86, the PureBasic program must also be as x86.
VBScript is amazing software. It makes me incredibly sad that Microsoft has deprecated it. Thankfully we still have VB in .NET, but it's not the same.

Re: MS-Word from PB with COM Interface

Posted: Tue Feb 04, 2025 11:41 pm
by mk-soft
Not tried, but under Windows 11 there should still be VBS (VB-Scripting)

Re: MS-Word from PB with COM Interface

Posted: Wed Feb 05, 2025 5:39 am
by Quin
mk-soft wrote: Tue Feb 04, 2025 11:41 pm Not tried, but under Windows 11 there should still be VBS (VB-Scripting)
There is, but it'll be removed in 2027 for good.