ReoGrid Forum

Fast and powerful .NET Spreadsheet Component

You are not logged in.

Announcement

This forum has been archived and no longer accepts new user registrations. Please report your questions, problems, and feedback to the issue page of ReoGrid on GitHub. Thank you for your cooperation.

https://github.com/unvell/ReoGrid/issues

#1 2017-02-16 03:36:58

shixiaoxiong
Member
Registered: 2017-02-16
Posts: 2

导出excel问题

导出的时候,如果当前grid是多个sheet的话,会报错。如果为一个sheet则不会。


        private void button2_Click(object sender, EventArgs e)
        {
            var workbook = reoGridControl1;
            reoGridControl1.Save(@"D:\reogrid\导出\sheet.xlsx", unvell.ReoGrid.IO.FileFormat.Excel2007);
        }

异常:
System.NullReferenceException”类型的未经处理的异常在 unvell.ReoGrid.dll 中发生

其他信息: 未将对象引用设置到对象的实例。

请问不能导出多sheet的grid为excel吗?

Offline

#2 2017-02-16 05:51:25

shixiaoxiong
Member
Registered: 2017-02-16
Posts: 2

Re: 导出excel问题

已经解决了。导入的excel内部有问题

Offline

Board footer

Powered by FluxBB