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

    [CS3][VB] AssociatedXMLElement

    Level 1
      Hi
      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

      /Andy

      Using VS2005 and CS3 5.0.3.662