Use ole with crystal reports

69 views
Skip to first unread message

marcop...@gmail.com

unread,
Dec 22, 2025, 2:28:59 PM (2 days ago) Dec 22
to Harbour Users
Dear all, I am trying to migrate an application to Harbour that prints from Crystal Reports using OLE.
When trying to print, I always get the error message: REGDB_E_CLASSNOTREG. In xHarbour it works normally.

Here is the test code:

IF ( Ocrystal := win_oleCreateObject("Crystalruntime.Application.11") ) = NIL
    Alert("Erro ao utilizar formulario Boleto;do Crystal Report: "+win_oleErrorText(),,'14/8')
    return nil
ENDIF
   

Oreport := Ocrystal:Openreport("Boleto1.Rpt",1)  
*-*
*-*
Oreport:Printout(.F.)


Thanks to advance,
Reply all
Reply to author
Forward
0 new messages