Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,670
Default Excel Workbook.SaveAs xml spreadsheet gives garbage number

Hi,

I use excel library API "workbook.saveas" just like below:

book.SaveAs(tempXmlFile, XlFileFormat.xlXMLSpreadsheet, Missing.Value,
Missing.Value, false, false, XlSaveAsAccessMode.xlExclusive, Missing.Value,
Missing.Value, Missing.Value, Missing.Value, Missing.Value);



some of the data in excel is in "Number" format and sometimes the number get
into garbage value after i save it in xml spreadsheet. For instance: 10.21
become 10.2099999.



this happen only after i use office 2007, it is working fine under office
2003. The only way to get around this is to cut and paste the entire excel
content and reformat them in "Text". The problem with this is I cannot
prevent others who use excel 2007 from having number format, and it will
return me wrong value "10.2099999" instead of "10.21".



Is this ia known bug in excel 2007 API? is there anyway to get around this
by not forcing everyone to take care their own excel data formating?



thanks,

eric

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I delete an infinite number of garbage cells to the right terry Excel Discussion (Misc queries) 2 April 4th 23 11:21 AM
Excel workbook SaveAs question Dave Farquharson Excel Programming 5 January 10th 08 08:18 PM
Excel workbook.saveas freezes program Ryan[_12_] Excel Programming 2 July 24th 06 05:51 PM
Excel opening w/ garbage WLMPilot Excel Discussion (Misc queries) 2 December 13th 05 02:43 AM
Using custom template with Excel.Workbook.SaveAs [email protected] Excel Programming 1 January 28th 05 04:16 AM


All times are GMT +1. The time now is 07:04 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"