[Mono-dev] creating excel files
eng. Ahmed Youssef
ahhatem at gmail.com
Sat Feb 26 07:04:18 EST 2011
Sorry for the late reply but I thought I do my homework first...
After moving to mono 2.10 on opensuse, I managed to make the library work on
The problem was with this scenario:
public static void Main (string args)
MemoryStream stream = new MemoryStream ();
Package p = Package.Open (stream, FileMode.Create, FileAccess.ReadWrite);
throws this exception:
Unhandled Exception: System.ObjectDisposedException: The object was used
after being disposed.
at System.IO.MemoryStream.CheckIfClosedThrowDisposed () [0x00000] in
at System.IO.MemoryStream.ReadByte () [0x00000] in
at test.MainClass.Main (System.String args) [0x00000] in <filename
the package.Close call internally makes this:
public void Close()
for some reason the dispose call disposes the stream too....
After replacing the package.Close() with package.Flush().... the EPPlus lib
I hope that is useful... I don't mind digging into the issue more but I am
not sure how to do that.... any info would be appreciated.
I hope you confirm that it is a mono issue and that it will be fixed so that
either mono is fixed or the library...
Thank you all for the help.
On Tue, Feb 22, 2011 at 7:11 PM, jmalcolm <malcolm.justin at gmail.com> wrote:
> I am not sure how big the spreadsheets are that you need to work with but I
> have used the free version of GemBox to great effect:
> View this message in context:
> Sent from the Mono - Dev mailing list archive at Nabble.com.
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-devel-list