Hi Ryan,
Ah, that would be the easiest way to do what you are doing then and because there is no main report data linking is not required.
Did this work in a previous version of CR runtime?
To simplify, export the report that has 40 subreports and then start adding in CRD.
Also before adding try verify the database also and if you get some message box pop indicating the report has been updated it indicates some object or collection is not up to date...
Something else you may want to try is when you hit to 40 limit, save the report using the .SaveAs method, open it up again and then continue on. May give us a clue as to where and possibly why it's failing also.
private void btnSaveReportAs_Click(object sender, System.EventArgs e)
{
saveFileDialog.Filter = "Crystal Reports (*.rpt)|*.rpt";
if (DialogResult.OK == saveFileDialog.ShowDialog())
{
object saveFolder = System.IO.Path.GetDirectoryName(saveFileDialog.FileName);
string saveFileName = System.IO.Path.GetFileName(saveFileDialog.FileName);
if (!IsRpt)
{
rptClientDoc.SaveAs(saveFileName, ref saveFolder,
(int)CdReportClientDocumentSaveAsOptionsEnum.cdReportClientDocumentSaveAsOverwriteExisting);
}
else
{
try
{
rpt.SaveAs(saveFolder + "\\" + saveFileName, true);
}
catch (Exception ex)
{
btnSQLStatement.Text = "ERROR: " + ex.Message;
// SetLogonInfo_Click();
//return;
}
}
}
}
Don