Trouble embedding Crystal Reports viewer as ActiveX component

Robin Dunn wrote:

This might not give you the level of control and interaction you need, but you could try embedding it in a HTML doc that is loaded in an ActiveX IE window. Otherwise I think that #2 should be possible, but I'm afraid that I don't know enough about Crystal Reports or MFC to be of much help.

I think the reason why the crystal reports active x component might be failing is because it is not being found. The CLSID string as it comes from VB is {FB992564-9055-42B5-B433-FEA84CEA93C4}#11.0#0. I've noticed that wx.activex.CLSID accepts a string, but this string doesn't like the hashes and whatever information comes after.

So I tried to replace the number with all zeroes, and wx.activex.CLSID hapilly returns an object, just later the same assertion is raised. I'm guessing that just with the part between brackets the ActiveXWindow might not be finding the control. In the code I didn't post, based on the old ActiveXWrapper, I have to call gencache manually, which looks like:

CR_module = gencache.EnsureModule(CR_MODULE, 0, 11, 0)
if CR_module is None:
  raise ImportError, "Crystal Reports not installed"

If I replace the numbers with something else CR_module will be None.

Is this supposition right? I mean, even the genaxmodule is unable to read the control's methods because the object cannot be instantiated. I wonder if that is failing because there's no way to pass the version number? If so, is there a way to specify the version somewhere for the activex control?

···

--
     Rastertech España S.A.
  Grzegorz Adam Hankiewicz
/Jefe de Producto TeraVial/

C/ Perfumería 21. Nave I. Polígono industrial La Mina
28770 Colmenar Viejo. Madrid (España)
Tel. +34 918 467 390 (Ext.18) *·* Fax +34 918 457 889
ghankiewicz@rastertech.es *·* www.rastertech.es
<http://www.rastertech.es/&gt;