This library https://github.com/plandem/xlsx that was advertised here a few 
days ago worked for me with your initial test.xlsx

On Wednesday, 30 August 2017 18:42:19 UTC-4, G Shields wrote:
>
> Tried the trick with saving under LibreOffice and MS excel, and in both 
> cases the files created are different and both continue to fail.
>
> At this point 1.9 is not stable for me with XML.
>
> Enclosed are some more files (renamed for the application origin, but the 
> same test.xlsx)
>
> Thanks
>
> On Friday, August 25, 2017 at 3:10:40 PM UTC-7, G Shields wrote:
>>
>> Under 1.8.3 the program run:
>> package main
>>
>> import (
>>     "fmt"
>>     "os"
>>     "strconv"
>>
>>     "github.com/Luxurioust/excelize"
>> )
>>
>> func checkErr(err error) {
>>     if err != nil {
>>         fmt.Println(err)
>>         os.Exit(1)
>>     }
>>
>> }
>> func main() {
>>
>>     xlsx, err := excelize.OpenFile("test.xlsx")
>>     checkErr(err)
>>     mysheet := xlsx.GetSheetName(1)
>>     index := xlsx.GetSheetIndex(mysheet)
>>     rows := xlsx.GetRows("Sheet" + strconv.Itoa(index))
>>     for _, row := range rows {
>>         for _, colCell := range row {
>>             fmt.Print(colCell, "\t")
>>         }
>>         fmt.Println()
>>     }
>> }
>>
>> With results of:
>> na    Apple    Orange    Pear    
>> Small    2    3    3    
>> Normal    5    2    4    
>> Large    6    7    8
>> Success: process exited with code 0.
>>
>> Under 1.9 I get no data and no errors:
>> Success: process exited with code 0.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to