Solved

Calendar Control Deployment

Posted on 2004-03-22
6
887 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

809 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