... .t. return .t. endif Luego en mis funciones de guardar, cerrar fichero, etc. hago la comprobación de que el objeto da error: local omm := oexcel:CommandBars('Worksheet Menu Bar') if uerrorex = .t. MsgAlert('Para guardar o cerrar el libro salga antes del modo edicción') uerrorex := .f. return ...
... valtype(oexcel) devuelve 'O', pero valtype(oexcel:ActiveWorkBook) devuelve el mismo error si está en modo edición. Si pudiera acceder a: oexcel:CommandBars('Worksheet Menu Bar'):Controls('Archivo'):Controls('Nuevo...'):Enabled() podría detectarlo, puesto que el menu de Archivo->Nuevo se deshabilita ...
http://img245.imageshack.us/img245/9629/erroy.jpg if i use en class TActiveX():new(ownd,"codejock.CommandBars.13.0.0") the same erro. in class TactiveX need to be codejock.commandbarsframe.13.0.0 and in class OleWevent need to be codejock.commandbars.13.0.0 ...
el tema es que esto no funciona:: if ! IsActiveX( "Codejock.CommandBars.v13.0.0.Demo.ocx" ) RegisterServer( "Codejock.CommandBars.v13.0.0.Demo.ocx" ) endif tampoco esto:: WinExec( "REGSVR32 " + cDestino + " /s" ) como ...
... is initialised. I don't know how to do that using FWH. It appears that the problem I'm having is that you can't access the public members of CommandBars until after the control is fully initialized. Trying to access them before full initialization throws an error. However, when you finalize ...
... IsActivex() is working now as expected. I found out my mistake The Parameter to IsActivex which I used was wrong IsActivex("Codejock.CommandBars.v12.1.1.ocx") // wrong one The parameter should be IsActivex("Codejock.CommandBars.12.1.1") or you can use the class id of ...
You can distributed for users files Codejock.CommandBars.v12.1.1.ocx and Codejock.CommandBars.v12.1.1.lic. Hi Mr.Natter, If we distribute the license key file (that too in a plain text Ascii file), then if somebody has access to the license key ...