Click here to Skip to main content
15,911,711 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionSynchronized controls logic Pin
Sonhospa11-Feb-12 0:41
Sonhospa11-Feb-12 0:41 
AnswerRe: Synchronized controls logic Pin
Luc Pattyn11-Feb-12 2:17
sitebuilderLuc Pattyn11-Feb-12 2:17 
QuestionRe: Synchronized controls logic Pin
Sonhospa11-Feb-12 15:18
Sonhospa11-Feb-12 15:18 
AnswerRe: Synchronized controls logic Pin
Luc Pattyn11-Feb-12 15:47
sitebuilderLuc Pattyn11-Feb-12 15:47 
QuestionRe: Synchronized controls logic Pin
Sonhospa11-Feb-12 23:36
Sonhospa11-Feb-12 23:36 
AnswerRe: Synchronized controls logic Pin
Luc Pattyn12-Feb-12 0:04
sitebuilderLuc Pattyn12-Feb-12 0:04 
GeneralRe: Synchronized controls logic Pin
Sonhospa12-Feb-12 1:35
Sonhospa12-Feb-12 1:35 
QuestionOLE Automation error 438 when registering a XLL using custom action Pin
tagad10-Feb-12 6:17
tagad10-Feb-12 6:17 
Hi,

I would like to register an XLL while installing a project using MSI.

I am using a VB.NET installer class to do this:

Imports System.ComponentModel
Imports System.Configuration.Install
Imports System.ArgumentException
Imports Microsoft.Office.Interop

Public Class Installer1

    Public Overrides Sub Install(ByVal stateSaver As System.Collections.IDictionary)
        MyBase.Install(stateSaver)

        Dim targetDir = Me.Context.Parameters.Item("targetdir")
        targetDir = targetDir.Substring(0, targetDir.Length - 1)
        MsgBox(targetDir)

        Dim myScript = targetDir + "MySuperAddin.xll"
        MsgBox(myScript)

        Dim objAddin As Object
        Dim objEXL As Excel.Application = DirectCast(CreateObject("Excel.Application"), Excel.Application)

        objEXL.Workbooks.Add()
        Try

            objAddin = objEXL.AddIns.Add(myScript, True)
            objAddin(myScript).Installed = True

        Catch ex As Exception
            MsgBox("cannot open addin. /n Error: " + ex.Message)
Err_Handler:
            MsgBox(Err.Description, vbCritical, "Error: " & Err.Number)
        End Try
        objAddin = Nothing
        objEXL.Quit()
        objEXL = Nothing
    End Sub
End Class



When I run this code as a VB script on my desktop I dont have any issue.

it is a very standard way to install an addin

please see the link
http://stackoverflow.com/questions/1130301/uninstalling-excel-add-in-using-vbscript[^]

However when I run it during the installation I get

Error: 438 Member not found. (Exception from HRESULTS: 0x80020003 (DISP_E_MEMBERNOTFOUND))


I tried to find a solution using the following links:
1) http://support.microsoft.com/kb/172108[^]

and

2) http://support.microsoft.com/kb/213489/[^]


but NO success. it is a clear problem with OLE Automation Object. I would really appreciate a suggestion. MANY THANKS!!
QuestionHow do I check programmatically if installed version of ACE OleDb is 64 or 32 bit version? Pin
Jörgen Andersson9-Feb-12 22:33
professionalJörgen Andersson9-Feb-12 22:33 
AnswerRe: How do I check programmatically if installed version of ACE OleDb is 64 or 32 bit version? Pin
Luc Pattyn9-Feb-12 23:36
sitebuilderLuc Pattyn9-Feb-12 23:36 
GeneralRe: How do I check programmatically if installed version of ACE OleDb is 64 or 32 bit version? Pin
Jörgen Andersson9-Feb-12 23:47
professionalJörgen Andersson9-Feb-12 23:47 
GeneralRe: How do I check programmatically if installed version of ACE OleDb is 64 or 32 bit version? Pin
Luc Pattyn9-Feb-12 23:59
sitebuilderLuc Pattyn9-Feb-12 23:59 
AnswerRe: How do I check programmatically if installed version of ACE OleDb is 64 or 32 bit version? Pin
Dave Kreskowiak10-Feb-12 2:11
mveDave Kreskowiak10-Feb-12 2:11 
GeneralRe: How do I check programmatically if installed version of ACE OleDb is 64 or 32 bit version? Pin
Jörgen Andersson10-Feb-12 3:05
professionalJörgen Andersson10-Feb-12 3:05 
GeneralRe: How do I check programmatically if installed version of ACE OleDb is 64 or 32 bit version? Pin
Dave Kreskowiak10-Feb-12 3:33
mveDave Kreskowiak10-Feb-12 3:33 
AnswerRe: How do I check programmatically if installed version of ACE OleDb is 64 or 32 bit version? Pin
yanghua9414-Feb-12 5:42
yanghua9414-Feb-12 5:42 
QuestionvsFlexgrid 8 ActiveX Pin
Jim Giles9-Feb-12 10:39
Jim Giles9-Feb-12 10:39 
QuestionWhat should i install ? Pin
alejx9-Feb-12 3:55
alejx9-Feb-12 3:55 
AnswerRe: What should i install ? Pin
Simon_Whale9-Feb-12 4:22
Simon_Whale9-Feb-12 4:22 
GeneralRe: What should i install ? Pin
alejx9-Feb-12 7:23
alejx9-Feb-12 7:23 
GeneralRe: What should i install ? Pin
Framework .l.9-Feb-12 14:18
Framework .l.9-Feb-12 14:18 
QuestionProblems with marshaling Pin
Florian Krätschmer8-Feb-12 23:42
Florian Krätschmer8-Feb-12 23:42 
QuestionA code in VB.NET. Pin
hansoctantan8-Feb-12 22:40
professionalhansoctantan8-Feb-12 22:40 
AnswerRe: A code in VB.NET. Pin
JR2129-Feb-12 1:40
JR2129-Feb-12 1:40 
AnswerRe: A code in VB.NET. Pin
Simon_Whale9-Feb-12 1:59
Simon_Whale9-Feb-12 1:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.