Information générale
Catégorie:
Gestionnaire de rapports & Rapports
Hiya EC,
1) Is the crViewer registered?
2) Is the crViewer in the path?
Just a thought...
Ric
>WHEN I RUN THE FOLLOWING CODE IN FORM INIT METHOD
>
>THIS.oCrystalReports = CREATEOBJECT('CrystalRuntime.Application')
>THIS.oReport = CREATEOBJECT('CrystalRuntime.Report')
>THIS.oReport = THIS.oCrystalReports.OpenReport('reports\balCodeWidth.rpt')
>THIS.addObject('oleCRViewer','oleControl','crViewer.crViewer')
>THIS.oleCRViewer.Top = 1
>THIS.oleCRViewer.Left = 1
>THIS.oleCRViewer.Height = THISFORM.Height - 2
>THIS.oleCRViewer.Width = THISFORM.Width - 2
>THIS.oleCRViewer.ReportSource = THISFORM.oReport
>THIS.oleCRViewer.ViewReport()
>
>
>System prompt me following error :
>
>OLE exception error: Exception code c0000005. OLE object may be corrup
>
>Why?
>
>TIA.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement