Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3019

Re: Sub Report can't resolve relitave path

$
0
0

You need to update the subreport in code also, it won't propagate as it used to...

 

Search all report object for subreport and then use the same code as you do for the main report.

 

//set the crSections object to the current report's sections

CrystalDecisions.CrystalReports.Engine.Sections crSections = rpt.ReportDefinition.Sections;

int flcnt = 0;

bool SecureDB;

 

//loop through all the sections to find all the subreport objects

foreach (CrystalDecisions.CrystalReports.Engine.Section crSection in crSections)

{

    crReportObjects = crSection.ReportObjects;

    //loop through all the report objects to find all the subreports

    foreach (CrystalDecisions.CrystalReports.Engine.ReportObject crReportObject in crReportObjects)

    {

        if (crReportObject.Kind == ReportObjectKind.SubreportObject)

        {

            try

            {

 

Don


Viewing all articles
Browse latest Browse all 3019

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>