Hi guys,
I've got a vb app that opens up a crystal report using RDC (crystal 7). I want to get the initial sql statement that the report is built on, modify it, and then run the report using my modified statement. So, I've done the following:
Dim crReport As CRAXDRT.Report
Set crReport = crApplication.OpenReport("c:\program files\seagate\crystal reports\reports\xtreme\empprof.rpt"
'Export the crystal report to a html file
With crReport
Dim strQuery As String
strQuery = .SQLQueryString
etc
However, .SQLQueryString is always empty. Is this a known bug in Crystal 7 or am I just looking in the wrong place? Surely there must be a way I can find the sql query that my report is built on?
Cheers
Andrew
I've got a vb app that opens up a crystal report using RDC (crystal 7). I want to get the initial sql statement that the report is built on, modify it, and then run the report using my modified statement. So, I've done the following:
Dim crReport As CRAXDRT.Report
Set crReport = crApplication.OpenReport("c:\program files\seagate\crystal reports\reports\xtreme\empprof.rpt"
'Export the crystal report to a html file
With crReport
Dim strQuery As String
strQuery = .SQLQueryString
etc
However, .SQLQueryString is always empty. Is this a known bug in Crystal 7 or am I just looking in the wrong place? Surely there must be a way I can find the sql query that my report is built on?
Cheers
Andrew