Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CRAXDRT.DLL caused an invalid page fault

Status
Not open for further replies.

msay

Programmer
Aug 17, 2001
56
US
Using VB6, I add a Crystal Reports 7 report to the project. I insert a chart, attach a data source. When I run the report I get the following error:
CRAXDRT.DLL caused an invalid page fault
I can can create the same report in Crystal Reports 32-Report Designer and it works fine.
I have the problem only when created in VB6. Thanks for any help!
Mike S.
 
The easirst thing to do if you want to display a Cryatal Report in your program is to add the Crystal Report Control to the components list, create a stand-alone report, then call it like this in code. If you create your report with an Active Data datasource then you can pass it a recordset.
Code:
strReport = "\MyReport.rpt"
CrystalReport1.ReportFileName = App.Path & strReport
Me.MousePointer = vbHourglass
With CrystalReport1
    .WindowTitle = "My Report"
    .Destination = crptToWindow
    .Action = 1
End With
Me.MousePointer = vbDefault
If you want to use the RDC it gets much more complicated.
 
Hello,

I am creating VB 6 application which uses MS Access as backend data base. This application will create bunch of reports, and some of these reports require line charts. As far as I know I can use MsCharts on Forums but I can not intergrate it into DataReports. I have used ChartFX and Crystal reports in the past, I was wondering if there is any cheaper method to creating charts in datareport. Does VB have any controls I can create charts in?

Thanks,

Roj
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top