Monday 20 October 2014

How to fix error - Cannot convert type 'DocumentFormat.OpenXml.UInt32Value' to 'int

Error
Cannot convert type 'DocumentFormat.OpenXml.UInt32Value' to 'int

Replace
int stIndex = (int)(cellWidth.StyleIndex);
With
UInt32 stIndex = (UInt32)(cellWidth.StyleIndex);
int sIndex = (int)stIndex;



No comments:

Post a Comment