General information
Category:
Reports & Report designer
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.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only