473,396 Members | 1,938 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Deploying VB CAB in VisualStudio 2005/8

1
I'm trying to write a mail merge tool that will be activated and downloaded from a web page through an activeX control. It should consume data from a webservice (passed through javascript into the control) and create a Word mail merge file.

I think I have a handle on the code, as I've found good examples on this forum and others about how to perform this type of action, but most of the examples have been in VB6, and I only have VS 200x, which is VB.net. I've been fighting with the IDE for the past week trying to get it to build a working CAB. I'm running XP SP3 and have tried Visual Studio 2005 and 2008. I'd do it in VB6 if I could find an IDE!

Here are the steps I'm taking:
1. Create new VB class library project.
2. Create a public method in the default Class1.vb called doIt() with no content
3. Create a new project of type CAB package
4. Add the output of the VB class lib project to the cab project.
5. Build the VB project
6. Build the CAB project
7. Create a test HTML page with:
- an OBJECT tag, referencing the GUID found in the Assembly Information section of the VB project
- the cab name for codebase
- a button that calls a javascript method that calls the objectId.doIt()
8. drop the html file and the cab file in the same directory in the docroot of apache
9. Load the webpage and click 'install' on the security warning popup
10. Click the button

I always get an error that the object does not support this property or method. I've also tried Object.Class1.doIt(), to no avail.

I know there's got to be something simple that I'm missing here. The docs seem to suggest that it should be just this simple to deploy an app. For some reason the ClickOnce tool is not available for class libraries. I don't want to create a windows app because I want this to be completely behind the scenes for the user (they should just see the Word doc).

Any help would be most appreciated!

Expand|Select|Wrap|Line Numbers
  1. <HTML>
  2. <HEAD>
  3.    <OBJECT ID="AutoWord"
  4.     CLASSID="CLSID:7c2f1063-2d81-4380-994e-54260deacdf1"
  5.     CODEBASE="Cab1.CAB#version=1,0,0,0">
  6.    </OBJECT>
  7.    <SCRIPT language="Javascript">
  8.       function handleClick(){
  9.          AutoWord.doIt();
  10.       }
  11.    </SCRIPT>
  12. </HEAD>
  13. <BODY>
  14.    <a href="#" onclick="handleClick();">click here</a>
  15. </BODY>
  16. </HTML>
Oct 25 '08 #1
0 1407

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: Bryan Dickerson | last post by:
I fairly have my Web Service working the way that I want, so my next step will be to deploy it on a server. Do I just add a deployment/install project, build it and install it on the server? ...
0
by: maflatoun | last post by:
Hi, I have created a pages using only DIV tags instead of layers. It looks fine when editing it in DreamWeaver but in VisualStudio it's messed up. So in the design view you can't really tell...
1
by: maflatoun | last post by:
Hi, I have created a pages using only DIV tags instead of layers. It looks fine when editing it in DreamWeaver but in VisualStudio it's messed up. So in the design view you can't really tell...
1
by: Donovan Kolbly | last post by:
Hi folks, I was trying to build Python using MS VisualStudio 2005 (VC++ 8.0) according to the instructions in PCBuild8/ and got a link error in config.obj referencing _init_types. I (barely)...
6
by: Ryan | last post by:
Is there any way to save a VB 2005 created application as an .MSI install file? The only method I see is to publish as a .EXE. Curious because I want to push out an application with Group Policy....
4
by: ganeshp | last post by:
Hi, Is MicrosoftVisualStudio 2005 different from Microsoft VisualStudio .NET ? I have "MicrosoftVisualStudio 2005" installed , does it mean that i have "Microsoft VisualStudio .NET" also ...
1
by: wizmagister | last post by:
Hi everyone, I've just installed VisualStudio 2008 on my dev PC. I use this PC to compile a program that uses MapPointControl.ocx. I've compile a new version of my program using VS 2005 after...
3
by: =?Utf-8?B?eWtmZmM=?= | last post by:
I try deploying a very simple (very simple indeed) Vb.net application by following the basic steps according to some tutorials. My pc runs Visual Studio 2005 and it reports "Build successful"...
1
by: mazdotnet | last post by:
Hi guys, On my work computer I had VisualStudio 2005, AJAX 1.0 and AJAX toolkit installed. 2 days ago I installed VisualStudio 2008 and every AJAX test that I do (IIS), does a postback. When I...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.