Hi,
I have a col with long numbers, e.g. 119200075708
After exporting to excel from xbrowser, it ends up as 1.192E+11
How to prevent that from happening?
TIA
p.s. I just noticed all the numbers in "Inv Num." column are converted to 1.192E+11
xBrowse: Avoid long numbers converted to scientific notation
xBrowse: Avoid long numbers converted to scientific notation
FWH 11.08/FWH 19.03
xHarbour 1.2.1 (Rev 6406) + BCC
Harbour 3.1 (Rev 17062) + BCC
Harbour 3.2.0dev (r1904111533) + BCC
xHarbour 1.2.1 (Rev 6406) + BCC
Harbour 3.1 (Rev 17062) + BCC
Harbour 3.2.0dev (r1904111533) + BCC
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: xBrowse: Avoid long numbers converted to scientific notation
Is this a browse from Array or DBF?
For now, please do this.
Have a function like this
Instead of calling oBrw:ToExcel(), please call myexcel( oBrw )
For now, please do this.
Have a function like this
Code: Select all
function myexcel( oBrw )
local oSheet
oSheet := oBrw:ToExcel()
oSheet:Columns( 1 ):NumberFormat := "#########"
return nil
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
Re: xBrowse: Avoid long numbers converted to scientific notation
From an array which gets its contents from a csv filenageswaragunupudi wrote:Is this a browse from Array or DBF?
It works!For now, please do this.
Have a function like thisInstead of calling oBrw:ToExcel(), please call myexcel( oBrw )Code: Select all
function myexcel( oBrw ) local oSheet oSheet := oBrw:ToExcel() oSheet:Columns( 1 ):NumberFormat := "#########" return nil
Thanks Rao!
FWH 11.08/FWH 19.03
xHarbour 1.2.1 (Rev 6406) + BCC
Harbour 3.1 (Rev 17062) + BCC
Harbour 3.2.0dev (r1904111533) + BCC
xHarbour 1.2.1 (Rev 6406) + BCC
Harbour 3.1 (Rev 17062) + BCC
Harbour 3.2.0dev (r1904111533) + BCC