The type or namespace name 'NumberFormat' could not be found

Dec 24, 2009 at 12:33 PM

Hi,

I downloaded the source code and attempted to recompile the assembly in the project DocumentFormat.OpenXml.Extensions against Open XML SDK 2.0 December 2009 CTP for Microsoft Office and got the following eror:

Error    1    The type or namespace name 'NumberFormat' could not be found (are you missing a using directive or an assembly reference?)

originating  from  simpleooxml-29325\DocumentFormat.OpenXml.Extensions\SpreadsheetStyle.cs

I could not find out where the class NumberFormat is declared. I probably miss some simple thing. Could some reference be missing?

Help is appreciated

Merry christmas

 

Anatoli Strigin

 

 

 

 

 

 

 

Coordinator
Dec 25, 2009 at 9:31 AM

This is to do with the December 2009 CTP build of the SDK. I will try update the code in the next few days, in the meantime try and use the August 2009 CTP instead.

Jan 25, 2010 at 7:06 PM
jameswestgate wrote:

This is to do with the December 2009 CTP build of the SDK. I will try update the code in the next few days, in the meantime try and use the August 2009 CTP instead.

Hi James,

Any ETA on this update? The August CTP doesn't appear to be available for download any more.

Thanks!

Jan 25, 2010 at 7:26 PM
blitzd wrote:
jameswestgate wrote:

This is to do with the December 2009 CTP build of the SDK. I will try update the code in the next few days, in the meantime try and use the August 2009 CTP instead.

Hi James,

Any ETA on this update? The August CTP doesn't appear to be available for download any more.

Thanks!

Just FYI,

It appears it's not too difficult to get the project to compile with the Dec CTP. I did a solution wide find/replace for NumberFormat to NumberingFormat, and then fixed the few instances (12) where NumberFormatId got changed to NumberingFormatId, as well as ApplyNumberFormat (two) got changed to ApplyNumberingFormat. All unit tests passed after these changes, and my project compiled fine with the Dec CTP and the newly compiled extensions DLL.