2 Replies Latest reply on Oct 23, 2009 6:43 PM by AdobeScripts

    [CS3][VB] AssociatedXMLElement

      There must be something wrong with AssociatedXMLElement property in CS3.
      It throws an InvalidCastException with the message, "Return argument has an invalid type." if a TextFrame or Rectangle has a Tag

      What is wrong with this code...?

      Dim Rec As InDesign.TextFrame
      Rec = myDocument.TextFrames.FirstItem
      Dim x As Object
      x = Rec.AssociatedXMLElement


      Using VS2005 and CS3