Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET
want to show .00 after integer number in excel spread sheet through vb.net
Posted 22-Sep-12 4:21am
Comments
Wes Aday at 22-Sep-12 9:26am
   
That makes no sense at all. Integers do not have decimal points. How is it that you are showing this data from Excel in VB.NET?
vijay bisht at 25-Sep-12 1:20am
   
i want to convert the integer to a decimal and then show it on excelsheet .... but when i get something like 4.00or 3.000r anything.00 the excel sheet shows like this 1,3,or anything

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

You need to use Interop and then select the relevant cells and ammend the NumberFormat accordingly.
 
See this; http://stackoverflow.com/questions/3097081/formatting-add-comma-2-decimal-places-to-cell-values-vb-net-excel-interop[^]
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 7,800
1 Sergey Alexandrovich Kryukov 7,072
2 DamithSL 5,604
3 Manas Bhardwaj 4,986
4 Maciej Los 4,790


Advertise | Privacy | Mobile
Web03 | 2.8.1411023.1 | Last Updated 22 Sep 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100