ListObject.ShowHeaderRow = false broken

Setting ShowHeaderRow = false exhibits incorrect behaviour

namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
//Instantiate the License class
Aspose.Cells.License license = new Aspose.Cells.License();

//Pass only the name of the license file embedded in the assembly
license.SetLicense("Aspose.Total.lic");

Workbook wb = new Workbook();
wb.Worksheets.Add();
Worksheet ws = wb.Worksheets[0];

ws.Cells[0, 0].PutValue("TITLE"); // Not in table
ws.Cells[1, 0].PutValue("COLHEADER"); // header Row
ws.Cells[2, 0].PutValue("ROW1");
ws.Cells[3, 0].PutValue("ROW1");

int index = ws.ListObjects.Add(1, 0, 3, 0, true);
Aspose.Cells.Tables.ListObject tbl = ws.ListObjects[index];
tbl.DisplayName = "TABLE";
tbl.TableStyleType = Aspose.Cells.Tables.TableStyleType.None;
tbl.UpdateColumnName();
tbl.ShowHeaderRow = true;

string file = @"../../AsposeHeaderRowShown.xlsx"; // this is ok
wb.Save(file, Aspose.Cells.SaveFormat.Auto);

ws.Cells[0, 2].PutValue("A1 should not be hidden"); // where has this gone?
ws.Cells[1, 2].PutValue("A2 should be hidden ");

tbl.ShowHeaderRow = false;
file = @"../../AsposeHeaderRowHidden.xlsx";
wb.Save(file, Aspose.Cells.SaveFormat.Auto);
}
}
}

Hi Ras,

Thanks for your posting and using Aspose.Cells for .NET.

We were able to observe this issue using your sample code and output files. Header row is still shown, it should be hidden. We have logged this issue in our database. We will look into it and resolve this issue. Once, the issue is resolved or we have some other update for you, we will let you know asap.

This issue has been logged as CELLSNET-42042.

Hi,


Please try our latest version/fix: Aspose.Cells for .NET v7.5.3.5, we have fixed your issue now.

Let us know your feedback.


Thank you.

thx it appears to be working

Hi Ras,

Thanks for your feedback and using Aspose.Cells.

It is good to know that your issue is resolved with the latest version. If you encounter any other issue, please feel free to post, we will be glad to help you further.

The issues you have found earlier (filed as CELLSNET-42042) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.