MS-Word from PB with COM Interface

Share your advanced PureBasic knowledge/code with the community.
Quin
Addict
Addict
Posts: 1124
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Re: MS-Word from PB with COM Interface

Post 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.
User avatar
mk-soft
Always Here
Always Here
Posts: 6204
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: MS-Word from PB with COM Interface

Post by mk-soft »

Not tried, but under Windows 11 there should still be VBS (VB-Scripting)
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Quin
Addict
Addict
Posts: 1124
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Re: MS-Word from PB with COM Interface

Post 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.
Post Reply