Hi,
Hello,
I’ve attached a zip with a small test console application - the problem reduces to tests on the Cell.Formula setter, Cell.Value setter / Cell.PutValue(…).
The tests are in the CellFormulaTest class, methods:
- TestFormulaSetter() - after the Formula setter call, the cell value is set to NULL !
- TestValueSetter() - after the Value setter call, the cell formula is set to NULL !
- TestPutValue() - after the PutValue(…) method call, the cell formula is set to NULL !
Thank you,
Mihai
Hi,
- TestValueSetter() - after the Value setter call, the cell formula is set to NULL !
It works accordingly as I described/mentioned in the above paragraph.
Hello,
In the 6.0.0.0 version, this code was not causing any problems, maybe it was not fully implemented to work as Excel, as you’ve just described…
I was using it this way as a work-around in a particular scenario.
The question is: can I somehow set both Formula and Value for a cell ?, maybe there is a work-around for this…
If not, I have another question: can the ICustomFunction mechanism be extended so that Aspose calls CalculateCustomFunction(…) for Excel formulas as well ? E.g. CELL function.
Thanks a lot,
Mihai
Hi,
Hi,
After evaluating it, we come to conclusion.
1) We will add a new method Cell.SetFormula(string formula, object value) method to set the formula and the value of the formula altogether.
2) If the function is Excel's built-in function, we will not call ICustomFunction. So, if you find any issue of CELL function, please post your sample codes, we will check it soon.
Thank you.
Hi,
value) method for your need.
<o:p></o:p>
.Hello,
Thanks for the feedback. Option 1) should be of great help - do you have an approximate estimate on when this will available for download ? LATER EDIT: I saw you’ve already provided a version, thanks, I will try it.
For 2), indeed with CELL function we’ve encountered some problems. I’ve attached an archive containing 2 files made when doing tests for CELL formula:
- CELL.xlsx , the file containing tested CELL formulas
- Results.xlsx, the file with the results: Excel result vs. Aspose result.
Thanks,
Mihai
Hi,
Hi ,
We can fix most of the issues except about "Format".
Could you share us some codes about "Format" as you can implement it in your custom function?
We will check it soon.
Thank you.
Hello,
I’ve managed to make a small test on the solution you provided - it seems ok so far. I will get back to you next week if I encounter other problems with it. Thanks a lot.
Question: I presume this feature (Cell.SetFormula(string
formula, object value)) will be included from now on in all future releases, correct ?
Regarding your previous question, I don’t understand it clearly - if you are relating to .NET code, I cannot share existing code, since it is not my intellectual property…
Thanks again.
Hi,
Hi,
After closely looking into your template file, we have a solution to calculate Function Cell ("format",).
But we could not find the way to calculate the format "d/d$/yyyy" as "C13" in the cell "C85".
Could you share some comments about it ?
Hello,
I’ve found a small issue with Cell.SetFormula(string formula, object value): when value is String.Empty, after calling this function, Cell.Formula evaluates to null and Cell.IsFormula to false.
For the cell(“format”) option, I’ve reattached the CELL.xlsx test file, with 2 more columns: Differences and Notes. Indeed, for format option, CELL function seems to be implemented in Excel different than what the format says ! The conclusions I’ve reached to are present in the Notes column.
Thanks.
Hi,
We have calculated most of formulas in your template file as MS Excel except the cell “C85”.
a) It seems MS Excel will calculate Fraction number format in CELL function as “G”. We will work as MS Excel now .
b) Cell “C132”:
MS Excel is right.
The number format of “B132” is #",000,000". The actual number format is #, others part of the format is just simple appended string. So there is no group symbol.
c) Cell “C107”, “C143”:
We think the result of Ms Excel is right.
Only if there is () in positive number format (before semicolon) of the number format, () will be appended to the end in calculating CELL function.
Hi,
Please try the attached fixed version v7.0.3.3.
a) We have fixed the issue of setting formulas.
b) We have calculated most of formulas in your template file as MS Excel except the cell "C85".
Hello,
I’ve tried the attached version, it seems ok.
Thanks.
The issues you have found earlier (filed as CELLSNET-40112) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by aspose.notifier.