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

parse data_only false not working #14

Closed
ghost opened this issue Jan 15, 2012 · 3 comments
Closed

parse data_only false not working #14

ghost opened this issue Jan 15, 2012 · 3 comments

Comments

@ghost
Copy link

ghost commented Jan 15, 2012

Cannot get the parser to work when data_only is set to false:
workbook = RubyXL::Parser.parse("public/Sampleformslist.xlsx",false)

Get error:
undefined method `content' for nil:NilClass

Using this sample xlsx:
http://archive.msdn.microsoft.com/mss2008sdksamples/Release/ProjectReleases.aspx?ReleaseId=523

Otherwise, when data only=true everything seems to work great:)

@brazir
Copy link
Contributor

brazir commented Jan 15, 2012

I will take a look.

@brazir
Copy link
Contributor

brazir commented Jan 15, 2012

Hello, the bug was from the 1.2 release missing a nil case I have fixed the problem in the 1.2.3 release. Thanks for the help.

@brazir brazir closed this as completed Jan 15, 2012
@ghost
Copy link
Author

ghost commented Jan 15, 2012

Thank you - super quick response:)

This seems to have raised another bug though-the write seems to fail with data_only = false

this works fine:

workbook = RubyXL::Parser.parse("public/xxx.xlsx",true)
workbook.write("public/xxx.xlsx")

but this

workbook = RubyXL::Parser.parse("public/xxx.xlsx",false)
workbook.write("public/xxx.xlsx")

write creates this error:
can't convert Symbol into Integer

On Jan 15, 2012, at 8:42 AM, Rob wrote:

Hello, the bug was from the 1.2 release missing a nil case I have fixed the problem in the 1.2.3 release. Thanks for the help.


Reply to this email directly or view it on GitHub:
#14 (comment)

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

1 participant