Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.setup
|
|||
|
|||
![]()
I have created windows application in VB.Net for export excel functionality
from datatable. For this I used "Interop.Excel.dll" and "Interop.Office.dll" and created worksheet as below Dim excelBook As Excel.Workbook = excelApp.Workbooks.Add Dim excelWorksheet As Excel.Worksheet = CType(excelBook.Worksheets(1), Excel.Worksheet). For cntDs As Integer = 0 To dsExport.Tables.Count - 1 With excelWorksheet ..... .... End With Next Its working fine. But once the data opened in the excel sheet (excel 2007), if there is any number with leading zero (eg:00123), it will be truncated which i dont want. Even though if I change the format of excel sheet as text after loading the data, the truncated zeros are not coming. Is there any property in excel 2007 to stop truncating leading zeros? Please advise. Thanks in advance, HR. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
export re-order input fields to export file [csv] | Excel Worksheet Functions | |||
Excel Leading Zeros | Excel Discussion (Misc queries) | |||
leading zeros in excel | Excel Discussion (Misc queries) | |||
How to export excel column into Access without losing the leading. | Excel Discussion (Misc queries) | |||
How do I display leading zeros so I can export a fixed in Excel? | Excel Discussion (Misc queries) |