I am recently trying Open XML SDK 2.0
Everything compile just fine and when I run my solution, this error comes up.
Compiler Error Message: CS0246: The type or namespace name ‘DocumentFormat’ could not be found (are you missing a using directive or an assembly reference?)
After a little struggle, I think it is caused by my runtime setting.
Because I am newbie to VS 2008 IDE and never setup my own server before, I make many stupid mistakes. I havn’t setup an IIS, just using my IDE. When I reference to an external .dll, I don’t know that beside add the reference, I also need to set its property ‘Copy Local’ to ‘True’, so that the .dll can be reference at runtime.