Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default How to distribute Control files (OCX) to users?

Hi,

In Visual Basic, if we include the controls such as
DataGrid in the project, the corresponding file (OCX file)
must be distributed to the enduser's computer in order to
make it work in other computers beside the developer's
computer. We create a setup package and run it on
enduser's computer for distribution.

(1) I would like to include a DataGrid in my Excel macro
program. Do I have to do the control file distribution for
the endusers also? If I have to do it, how?

(2) Can anyone tell me how to put data of an ADO recordset
into a DataGrid in Excel macro?

Thanks in advance.

Terence
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 68
Default How to distribute Control files (OCX) to users?

1 - You will almost certainly need to create a small distribution package.
Even if it just consists of a batch file which copies and registers the
relevant controls (REGSVR32). My memory is a bit vague on the datagrid
control that comes with VB. It was originally developed by a company called
Apex (they are still around and make great tools like this) for Microsoft
and bundled with VB. The reason I'm mentioning all this is because some of
the controls give licence not found errors when you try to use them in
Excel. The grid may be one of them.

Either way before going any further I'd check all this with a little pilot
deployment to a fresh PC which doesn't have the controls you require
already.

2 - The code will be virtually identical to how you would have done it in
VB. The control's properties and methods remain constant irrespective of
the container application.

I'd check that the datagrid components of VB (assuming this is what you're
using) will actually work correctly outwith the VB environment. The quick
answer is they should (as they are ActiveX's) but I did some work with this
years ago and have a nagging feeling there are some hidden issues.

Failing all this and budget/infrastructure allowing it look at the new
standalone version of the control I mentioned.


--
Regards,


Bill Lunney
www.billlunney.com

"Terence" wrote in message
...
Hi,

In Visual Basic, if we include the controls such as
DataGrid in the project, the corresponding file (OCX file)
must be distributed to the enduser's computer in order to
make it work in other computers beside the developer's
computer. We create a setup package and run it on
enduser's computer for distribution.

(1) I would like to include a DataGrid in my Excel macro
program. Do I have to do the control file distribution for
the endusers also? If I have to do it, how?

(2) Can anyone tell me how to put data of an ADO recordset
into a DataGrid in Excel macro?

Thanks in advance.

Terence



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I group multiple files with excel to export to other users? JeremyR.[_2_] Excel Discussion (Misc queries) 0 January 25th 10 09:02 PM
Unable to open .xls files saved by other users Vinod Excel Discussion (Misc queries) 1 November 12th 09 01:29 PM
Unable to open .xls saved files by other users. Vinod Excel Discussion (Misc queries) 0 November 11th 09 09:44 AM
Setting all users to save Excel 2007 files in 2003 format Owen K Excel Discussion (Misc queries) 0 August 16th 08 01:31 AM
Sending 2007 files to 2003 users--conditional formatting Bliss Excel Discussion (Misc queries) 2 June 28th 08 09:49 AM


All times are GMT +1. The time now is 05:35 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"