In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Can an Xailer form contain an ActiveX form?

Xailer professional forum in English
Responder
Guest

Can an Xailer form contain an ActiveX form?

Mensaje por Guest »

Hi,
I have a third party component, which is embeddable in a form, in other environments, but am not able to get it working with Xailer, so far.
I ran the Import ActiveX menu, to generate a class. But cannot figure a way to embed it.
Is it possible that Xailer has no support for such embeddable controls?
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9447
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Can an Xailer form contain an ActiveX form?

Mensaje por ignacio »

DGauss escribió el lun, 01 abril 2013 19:22Hi,
I have a third party component, which is embeddable in a form, in other environments, but am not able to get it working with Xailer, so far.
I ran the Import ActiveX menu, to generate a class. But cannot figure a way to embed it.
Is it possible that Xailer has no support for such embeddable controls?

Do something like this:
METHOD FormInitialize( oSender ) CLASS TForm1
WITH OBJECT TMyOcx():New( ::oBevel1 )
:nAlign := alClient
:Create()
END WITH
RETURN Nil
Note that oBevel1 is an already created TBevel control on the form.
Regards,
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Guest

Can an Xailer form contain an ActiveX form?

Mensaje por Guest »

Negative. Previously, the initial code was this:
::oRep := TRoc():New( Self )
::oRep:Create()
::oRep:RepSetLicenseKey( "XXXX-XXXX-XXXX" )
::oRep:DesignMode := FALSE
::oRep:InWebRep := FALSE
::oRep:Standalone := TRUE
::oRep:Toolbar := TRUE
, and it was possible to access most of the methods. But the ocx component just didn't show up.
When the code is changed, according to suggestions, to
::oRep := TRoc():New( ::bvlReportWriter )
::oRep:nAlign := alClient
::oRep:Create()
::oRep:RepSetLicenseKey( "XXXX-XXXX-XXXX" )
::oRep:DesignMode := FALSE
::oRep:InWebRep := FALSE
::oRep:Standalone := TRUE
::oRep:Toolbar := TRUE
, there's an error message during the execution of the Create() method,
No exported method: GETNEWID
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9447
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Can an Xailer form contain an ActiveX form?

Mensaje por ignacio »

>>::oRep := TRoc():New( ::bvlReportWriter )
This seems to be incorrect. The parameter should be 'Self' or a control container. So:
::oRep := TRoc():New( Self )
Regards,
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Guest

Can an Xailer form contain an ActiveX form?

Mensaje por Guest »

Also, tried these 2, same result:
Local oRep
WITH OBJECT TRoc():New( ::bvlReportWriter )
:nAlign := alClient
:Create()

END WITH

********************************
oRep := TRoc():New( ::bvlReportWriter )
oRep:nAlign := alClient
oRep:Create()
oRep:RepSetLicenseKey( "XXXXX-XXXXX-XXXXX" )
oRep:DesignMode := FALSE
oRep:InWebRep := FALSE
oRep:Standalone := TRUE
oRep:Toolbar := TRUE
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9447
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Can an Xailer form contain an ActiveX form?

Mensaje por ignacio »

Please re-read my last message. TIA.
Regards
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Guest

Can an Xailer form contain an ActiveX form?

Mensaje por Guest »

ignacio wrote on Tue, 02 April 2013 14:33>>::oRep := TRoc():New( ::bvlReportWriter )
This seems to be incorrect. The parameter should be 'Self' or a control container. So:
::oRep := TRoc():New( Self )
Regards,
Ignacio,
I had responded to this message, prior to adding "Also, tried these 2, same result: Local oRep...", but it looks like it didn't go through. Will try to re-construct that response, here:
The original code used Self as the parameter. It worked as far as being able to access some of the OCX's methods and properties, but it didn't get embedded into the form.
Your example involved a TBevel control. I tried something similar with
oRep := TRoc():New( ::bvlReportWriter )
oRep:nAlign := alClient
oRep:Create()
(::bvlReportWriter is a TBevel control, embedded in the form).
, but it generates the GetNewID No exported method error.
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9447
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Can an Xailer form contain an ActiveX form?

Mensaje por ignacio »

Hello,
the 'b' instead of a 'o' on the parameter make me mistake. Sorry for that.
I hope you can send us a small sample to reproduce your bug. A demo version of your ActiveX will be also necessary.
Regards,
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Guest

Can an Xailer form contain an ActiveX form?

Mensaje por Guest »

Hi Ignacio,
I forwarded a sample to Jose Gimenez.
Thanks.
Regards,
DC
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Can an Xailer form contain an ActiveX form?

Mensaje por jfgimenez »

Dwayne,
> I forwarded a sample to Jose Gimenez.
Got it. I'll check it in a while.
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Guest

Can an Xailer form contain an ActiveX form?

Mensaje por Guest »

Jose/Ignacio,
Thanks, man. Working fine.
(Jose responded to my email with the following comments:
You have to instantiate the OCX from the OnInitialite form's event,
not from OnCreate one, since this last one is fired before any control is created.)
Responder