Search found 34 matches

by odisej
Fri Oct 25, 2013 9:53 am
Forum: XLSReadWritwII 6
Topic: User functions
Replies: 21
Views: 6961

Re: User functions

shayanjameel08 wrote:User functions are public static (Public Shared in VB.NET) methods that should always return a value and can take an arbitrary number of input parameters.
I'm not sure how is this related to my question.
by odisej
Wed Oct 23, 2013 10:55 am
Forum: XLSReadWritwII 6
Topic: User functions
Replies: 21
Views: 6961

Re: User functions

Do I have any option to open those old xls files right now and user functions will work or I need to wait for new version. If later, when you think that will be available?

Thanks
by odisej
Mon Oct 21, 2013 12:38 pm
Forum: XLSReadWritwII 6
Topic: User functions
Replies: 21
Views: 6961

Re: User functions

We will only open this (old xls) files and save them in new format (xlsx). That is allowed, right?
by odisej
Fri Oct 18, 2013 12:42 pm
Forum: XLSReadWritwII 6
Topic: User functions
Replies: 21
Views: 6961

Re: User functions

I can confirm that. The question now is, will tat stay this way or will I be able to use user functions in Excel 97 files as well? We have existing files that were handled by some other component and now we would like to move to your component. We can not open all files and change format as those fi...
by odisej
Fri Oct 18, 2013 10:34 am
Forum: XLSReadWritwII 6
Topic: User functions
Replies: 21
Views: 6961

Re: User functions

Could you please look at this issue. I can't move forward.

Thanks

Grega
by odisej
Tue Oct 15, 2013 6:38 am
Forum: XLSReadWritwII 6
Topic: User functions
Replies: 21
Views: 6961

Re: User functions

I added but...

Looking at TXLSFormulaEvaluator.DoEvaluate, Sum function goes to xptg_EXCEL_97, FStack.Push, then to xptgFuncVar97 where DoFunction is called.
Same procedure for custom function goes to xptg_EXCEL_97, then to xptgInt97 where 8 is pushed to stack and finished.
by odisej
Mon Oct 14, 2013 1:34 pm
Forum: XLSReadWritwII 6
Topic: User functions
Replies: 21
Views: 6961

Re: User functions

I changed the demo this way: procedure TfrmMain.btnReadClick(Sender: TObject); begin XLS.Filename := edReadFilename.Text; XLS.Read; XLS[0].AsInteger[0,0] := 4; XLS[0].AsInteger[0,1] := 5; XLS[0].AsFormula[0,2] := 'SUM(A1:A2)'; XLS[0].AsFormula[0,3] := 'TEST_NUM_1ARG(8)'; end; When I press Calculate ...
by odisej
Mon Oct 14, 2013 6:36 am
Forum: XLSReadWritwII 6
Topic: User functions
Replies: 21
Views: 6961

Re: User functions

I've used now OnUserFunction event but I get access. I have =MYFUNC(1) in the cell. Debug: TXLSWorksheet.GetAsFormula at step Result := FOwner.Formulas.DecodeFormula(FCells,FIndex,Ptgs,Sz,False); I get access. Going deeper I get into DecodeFmla, there is a big case and first loop gets to xptg_EXCEL_...
by odisej
Thu Oct 10, 2013 11:21 am
Forum: XLSReadWritwII 6
Topic: User functions
Replies: 21
Views: 6961

Re: User functions

Is this working? I have Delphi XE and I have formula like =MyFormula(1) in the cell. When I click into the cell, I get exception. I also don't get any event for this assignment: XSS.XLS.OnFunction := MyFunction; When I call this and I debug, I step into this: procedure TXLSReadWriteII5.SetFunctionEv...
by odisej
Tue Oct 01, 2013 8:00 am
Forum: XLSReadWritwII 6
Topic: User functions
Replies: 21
Views: 6961

Re: User functions

Hi Lars

On the registered users download page it says I can download 5.20.01. Is that just the wrong text? I need XE version.
by odisej
Mon Sep 30, 2013 9:35 am
Forum: XLSReadWritwII 6
Topic: User functions
Replies: 21
Views: 6961

Re: User functions

Anything new on the subject?

Thanks
by odisej
Mon Sep 23, 2013 6:55 am
Forum: XLSReadWritwII 6
Topic: User functions
Replies: 21
Views: 6961

Re: User functions

larsa wrote:Hello

You don't have to define user functions. Just enter them in the formula. The OnFunction event is however never fired. Will fix that in the next update.
Do you have any idea when next update will be ready? I can miss some things and move on but I can miss those functions.
by odisej
Fri Sep 20, 2013 6:22 am
Forum: XLSSpreadSheet
Topic: Cut/Copy/Paste
Replies: 3
Views: 7647

Re: Cut/Copy/Paste

I need to execute cut/copy/paste programmatically.
by odisej
Thu Sep 19, 2013 12:15 pm
Forum: XLSSpreadSheet
Topic: Cut/Copy/Paste
Replies: 3
Views: 7647

Cut/Copy/Paste

Sorry for all the messages, but I must replace cxSpreadSheet with this spreadsheet and I report what I see.

I don't see any option for cut/copy/paste. Are those implemented already or will be available sometime in the future?

What about undo?

Grega
by odisej
Thu Sep 19, 2013 10:03 am
Forum: XLSReadWritwII 6
Topic: User functions
Replies: 21
Views: 6961

User functions

Hi As far as I can understand (I haven't checked this though) there was option in older xls to define user functions. I can see OnFunction event in new version but I can't find the place where this is executed or AddUserFunction which should be used to register user function. Is this still supprted ...