Hi,
Ah okay, I wasn’t too sure if it was something I’d missed. Thanks for the update.
Hi,
Thanks for your posting and considering Aspose.Cells.
We have found this error so you were not missing anything. We are hopeful this error will be fixed within couple of weeks. Once, there is some fix or other update available for you, we will share it with you asap.
Hi Shakeel, great to hear! Thanks for the update.
Hi,
Thanks for using Aspose.Cells.
Please create an excepted file in MS Excel and post it here. MS Excel
all shows error when we create the list object with your defined names.
Hi,
Thanks for using Aspose.Cells.
It is to inform you that we have fixed your issue CELLSNET-44041 now. We will soon provide the fix after performing QA and including other enhancements and fixes.
Hi Shakeel, thanks for the update! Looking forward to the fix. I’ve attached Test_ExectedOutput.xlsx, not sure exactly what you guys were looking for based on the previous message. It contains what the output of the code would be if it didn’t error out on initial load (manually created). If it’s not relevant, then it can just be ignored
Hi,
Thanks for providing us the expected excel file and using Aspose.Cells.
It is good you have provided the expected excel file. We have logged your comment and expected excel file in our database for product team further consideration and investigation. It will be helpful for them to fix the issue thoroughly in case if there is still something needs to be fixed.
Hi,
Thanks for using Aspose.Cells.
Please download and try the latest fix: Aspose.Cells
for .NET v8.6.1.6 and let us know your feedback.
Hi,
Thanks for your feedback and using Aspose.Cells.
We have logged your comment in our database for product team investigation. We will look into it and see if this issue can be resolved. Once there is some news for you, we will let you know asap.
Hi,
Hi Amjad,
Hi,
Thanks for your feedback and using Aspose.Cells.
We have logged your comment in our database for product team investigation. We will look into it and update you with some workaround or solution if possible. Once there is some news for you, we will let you know asap.
Hi,
Hi,
I am new to Aspose tool. Currently I have a requirement in which I need to create a report with chart and table in RDLC and export it with dropdown. So when I select a value from dropdown it should show chart based on filtered value and also table with filtered value.
I notice there is some code on forum through which I got a dropdown working which is like this.
var cats = categorySales.Tables[0].AsEnumerable().Select(al => al.Field(“Category”)).Distinct().ToList();
var list = new List();
foreach (var item in cats)
{
list.Add(item);
}
finalWorkbook = new Aspose.Cells.Workbook(serverfileName);
//Specify the separator for the data list.
var flatList = string.Join(",", list.ToArray());
var worksheet1 = finalWorkbook.Worksheets[1];
//Get the validations collection
var validations = worksheet1.Validations;
CellArea area;
area.StartRow = 14;
area.EndRow = 14;
area.StartColumn = 1;
area.EndColumn = 1;
//Create a new validation to the validations list
var validation = validations[validations.Add(area)];
//Set the validation type
validation.Type = Aspose.Cells.ValidationType.List;
//Set the operator
validation.Operator = OperatorType.Between;
//Set the in cell drop down
validation.InCellDropDown = true;
//Set the formula1
validation.Formula1 = flatList;
//Enable it to show error, you can turn it ON or OFF as desired
validation.ShowError = true;
//Set the alert type severity level
validation.AlertStyle = ValidationAlertType.Stop;
// Set the error title
validation.ErrorTitle = “Invalid Name Error”;
//Set the error message
validation.ErrorMessage = “Please select a Name from the drop down”;
//Add the validation area
validation.AreaList.Add(area);
Aspose.Cells.Cell cell = worksheet1.Cells[“B15”];
//Create a style object
Style style = cell.GetStyle();
//Setting the line style of the top border
style.Borders[BorderType.TopBorder].LineStyle = CellBorderType.Thick;
//Setting the color of the top border
style.Borders[BorderType.TopBorder].Color = Color.Black;
//Setting the line style of the bottom border
style.Borders[BorderType.BottomBorder].LineStyle = CellBorderType.Thick;
//Setting the color of the bottom border
style.Borders[BorderType.BottomBorder].Color = Color.Black;
//Setting the line style of the left border
style.Borders[BorderType.LeftBorder].LineStyle = CellBorderType.Thick;
//Setting the color of the left border
style.Borders[BorderType.LeftBorder].Color = Color.Black;
//Setting the line style of the right border
style.Borders[BorderType.RightBorder].LineStyle = CellBorderType.Thick;
//Setting the color of the right border
style.Borders[BorderType.RightBorder].Color = Color.Black;
//Apply the border styles to the cell
cell.SetStyle(style);
But dropdown arrow is showing only when I click on excel cell ( although it shows all values). Is there any way It shows every time? also how to filter chart and table based on selected value. I see there is some Range code but I couldn’t get it how it will work? Also I need to make some value to be default like a “TOTAL”
Hi Saurabh,
Worksheet sheet = workbook.Worksheets[0];
var index = sheet.Charts.Add(Charts.ChartType.Column3DClustered, 21, 0, 35, 9);
var chart = sheet.Charts[index];
chart.SetChartDataRange(“A1:D12”, true);
//Optional as per requirements
//following statements remove all unwanted series from the collection while leaving required ones
ArrayList list = new ArrayList();
for (index = 0; index < chart.NSeries.Count; index++)
{
var series = chart.NSeries[index];
if (series.DisplayName != “Cost” && series.DisplayName != “Profit”)
{
list.Add(index);
}
}
for (index = 0; index < list.Count; index++)
{
chart.NSeries.RemoveAt((int)list[index]);
}
chart.NSeries.CategoryData = “A2:B12”;
chart.Calculate();
workbook.Save(@“output.xlsx”);
Hi,
Did you get a chance to look into excel which I sent you in email?
Thanks
Hi Saurabh,