Antonio,
Thanks, but now the viewer object doesn't apper on the window.
The reports works ok to the printer but not to the screen.
Here is the code that should work ok.
DEFINE WINDOW oWnd TITLE cTitle
oCRViewer := ToleAuto():New("CrystalReports.ActiveXReportViewer" )
oCRViewer:EnableExportButton :=1
oCRViewer:EnableStopButton:= 1
oCRViewer:EnableNavigationControls:=1
oCRViewer:EnablePopupMenu:=0
oCRViewer:EnableCloseButton:=0
if lPcdata
oCRViewer:DisplayGroupTree:=0
oCRViewer:EnableDrillDown:=0
oCRViewer:EnableGroupTree:=0
endif
oCRViewer:ReportSource:= oReport
oCRViewer:ViewReport()
oCrViewer:Zoom:=75
oWnd:oClient := oCRViewer
ACTIVATE WINDOW oWnd MAXIMIZED ;
VALID (oReport:CancelPrinting(),oCrystal:CanClose() )