ReoGrid icon indicating copy to clipboard operation
ReoGrid copied to clipboard

When I save workboot to excel file, I get null exception

Open kengan opened this issue 6 years ago • 2 comments

I load a excel into Reogrid from stream. Because my excel file is embedded resource in my winform application. The following code is my program.

        Assembly tAssembly = Assembly.GetExecutingAssembly();
        Stream tStream = tAssembly.GetManifestResourceStream(resourcePath);
        this.reoGridControl1.Load(tStream, FileFormat.Excel2007);

After loading, everything is OK. Now I want to call Reogrid save to save the workbook to an excel file and I get System.NullReferenceException The program is as following.

         reoGridControl1.Save(@"E:\zhonggong\ReoGridTest\TableManager\bin\Debug\tmp\text.xlsx", FileFormat.Excel2007);

Can you tell my how to solve this problem? Thank you.

kengan avatar Apr 07 '19 03:04 kengan

Please post the exception stack information, thanks.

jingwood avatar Jun 28 '19 16:06 jingwood

Similar to #220

jingwood avatar Apr 03 '21 18:04 jingwood