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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CR prameter error in VB.Net

Status
Not open for further replies.

Parkaboy

MIS
Dec 2, 2002
22
US
Created a program to find, refresh, and printout crystal reports. Works great on reports WITHOUT parameters. Problem arises when I try to access a report with parameters field I receive the error at the bottom, using the code below.


code used:
Code:
            Dim Par As CrystalDecisions.Shared.ParameterValues
            Dim ParD As New CrystalDecisions.Shared.ParameterDiscreteValue()
            Par = crReportDocument.DataDefinition.ParameterFields.Item("postdate").CurrentValues
            '
            Debug.Print(crReportDocument.DataDefinition.ParameterFields(0).FormulaName.ToString)
            '
            ParD.Value = "2007-12-24"
            Par.Add(ParD)
            crReportDocument.DataDefinition.ParameterFields.Item("postdate").ApplyCurrentValues(Par)

Error received on ONLY the reports with parameter.


database DLL 'crdb_query.dll' could not be loaded.

Failed to load database information.
Details: The database DLL 'crdb_query.dll' could not be loaded.
Error in File C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\Test_P_R01-MXD835 {264E8DA9-E2CE-4C8B-B275-5FF3014B1599}.rpt:
Failed to load database information.

Any clues would be appreciated...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top