Getting error "Invalid report file path" when setting OpenSubreport property. Path is correct. Other reports open up fine. Is there a better way to set this property?
oReportFile.Load(sRptFilename)
RptFormulaFieldDefinitions = oReportFile.DataDefinition.FormulaFields
oReportFile.SetDataSource(ReportData)
frmReportViewer.CRViewer.ReportSource = oReportFile
If sRptFileCopy <> "" Then
oReportFileCopy.Load(sRptFileCopy)
RptFormulaFieldDefinitionsCopy = oReportFileCopy.DataDefinition.FormulaFields
End If
oReportFileSub.OpenSubreport(sSubReportPath) c:\reports\Feeticket.rpt
oReportFileSub.SetDataSource(ReportDataSub)
Request clarification before answering.
See my Parameter sample app, it has code on how to open subreports:
And upgrade to SP 30:
https://wiki.scn.sap.com/wiki/display/BOBJ/Crystal+Reports%2C+Developer+for+Visual+Studio+Downloads
To help with your upgrade:
Don
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is the subreport already embedded in the main report? If so you need to open the subreport based on its name in the main report - not based on the file name of the report you imported.
-Dell
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.