General XMetaL Discussion

XMetaL Community Forum General XMetaL Discussion Can’t Preview – On_Before_Document_Preview popsup

  • archives

    Can’t Preview – On_Before_Document_Preview popsup

    Participants 2
    Replies 3
    Last Activity 13 years, 4 months ago

    One of my coworkers recently got a new PC. She reinstalled Xmetal 2.0 and copied over from her old PC all the files in the SoftQuad folder. On the old PC, Preview works fine but on the new one, a window first pops up saying “Automation server can't create script” (line 38, col2) and then a window pops up with the macro On_Before_Document_Preview.

    Any suggestions? Thanks!

    Reply

    Derek Read

    Reply to: Can’t Preview – On_Before_Document_Preview popsup

    I've never seen this particular error, so I'm not sure what it might mean. However, if the error is actually “Automation server can't create object” then the script that is attempting to run most likely references an ActiveX control that is either not installed or not registered properly as a COM object.

    Note that when an ActiveX control is called from script the filename itself is not referenced in the script but instead the name the control registered itself with Windows is used. This will make it tricky to figure out which OCX or DLL file is missing / not registered.

    The easiest way to figure out what the problem is would be to contact the person that originally created the MCR file(s) included with your customization (there might be more than one MCR) to find out if they can debug it for you.

    If you can locate the MCR file that contains the macro event in question then you can have a look at line 38 (or maybe nearby) to see what it is trying to do. Hopefully it is your document level customization, in which case the name of the MCR would match the name of your DTD. If it is an application level macro it might be xmetal.mcr, macros.mcr or a file located inside the Startup folder.

    However if you are not familiar with creating XMetaL customizations, or not familiar with the scripting language used, that might not be easy. You will also need a tool that lets you check which ActiveX controls are registered as COM objects in order to match up the registered name used in the script with the actual DLL or OCX that needs registering.

    Reply

    archives

    Reply to: Can’t Preview – On_Before_Document_Preview popsup

    I'm getting out of my comfort zone. We have a Tech coming over later this week. I'll show him your response to see if he can help us out.

    Thanks!

    Reply

    Derek Read

    Reply to: Can’t Preview – On_Before_Document_Preview popsup

    If this person needs help figuring out what has been done (perhaps they did not create the original customization) please have them submit a case including as much detail as possible including a sample XML document and the customization in question to XMetaL Support. Support will try to help out by pointing them in the right direction (provided your company is entitled to support).

    Reply

  • You must be logged in to reply to this topic.

Lost Your Password?

Products
Downloads
Support