问题 Working with content controls

  • 2008年2月8日 15:02
     
     

    Hi,

     

    Can you tell me whether I can use the SDK to work with content controls and how I might go about it?

     

    Specifically I want to:

     

    1) Add some Custom Xml (now much easier thanks to the SDK).

    2) Using the information in the Xml, programmatically create content controls (assume at the start of the document) and link them to the Xml.

     

    Later on I may want to remove the content controls etc ....

     

    Am I correct in thinking that I have to go and edit the Xml of the main document directly ....?

     

    Regards,

    LJ

全部回复

  • 2008年3月4日 11:44
     
     
    Hi John,

    Read your prior post already, I submit to your question, I need a way to access those content controls.

     The scenario is pretty much like yours, the user edit a document template and then in a different program I will all content controls to specific data. So far I am using a wrapper class based on System.IO.Packaging, and a lot of XPath stuff to navigate cu content controls and guess their type. I was hoping that this little API will clear thinks up a little.

    Hope any of the Microsoft guys how up on this thread.

    Thank you,
    Calin,