I am not getting leading zero while exporting data to excel using export to excel code . I have tried adding '''' with data but a character ' comes at the beginning.
*This post is locked for comments
Were we able to help you to resolve the issue?
You need to add four single quotes ('''') for the field which you want excel to format as text not as integer.
Check below blog from Saurav : http://saurav-nav.blogspot.co.nz/2012/06/nav-report-export-to-excel-number-as.html
Hi NavTech,
if you are using the Excel Buffer you can insert '@' in the NumberFormat field. For the decimal values you can insert '#,##0.00'
Check the format function
Hello, you need to highlight the columns in Excel and change the data type /number format. Set a Number format for numerical values, and set a Text format for all alphanumeric characters.
Hello,
Put CellType as Text or @ while in export code.
hi,
did you also used FORMAT(Number) i mean string to export := ''''+FORMAT(YourData)
using the right syntax msdn.microsoft.com/.../dd301367(v=nav.80).aspx
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156