D
DapperDanH
The following code:
======================================
using Microsoft.Office.Core;
DocumentProperties prps =
(DocumentProperties)mspApp.ActiveProject.CustomDocumentProperties;
======================================
works great when the class that contains that code is called as part of a
..NET C# MSProject addin.
However, as a standalone, using the exact same references to MS Project and
Office (.net tab), I receive an invalid cast at runtime. It does compile.
Unfortunately, I do not know how to get around this and have been stuck.
Anyone have any advice?
Sincerely,
Dan H.
======================================
using Microsoft.Office.Core;
DocumentProperties prps =
(DocumentProperties)mspApp.ActiveProject.CustomDocumentProperties;
======================================
works great when the class that contains that code is called as part of a
..NET C# MSProject addin.
However, as a standalone, using the exact same references to MS Project and
Office (.net tab), I receive an invalid cast at runtime. It does compile.
Unfortunately, I do not know how to get around this and have been stuck.
Anyone have any advice?
Sincerely,
Dan H.