p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

pro_vb thread: Calling a Crystal Report from VB when the report uses a Crystal Query or a Coded Query


Message #1 by "Graham Meyerowitz" <mail@n...> on Mon, 23 Apr 2001 07:35:06 +1000
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
operation" .

What is the best way of including a query into VB code behind a Crystal
Report ?

Graham


  Return to Index