I want to inherit from DocX
, to integrate InterOp printing of Word documents:
public class WordDoc : DocX {
static private Microsoft.Office.Interop.Word.Application wordApp;
static WordDoc() {
}
}
but when I try that, I get this error:
'DocX' does not contain a constructor that takes 0 arguments
From metadata I can see that no constructors are defined at all, so I reckon the empty constructor should be generated. I also do not provide a constructor for my base class.
I do have the static constructor, but when I remove it, I still get the same error.