Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expected element <theme> in name space #1447

Closed
bourne-3 opened this issue Jan 12, 2023 · 3 comments
Closed

expected element <theme> in name space #1447

bourne-3 opened this issue Jan 12, 2023 · 3 comments
Labels
confirmed This issue can be reproduced

Comments

@bourne-3
Copy link

bourne-3 commented Jan 12, 2023

Description
Hi. I use the package to read a excel and encounter the err report like this

expected element <theme> in name space http://schemas.openxmlformats.org/drawingml/2006/main but have http://purl.oclc.org/ooxml/drawingml/main

The file i use is a xlsx format file which i save as from a csv file.

code below:

	f, err := excelize.OpenFile("inventory.xlsx")
	if err != nil {
		fmt.Println(err)
		return
	}
	defer func() {
		if err := f.Close(); err != nil {
			fmt.Println(err)
		}
	}()

	// 获取 Sheet1 上所有单元格
	rows, err := f.GetRows("sheet1")
	if err != nil {
		fmt.Println(err)
		return
	}
	for _, row := range rows {
		for _, colCell := range row {
			fmt.Print(colCell, "\t")
		}
		fmt.Println()
	}

any suggestion?

@xuri
Copy link
Member

xuri commented Jan 12, 2023

Thanks for your feedback. Please provide your input file attachment without confidential info if you can.

@xuri xuri added the needs more info This issue can't reproduce, need more info label Jan 12, 2023
@bourne-3
Copy link
Author

sample_origin.csv
sample_save_as_xlsx_format.xlsx

The files i use shown above, please check

@xuri xuri added confirmed This issue can be reproduced in progress Working in progress and removed needs more info This issue can't reproduce, need more info labels Jan 12, 2023
@xuri xuri closed this as completed in 4f0025a Jan 12, 2023
@xuri
Copy link
Member

xuri commented Jan 12, 2023

Thanks for your issue, I have fixed it. Please upgrade to the master branch code, and this patch will be released in the next version.

@xuri xuri removed the in progress Working in progress label Jan 12, 2023
xuri added a commit to JDavidVR/excelize that referenced this issue Jul 11, 2023
- Support specify if applying number format style for the cell calculation result
- Reduce cyclomatic complexities for the OpenReader function
jenbonzhang pushed a commit to jenbonzhang/excelize that referenced this issue Oct 22, 2023
- Support specify if applying number format style for the cell calculation result
- Reduce cyclomatic complexities for the OpenReader function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed This issue can be reproduced
Projects
None yet
Development

No branches or pull requests

2 participants