Skip to Content
0
Former Member
Jan 22, 2009 at 01:07 PM

How to get select query for crystal report in c# code

1466 Views

In C#, (Visual Studio 2008 ) I need to use the native Crystal Reports objects to get the complete SQL statement as it appears when you view it in Crystal Reports.

In Crystal Reports 12.0, Go to "Database > Show SQL Query..." ... That is what I need to get via C# code. I can get bits and pieces of parameter info etc but I just want the whole SQL statement.

How to get this?