Solved

Calendar Control Deployment

Posted on 2004-03-22
6
894 Views
Last Modified: 2007-12-19
Hello experts.  I think this may be an easy one for you.  Currently I'm designing an application for deployment and I'm using the Office developer currently, but I'll start to use the Wise or InstallShield in the near future.  Lately I've ready with some consistancy that the ActiveX controls are very poor for deployment to other computers using the Run-time.  My question is actually three parts:
A) Can the Active X Calendar control (version 10 I think) be deployed with Access Runtime through the XP Off Dev software.  Currently, the package that I have works pretty well (Deployed) except this feature which is crashing the app when I click on my booking calendar (with the calendar control embedded).  If it can be fixed, what might I be doing wrong and how can I fix it?
B)  If this particular control just stinks with deployment, are there any better solutions/add-ins that can be included in my deployment that would be easier?  
C) Would the installshield/wise packaging wizard fix this problem or will it have the same issues?

Thanks for your help in advance!!
0
Comment
Question by:Marc333
  • 4
  • 2
6 Comments
 
LVL 13

Expert Comment

by:lucas911
ID: 10650510
Well i can help you on your first part.  In order to make the calendar control work you have to register the OCX or the DLL using the regsvr32 command.  The calendar control that i used in my app was crashing on some of the computers, once i registered the OCX it worked fine.

The command to register the OCX i used was:  (Win 2000)

regsvr32 c:\winnt\system32\mscal.ocx

Maybe you can get the install to register the MS Calendar control when you install your app.  Just provide the OCX file with your installation and get it to copy it to the system directory and register it.



0
 
LVL 3

Author Comment

by:Marc333
ID: 10651143
Lucas,
Let me confirm.  So you registered the mscal.ocx on your computer that created the deployment package.  After that, it included the necessary file/s when making the setup files?

0
 
LVL 3

Author Comment

by:Marc333
ID: 10651204
Lucas,
Also, I'm getting some error comments.  Mainly:
LoadLibrary("c:\Program") failed - The Specified module could not be found.  


Any suggestions? The actual location of the file is:
C:\Program Files\Microsoft Office\Office10\mscal.ocx
0
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 
LVL 13

Accepted Solution

by:
lucas911 earned 250 total points
ID: 10652757
I'm not sure about the deployment part.  But yeah it would make senese for the deployment package to automatically register an OCX when you install it, but don't quote me on that one.  

In order for it to work properly the OCX needs to be inside the WINNT\System32 folder, then you run regsvr32 to register the OCX with the line that i provided you earlier, open up your app make sure that the calendar function works, finally rebuild the package, and then install your package on a different computer to see if the calendar registers itself.

In Visual Basic, the deployment wizard lets you pick if you want to attach any additional files (for example MSCALC.OCX) to your package, then when i run my install program it takes care of the Active X component itself.

What i'm trying to say is that make sure that MSCAL.OCX is in your Winnt\System32 directory, register the OCX using regsver, repack your package, and test it out on a different computer.

Hope it all works out for you.
0
 
LVL 3

Author Comment

by:Marc333
ID: 10653644
Great, I'll check it tonight and let you know if I have any questions tomorrow morning.  
0
 
LVL 3

Author Comment

by:Marc333
ID: 10670367
Lucas,
I still haven't been able to test the Regsrv but I'd like to go ahead and distribute points anyways.  If I have any more questions, I'll let you know.  Thanks for your help.

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question