Connecting to users local Outlook

Discussion in 'Parallels Remote Application Server' started by KariP, May 14, 2016.

  1. KariP

    KariP Bit poster

    Messages:
    2
    Hi,
    our server is a Windows 2008R2 server, with no Microsoft Office tools installed. Each of the users do have their own version of Outlook installed. We have an application that uses OLE automation to connect to Outlook and open Outlooks "New email" window. On a local Windows pc (7,10) this works fine.
    When installing the application to the server and running it from the client using Parallels 2X client, there is an error message "Cannot create ActiveX component"). The code in questions is very simple - see VB.Net below

    Code:
       Dim Outl As Object
            Try
                Outl = CreateObject("Outlook.Application")
                If Outl IsNot Nothing Then
                    Dim omsg As Object
                    omsg = Outl.CreateItem(0) '=Outlook.OlItemType.olMailItem'
                    'set message properties here...'
                    omsg.subject = "Hello World test"
                    omsg.Display(True) 'will display message to user
                End If
            Catch ex As Exception
                System.Windows.Forms.MessageBox.Show(ex.Message)
            End Try
    We have checked the "redirect URL/EMAIL" both on the server and the client. The URL gets redirected ok, the browser opens inside users local pc.
    How could we get 2X to understand that we would like to open Outlook from the local client pc and not from the server?
    Thanks,
    kp

    ps. we are using the latest version of Parallels/2X, both RAS server and client
     
  2. Dinesh@Parallels

    Dinesh@Parallels Guest

    Messages:
    333
    Hello @KariP
    Did you try this solution? If it's not that case, please let us know.
     
  3. KariP

    KariP Bit poster

    Messages:
    2
    Hi,
    did at the time try the instructions in the link but without any success, so I did leave it with the hope that future Parallel versions would provide a solution.
    Tested this again with the latest RAS version 15 and it doesn't want to invoke the Microsoft Office tools installed on the users pc.
    Have written a small VB.NET program to test this - the idea is that the application would just open the word application. The vb.net code is here
    Dim oWord As Word.Application
    On Error GoTo err_handler
    oWord = CreateObject("Word.Application")
    oWord.Visible = True
    err_handler:
    MsgBox("The code failed at line " & Erl(), vbCritical)


    It imports "Imports word = Microsoft.Office.Interop.Word" and references the COM object "Microsoft.Office.Interop.Word"
    When run locally it works fine, when via Parallels client it returns error "Class not found". There is a screenshot in the attached pdf file.

    It would be great if Parallels could test this and perhaps write a small sample program to let us try out it.
    Thanks,
    kp
    Ps. Oddly enough, the URL redirect works, a link gets opened in the local browser.
     

    Attached Files:

    Last edited: Mar 5, 2017

Share This Page