…etc…[/code]
Which event are you using this API inside of? That may be part of the issue.
Home › Forums › General XMetaL Discussion › ActiveDocument.doctype returns empty string › Reply To: ActiveDocument.doctype returns empty string
I don't have ready access to a 7.0 installation at this moment but I don't see this issue with 8.0.1.051 or 9.0.0.024 (current release).
Pasting the following script snippet into the sample “Cameras In Focus (Journalist)” returns the PUBLIC id for me. I've modified the sample to include your subset.
[code]//XMetaL Script Language JScript:
Application.Alert(ActiveDocument.doctype.publicId);[/code]
My document:
[code]
“>
“>
]>
Which event are you using this API inside of? That may be part of the issue.
Do you have pricing or sales inquiries?
Do you require technical support or have feature requests?
Contact us and we will be happy to answer your questions.