March 6, 200619 yr 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 March 6, 200619 yr by Guest
March 6, 200619 yr Author 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 March 6, 200619 yr by Guest
March 6, 200619 yr 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)
Create an account or sign in to comment