I am trying to export my reports directly to PDF because with RAS you can only view the reports in HTML format and to print they have to be exported first.
I am currently using the ReportClientDocument object and everything works just fine, I do need the ReportDocument object to set the export functionallity in my code.
and here I hit a brick wall I am using Dot.Net 2003, CR10, CE 10 Embedded(RAS) and SQL2000 the database is set with windows integrated security.
what I don't understand is why ReportClientDocument has no issues about login and ReportDocument has.
Here is a code sample
when i try to view the report I get
"Unknown Query Engine Error".
I have the export code option ready but that fails too.
I am pretty sure it has to do with the fact that I have changed the 2 objects around but all my research has been fruitless so far.
I would really appreciate your help on this one.
Thank you in advance
Mo
I am currently using the ReportClientDocument object and everything works just fine, I do need the ReportDocument object to set the export functionallity in my code.
and here I hit a brick wall I am using Dot.Net 2003, CR10, CE 10 Embedded(RAS) and SQL2000 the database is set with windows integrated security.
what I don't understand is why ReportClientDocument has no issues about login and ReportDocument has.
Here is a code sample
Code:
ReportName = "C:\Crystal Reports\AnalysisReports\" & Request.Params("@ReportName").ToString
rptClientDoc.Load(ReportName, OpenReportMethod.OpenReportByTempCopy)
For i = 0 To rptClientDoc.ParameterFields.Count() - 1
ParameterName = rptClientDoc.ParameterFields(i).Name
myParameterFieldDefinition = rptClientDoc.DataDefinition.ParameterFields.Item(ParameterName)
Value = Request.Params(rptClientDoc.ParameterFields(i).Name).ToString
ParamValue = New ParameterFieldDiscreteValue
ParamValue.Value = Value
'rptClientDoc.SetParameterValue(ParameterName, ParamValue.Value)
rptClientDoc.DataDefinition.ParameterFields(ParameterName).ApplyCurrentValues(ParamValue.Value)
Next
rptClientDoc.SetDatabaseLogon("User", "PWD", "SRV", "DB")
Crystalreportviewer1.DisplayGroupTree = False
Crystalreportviewer1.HasCrystalLogo = False
Crystalreportviewer1.ReportSource = rptClientDoc
when i try to view the report I get
"Unknown Query Engine Error".
I have the export code option ready but that fails too.
I am pretty sure it has to do with the fact that I have changed the 2 objects around but all my research has been fruitless so far.
I would really appreciate your help on this one.
Thank you in advance
Mo