Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
315
ArgumentOutOfRangeException throws when deleting sheet.
posted

Load and delete sheet from dbenfachALL.xlsx(https://www.devexpress.com/Support/Center/Question/Details/Q571743),
System.ArgumentOutOfRangeException throws.

===================================================================================================
using System;
using System.IO;
using Infragistics.Documents.Excel;

namespace ConApp
{
    class Program
    {
        static void Main(string[] args)
        {
            Stream stream = File.Open("dbenfachALL.xlsx", FileMode.OpenOrCreate);
            Workbook wb = Workbook.Load(stream);
            if (wb == null)
            {
                return;
            }

            var count = wb.Worksheets.Count;
            for (int i = count - 1; i > 0; i--)
            {
                wb.Worksheets.RemoveAt(i);
            }
        }
    }
}

Parents
No Data
Reply
  • 138253
    Offline posted

    Hello Linden,

     

    I have logged this with development under ID: 184988 and I have also created a support ticket on your behalf: CAS-146851-L5W5Y9 and have linked the development issue to it, so that you can get automatically updated, when a Service Release containing the fix is available for download. You can get the new version from our website’s “My IG”, “My Keys & Downloads” tags: https://ko.infragistics.com/Membership/Default.aspx?panel=Downloads#Downloads

     

    You can also monitor the support ticket’s progress through the “My Support Activity” tag: https://ko.infragistics.com/Membership/MySupport.aspx

Children
No Data