word PIA + VSTO a no go?
For an application I am trying to open a word template that contains VSTO code using the Primary Interop Assemblies with code like
Document
document = word.Documents.Add(ref template, ref wMissing, ref wMissing, ref wMissing); and for some reason the template events like startup, activate, open arn't called so my VSTO code never executes. I was already surprissed that I couldn't call functions on my template from my own application but if I can't even load the document in a way that the code inside it runs then the options for VSTO become really limited, am I missing something here?
PS:
this is using visual studio 2005 beta 2 and the 2003 PIA's