I'm working right now with aspose.cells 4.8.0.0 which you guys have done a fantastic job on.
I found 2 bugs... the first I found a workaround for, the second I did not.
1) The first only occurs in Excel 2003. I have row fields of "A" and "B" and A has some very long value. I also have a page field of "C" which has a short label. So when I do the AutoFitColumns at the end, it fits ALL columns correctly... except for the first one. It uses the width of "C"'s label, as opposed to the width of "A".
I worked around this by also AutoFitting the first spreadsheet, taking the column width of the same column, and then applying it AFTER I do the autofit. So, no issues -- this is for your guys information. This error does NOT occur in Excel 2007 so it may not be worth fixing.
2) Same pivot table. In Excel 2003, the row fields display the proper header names ("A" and "B"). In EXcel 2007 the row fields display the following headers "Row Labels" and "B". Similarly, the column field which is correct in Excel 2003 shows "Column Labels" in Excel 2007.
I'm probably missing something simple but I am at my wits end going through the documentation to find it.
1) The first only occurs in Excel 2003. I have row fields of “A” and “B” and A has some very long value. I also have a page field of “C” which has a short label. So when I do the AutoFitColumns at the end, it fits ALL columns correctly… except for the first one. It uses the width of “C”'s label, as opposed to the width of “A”.
I worked around this by also AutoFitting the first spreadsheet, taking the column width of the same column, and then applying it AFTER I do the autofit. So, no issues – this is for your guys information. This error does NOT occur in Excel 2007 so it may not be worth fixing.
We would love to correct if we find this issue. We appreciate if you could provide us the template file(s)( input (if any) and output(processed by Aspose.Cells for .NET)) with sample code etc. We will check it soon.
jamesmnorman:
2) Same pivot table. In Excel 2003, the row fields display the proper header names (“A” and “B”). In EXcel 2007 the row fields display the following headers “Row Labels” and “B”. Similarly, the column field which is correct in Excel 2003 shows “Column Labels” in Excel 2007.
Could you show a simple console application to show the issue with the generated file(s). We will check it soon.
If you have Adventureworks installed on SQL 2005 (and a C drive you can write to) you should be able to tweak the connection string and run this code as is.
using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using Aspose.Cells;
namespace AsposeProblems { class Program { static void Main(string[] args) {
Hi Amjad, I tried it with my test program and both cases still failed.
I’m wondering if the bug was misunderstood, I’ve added four screenshots – 2 that reflect what we currently get, and two that reflect what I would expect
Granted, these are formatting issues, but our internal customers tend to expect a lot.
1) The issue of column width: Currently, we do not support to calculate the data of a pivot table, so, the Worksheet.AutoFitColumns does not effect. Just to update you, we will support to read the pivot table from the template file and calculate data of the pivot table in Q1 2010.
2) The issue of pivot table in Excel 2007: We have found this issue and we will fix it soon.
"Also when we get the updated DLL from you, can we get the .net 2.0 version as opposed to 1.1?" OK, we will provide you the .net2.0 version of the fix.
Where the “2” represents the index of the column from the original spreadsheet I am using to set the first PivotFieldType.Row . (Since I put everything starting at A1, it also happens to be the ordinal position of the field in the dataset.)
Please try the attached latest version of Aspose.Cells. We have fixed your mentioned issue regarding pivot table in Excel 2007. Please do let us know if you still face any problem.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.