Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Why can't I get the maximum number of rows in the sheet #1053

Unanswered
xxxxxxming asked this question in Q&A
Discussion options

I added the code to the rows.go file

 func (rows *Rows) CurRow() int {
	return rows.curRow
 }
 func (rows *Rows) TotalRow() int {
	return rows.totalRow
 }

then I used in my test code

 f, err := excelize.OpenFile(path)
 if err != nil {
	fmt.Println(err)
	return
 }
 r, _ := f.Rows("General")
 fmt.Println("cloumes", r.TotalRow())

it seems to return the the correct result,Is there anything wrong with me using it this way?

You must be logged in to vote

Replies: 1 comment

Comment options

Thanks for your suggestion, I'll consider adding this feature in the next version.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /