The AbstractCalculationEngine Calculate method often provides ReferredArea objects when references are used in formulas. I’m wondering if there is any utility functions to convert a ReferredArea to a Range Address formula such as “Sheet1!A1:C5”.
Also, is there a way to tell if a ReferredArea is an entire row or entire column (e.g. Sheet1!C:C)? For an entire column it shows a very large row number and I can’t find what to compare that too to be sure it’s an entire column.
I meant to provide my working example. This works for me, but I would prefer to use something from Aspose if it exists or at least to not hardcode max row and max column.
@weissa
Your judgment logic is correct. You can continue to use it, and we also plan to add APIs to make it more convenient for users to use the product.
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): CELLSNET-55494
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
Thank you for the quick response. And feel free to use the helper functions above if that’s helpful. I have not tested it properly yet, it was a work in progress.
@weissa
After further research, you can also use ReferredArea.ToString() method to achieve the goal. Of course, we will also add apis for determining whether it is a entire row and entire column
We are pleased to inform you that your issue (logged earlier as “CELLSNET-55494”) has been resolved. We have added new properties: ReferredArea.IsEntireRow/IsEntireColumn to indicate whether the reference is entire row or column. The enhancements will be included in our upcoming release (Aspose.Cells v24.5) that we plan to release in the first half of May 2024. You will be notified when the next version is released.
The issues you have found earlier (filed as CELLSNET-55494) have been fixed in this update. This message was posted using Bugs notification tool by johnson.shi
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.
Enables storage, such as cookies, related to analytics.
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.