Support Center

Delphi 7 and FindFax

Donald Adams Dec 11, 2012 10:59AM EST

Delphi 7, Active X
--------------------

I get the following error when I try the code below.

'Incompatiable types, IDispatch and IFaxItem'

I tried to use the VB sample as a guide but without success. I have hard coded the Fax ID for now so I can test. What is the proper syntax to get FaxItem for Delphi?

--------------------

procedure TMainForm.FindAndReadLogEntry ;
var PathFaxItem : FaxItem ;
begin
PathFaxItem := FaxMan.FindFax(48) ;
end ;

--------------------

1 Data Techniques Response

Up 3 Rated Down
DTI Support  Data Techniques Employee Dec 11, 2012 11:10AM EST

Hi Donald,

The FindFax method is returning an IDispatch to the FaxItem object. In Delphi I'm not sure what the syntax is in Delphi for accessing the object. I'm looking now and will post what I find but perhaps this will help provide a clue to you.

John

This question is closed to new answers.

Contact Us