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

Using autofilter and "D1" as worksheet name generates exception #12

Closed
drsound opened this issue Aug 25, 2011 · 2 comments
Closed

Using autofilter and "D1" as worksheet name generates exception #12

drsound opened this issue Aug 25, 2011 · 2 comments

Comments

@drsound
Copy link

drsound commented Aug 25, 2011

Using "D1" or any uppercase letter followed by a number together with autofilter generates an exception. Lowercase initial letter is instead ok. Try this simple test code:

require 'rubygems'
require 'writeexcel'
workbook = WriteExcel.new(open('test.xls', 'w'))
worksheet = workbook.add_worksheet('D1')
worksheet.autofilter(0, 0, 0, 10)
workbook.close

I get:

Racc::ParseError:
parse error on value "!" (error)
from /home/drsound/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/racc/parser.rb:350:in on_error' from /home/drsound/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/racc/parser.rb:99:in_racc_do_parse_c'
from /home/drsound/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/racc/parser.rb:99:in __send__' from /home/drsound/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/racc/parser.rb:99:in do_parse'
from /home/drsound/.rvm/gems/ruby-1.8.7-p352/gems/writeexcel-0.6.8/lib/writeexcel/formula.rb:206:inparse' from /home/drsound/.rvm/gems/ruby-1.8.7-p352/gems/writeexcel-0.6.8/lib/writeexcel/formula.rb:40:in parse_formula'
from /home/drsound/.rvm/gems/ruby-1.8.7-p352/gems/writeexcel-0.6.8/lib/writeexcel/worksheet.rb:2952:instore_formula' from /home/drsound/.rvm/gems/ruby-1.8.7-p352/gems/writeexcel-0.6.8/lib/writeexcel/worksheet.rb:7237:in store_filters'
from /home/drsound/.rvm/gems/ruby-1.8.7-p352/gems/writeexcel-0.6.8/lib/writeexcel/worksheet.rb:264:inclose' from /home/drsound/.rvm/gems/ruby-1.8.7-p352/gems/writeexcel-0.6.8/lib/writeexcel/workbook.rb:1284:in calc_sheet_offsets'
from /home/drsound/.rvm/gems/ruby-1.8.7-p352/gems/writeexcel-0.6.8/lib/writeexcel/workbook.rb:1282:ineach' from /home/drsound/.rvm/gems/ruby-1.8.7-p352/gems/writeexcel-0.6.8/lib/writeexcel/workbook.rb:1282:in calc_sheet_offsets'
from /home/drsound/.rvm/gems/ruby-1.8.7-p352/gems/writeexcel-0.6.8/lib/writeexcel/workbook.rb:1143:instore_workbook' from /home/drsound/.rvm/gems/ruby-1.8.7-p352/gems/writeexcel-0.6.8/lib/writeexcel/workbook.rb:152:in close'
from (irb):136

@cxn03651
Copy link
Owner

Thanks.
Bug fixed. New gem v0.6.9 has been released.
Please try.

cxn03651

@drsound
Copy link
Author

drsound commented Aug 25, 2011

You were fast! :-) Now it works perfectly! Thanks for all of your effort in writeexcel!

alday102 pushed a commit to alday102/writeexcel that referenced this issue Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants