Hi Przemek,

You could be right, but ...

1) This code is not really new, and I had in mind it was working when I tested 
it some month ago (99% sure) ...
2) The same call in visual Basic work fine on the same OLE object ...

I will continue to investigate, 

Friendly,

JF

-----Message d'origine-----
De : harbour-boun...@harbour-project.org 
[mailto:harbour-boun...@harbour-project.org] De la part de Przemyslaw Czerpak
Envoyé : mardi 1 décembre 2009 15:10
À : Harbour Project Main Developer List.
Objet : Re: RE: [Harbour] Problem in OLE implementation

On Tue, 01 Dec 2009, J. Lefebvre wrote:

Hi,

> Hummmm, not sure it is really related to a problem with ADORDD (see dos 
> error).
> I have exactly the same error trying to access Crystal report runtime XI.
>    Error occurred at: 01/12/2009, 14:26:32
>    Error description: (DOS Error -2147352567) OLE/3012  Argument error: 
> SETREPORTVARIABLEVALUE
>    Args:
>      [   1] = C   FADEVCUR
>      [   2] = C   True
> Stack Calls
> ===========
>    Called from:  => WIN_OLEAUTO:SETREPORTVARIABLEVALUE(0)
>    Called from: crwcole.prg => CRW:SETFORMULA(848)
> I checked documentation at least 1 million time, arguments I send to 
> "SetReportVariableValue" are ok.

All OLE errors have 'Argument error' in description so it does not
give you any valuable information.

> I suspect some argument type error in ole implementation.

I do not think so. At least the information you presented suggest that
it's not Harbour problem at all.

> Ole2TxtError() give DISP_E_EXCEPTION but I'm not sure it is related.

And this it the only one important information. This error is reported
by OLE object from Invoke() method and you should check in OLE object
documentation for the reasons why calling method:
   SETREPORTVARIABLEVALUE( "FADEVCUR", "True" )
generates above error. This happens outside Harbour code.

best regards,
Przemek
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to