Spire.XLS is a professional Excel API that enables developers to create, manage, manipulate, convert and print Excel worksheets. Get free and professional technical support for Spire.XLS for .NET, Java, Android, C++, Python.
Thu Feb 02, 2017 3:53 pm
Hi,
I see under each column there is a field called "FormatType". I really need to get that for my application to determine the column type format. If it's a Text, number or datetime type of column. How do I get this information?
Thanks
-
lsong
-
- Posts: 36
- Joined: Wed Feb 01, 2017 4:13 pm
Fri Feb 03, 2017 3:50 am
Dear lsong,
Thanks for your inquiry.
You can use NumberFormat to get the format code.
- Code: Select all
string format = sheet.Columns[0].NumberFormat;
If there is any question, please let me know.
Sincerely,
Betsy
E-iceblue support team
-
Betsy.jiang
-
- Posts: 3099
- Joined: Tue Sep 06, 2016 8:30 am
Sat Feb 04, 2017 6:26 am
Dear lsong,
Did you test the code I provided ? Has your issue been resolved ?
Sincerely,
Betsy
E-iceblue support team
-
Betsy.jiang
-
- Posts: 3099
- Joined: Tue Sep 06, 2016 8:30 am