How to call DocumentFormat and other relevant objects in C++/CLi with OpenXML as added reference into the program. I couldnot find any documentation on how to call these objects. “Using DocumentFormat.OpenXML.Package” gives error in c++ project such as follows:
”
1>clitest.cpp(7): error C2143: syntax error : missing ‘;’ before ‘.’
1>clitest.cpp(7): error C2873: ‘DocumentFormat’ : symbol cannot be used in a using-declaration
1>clitest.cpp(7): error C2059: syntax error : ‘.’
”
However I have added DocumentFormat, as reference to my project.
Regards
YogiK
C++ namespace syntax uses :: as a delimiter. This code compiles::