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:
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...
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...