pro_vb thread: Calling a Crystal Report from VB when the report uses a Crystal Query or a Coded Query
I am having difficulty with the following query.
I am trying to include this query in a Crystal Report and call the report
from VB code.
The only way it seems to work in Crystal is when I insert the SQL statement
into a Crystal Query , saved as a Query file, and use the Query in a Crystal
Report. However, this combination is not working when I deploy the VB code
which calls the Query. The Query File location is hard coded with the Query
and needs the same folder structure on the deployment machine.
When running this I get the error "This program has performed an Illegal
What is the best way of including a query into VB code behind a Crystal