This project has moved and is read-only. For the latest updates, please go here.

Custom Property convert string to number

Jul 12, 2012 at 12:32 PM
Edited Jul 12, 2012 at 12:54 PM

Hi ,

I am trying to update a workbook custom property with the code below

workbook.CustomProperties.CustomProperty("GroupNumber").Value = groupNumber.ToString();  

But when i try to check the file the custom property, 'GroupNumber' has the Type 'Number' instead of 'Text'.

The code that reads the custom properties only accepts Text and I have no control to change that code. Is there a way to make the number as Text?

if only doing the code below is not readonly.

workbook.CustomProperty("GroupNumber").Type = XLCustomPropertyType.Text; //wont work because its a read-only