Extending WordprocessingDocument RRS feed

  • Question

  • Hi,

    ideea to solve my problem is to extend WordprocessingDocument

    Code Snippet

    public class WordPackageHelper : WordprocessingDocument

     public List<ContentControl> GetCCForPart()





    But the following problem raises, how do I create a instance of my class.

    Code Snippet

    WordPackageHelper myClass = WordPackageHelpe.Open(..., ...);

    The Open method return's a instance of WordprocessingDocument !

    Can someone show me how I can create my own Open method ? Or some other way that will help me to rich my goal (Extend
    WordprocessingDocumen) ?

    PS. Letting the source out on this API will be a great step forward for you guys !


    Tuesday, March 4, 2008 3:45 PM