I was able to start Logos 7 with layout (like Sermon Layout) from a command lines, from within a Word Macro, which does not work with Logos 8. I have tried several things, but without any success. Anybody have a clue how this can be done?
GeorgeT
'Syntax: OpenLayout([LayoutName])'Test this code from the VBA Immediate window with the following line of code:'OpenLayout()'...or...'OpenLayout("Sermon Layout")Sub OpenLayout(Optional pLayoutName As String = "Sermon Layout")'I use latebinding for illustration purposesDim Logos As ObjectDim Launcher As ObjectOn Error Resume Next'Try to get the running instance of logos firstSet Logos = GetObject(, "LogosBibleSoftware.Application")'If it is not running, try to execute it using the Logos LauncherIf Err.Number = 429 ThenSet Launcher = CreateObject("LogosBibleSoftware.Launcher") Launcher.LaunchApplication'Wait for the App to loadWhile Logos Is NothingSet Logos = Launcher.ApplicationWendEnd IfOn Error GoTo ErrHandler'Try to load the Layout by nameIf Logos.LoadLayout(pLayoutName) = False Then MsgBox "Can't Load Layout:" & pLayoutNameEnd IfExit SubErrHandler:'Trap unexpected errors MsgBox Err.Description Err.ClearEnd Sub
If this is what you are looking for I hope it works fine. If not, explain a bit more with an example what you did previously.