I can not get labels to print on a Windows 7 64 bit machine. The program works on windows 7 32 bit. The error is Can not Create OLE Objects

Public Class ArmsInput
    
    Dim strAssemblyCode As String
    Dim strLineID As String
    Dim strLabelPrinter As String
    
    Public strConnection As String = "DSN=ActiveM_Production_Sub;"
    Public ProdRates As New ArrayList()
    Public DymoAddIn As Object
    Public DymoLabels As Object
    Public i As Integer
    Public Function CreateOLEObjects() As Object
        On Error Resume Next
        DymoAddIn = CreateObject("DYMO.DymoAddIn")
        DymoLabels = CreateObject("DYMO.DymoLabels")

        'If sucessful
        If (DymoAddIn Is Nothing) Then
            MsgBox("Unable to create OLE Objects")
        End If
    End Function

I would guess that the plugin/dll is not available as 64bit version. Have you tried to develop you application for x86 only?

I would guess that the plugin/dll is not available as 64bit version. Have you tried to develop you application for x86 only?

Dymo Support says the sdk is 64bit compatible.

If so, do you have the 64bit version of that dll on your 64bit machine? Are those registered on the machine? Is your project set up for "Any CPU"?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.