Within the Crystal Reports APIs that come standard with Visual Studios, is there any way to extract a file path from a report existing on a Business Objects Enterprise server? We create a ReportDocument object and load it using an InfoStore and an EnterpriseSession. We're looking for a way to programatically extract the file path name so we can use it for metadata in our extraction process. Also, we tried using the FileName property in the ReportDocument class, but it just returns a report CUID.
If we can't figure out a way to do this, we will just do this programatically through a recursive function, but I would definitely prefer to find a property that has this stored.
FYI, this is how we came up with a solution for the problem.
All we use is a
StringBuilder
and anInfoObject
query that looks like the following:After, we call our recursive method and execute the following code:
Where
rptInfo
is anInfoObject
andpathName
is aStringBuilder
.