# Maxsize error in exporting excel file

**URL:** <https://www.ruby-forum.com/t/maxsize-error-in-exporting-excel-file/166279>\
**Category:** Ruby\
**Created:** [April 23, 2009, 12:50pm UTC](https://www.ruby-forum.com/t/maxsize-error-in-exporting-excel-file/166279 "2009-04-23T12:50:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ganeshk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/7cd45c/32.png) [@ganeshk](https://www.ruby-forum.com/u/ganeshk)\
**Post date:** [April 23, 2009, 12:50pm UTC](https://www.ruby-forum.com/t/maxsize-error-in-exporting-excel-file/166279/1 "2009-04-23T12:50:00Z")

</div>

Hi,  
I am having exporting data to excel file from one report in our  
project.But the report contains more than 5 lack records so the parse  
excel gem it is giving “max size error” Plz reply me if anybody knows  
solution

Thanks and regards  
Ganesh

---

<div class="post-metadata">

**Author:** ![ganeshk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/7cd45c/32.png) [@ganeshk](https://www.ruby-forum.com/u/ganeshk)\
**Post date:** [April 23, 2009, 6:37pm UTC](https://www.ruby-forum.com/t/maxsize-error-in-exporting-excel-file/166279/2 "2009-04-23T18:37:38Z")

</div>

You need to patch the spreadsheet lib with ruby-ole to fix the MaxSize  
error:

> **[GitHub - aquasync/ruby-ole: A library for easy read/write access to OLE...](https://github.com/aquasync/ruby-ole)**
>
> A library for easy read/write access to OLE compound documents for Ruby - GitHub - aquasync/ruby-ole: A library for easy read/write access to OLE compound documents for Ruby

Dan

---

<div class="post-metadata">

**Author:** ![ganeshk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/7cd45c/32.png) [@ganeshk](https://www.ruby-forum.com/u/ganeshk)\
**Post date:** [May 7, 2009, 6:48am UTC](https://www.ruby-forum.com/t/maxsize-error-in-exporting-excel-file/166279/3 "2009-05-07T06:48:08Z")

</div>

Dan F. wrote:

> You need to patch the spreadsheet lib with ruby-ole to fix the MaxSize  
> error:
> 
> [GitHub - aquasync/ruby-ole: A library for easy read/write access to OLE compound documents for Ruby](http://code.google.com/p/ruby-ole/wiki/ExcelPatches)
> 
> Dan

sir,

I tried what you said there but i found the Maxsize error.Could you plz  
explain how to patch spreadsheet/excel with ruby-ole in order to avoid  
maxsize error.

```
                                thanks

```
