Home Forums General XMetaL Discussion ActiveDocument.doctype returns empty string Reply To: ActiveDocument.doctype returns empty string

Derek Read

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]
 
  “>
  “>
 
]>

  Focus On Digital Cameras
…etc…[/code]

Which event are you using this API inside of? That may be part of the issue.

Reply

Products
Downloads
Support