rruckus
01-25-2011, 01:07 PM
I built a macro-enabled Word 2007 template that uses a VBA form with this Treeview control on it: "Microsoft TreeView Control, version 5.0 (SP2)" from COMCTL32.ocx. Now I emailed my template to a bunch of other people to use but some of the people get errors saying that the control can't be loaded, while it works just fine for many other users.
So, I'm assuming that not all computers have comctl32.ocx and/or comctl32.dll. Is this correct? The users have all sorts of different machines from Windows XP to Windows 7 and will always have Office 2007 or Office 2010 but I can't rely on anything else being installed. What can I do?
1) Is there another treeview control (or similar control) that I can use that is available on all Windows machines? If not, how does Windows draw their own Folder panes? Can I use that control?
2) Can I install and register the comctl32 control somehow? If so, are there licensing issues? What if a user isn't a system admin, can I register for the current user only? Where do I register it? How?
3) Is there another solution? (No, I can't manually copy the ocx & dll and regsvr32 them because I dont know who will be downloading my template in advance)
So, I'm assuming that not all computers have comctl32.ocx and/or comctl32.dll. Is this correct? The users have all sorts of different machines from Windows XP to Windows 7 and will always have Office 2007 or Office 2010 but I can't rely on anything else being installed. What can I do?
1) Is there another treeview control (or similar control) that I can use that is available on all Windows machines? If not, how does Windows draw their own Folder panes? Can I use that control?
2) Can I install and register the comctl32 control somehow? If so, are there licensing issues? What if a user isn't a system admin, can I register for the current user only? Where do I register it? How?
3) Is there another solution? (No, I can't manually copy the ocx & dll and regsvr32 them because I dont know who will be downloading my template in advance)