Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

ActiveX - VB.NET not working once FM solution is stand-alone runtime


This topic is 6802 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted (edited)

Hi!

I have a filemaker script that uses VB.NET. It works just great while the file is .fp5, but it give me an error once the file is binded as a Stand-Alone Runtime... it says it "cannot create activex component"... Someone can help me???

I'm using FileMaker 6

Edited by Guest
Posted (edited)

Let's say I have this VB.NET code,


    Sub Main()

        Dim FMApp As FMPRO50Lib.Application

        Dim FMDocs As FMPRO50Lib.Documents

        Dim FMFile As FMPRO50Lib.Document



        Dim rgk As RegistryKey = Registry.LocalMachine.OpenSubKey("SOFTWARESoft 3DSigns PRO", True)



        Try

            FMApp = CreateObject("FMPRO.Application")

        Catch ex As Exception

            MsgBox(ex.ToString)



        End Try



        FMApp.Visible = True



        FMDocs = FMApp.Documents

        FMFile = FMDocs.Open(Application.StartupPath & "Soft 3D Signs 3.8.EXE", "")





        If rgk.GetValue("reg") <> 1 Then

            FMFile.DoFMScript("perform_registration_check")

        Else

            FMFile.DoFMScript("startSoft")

        End If



        FMDocs = Nothing

        FMFile = Nothing

        FMApp = Nothing

    End Sub

Is it possible to open the runtime version (EXE) or it only works when opening USR or FP5 file??

Edited by Guest
Posted

Like most "external" APIs in FileMaker, there is no ActiveX available in a runtime, only in the real version of FM.

As a side note, if you want to avoid the "createObject" call, check out the VB.NET sample project I have up on my website: www.connectingdata.com (downloads section)

  • 1 month later...

This topic is 6802 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.