?
Solved

cannot GetSQLQuery for report

Posted on 2003-12-08
5
Medium Priority
?
789 Views
Last Modified: 2012-06-21
I'm using Crystal Reports 8.0 for my reports with SQL Server 2000 (stored procedures) and integrating those reports with VB 6.0, the working environment is Win 2K.

when I try to run my reports through VB Application, some reports generate following error.

"cannot GetSQLQuery for report"

unable to figure it out that what to do?

plz help, it's a bit urgent, as my reports are ready but don't work from the client application.

Thanx,
Kashif.
0
Comment
Question by:truedev-pk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 101

Expert Comment

by:mlmcc
ID: 9904030
What code are you using to display the report?

mlmcc
0
 

Author Comment

by:truedev-pk
ID: 9911556
I'm using the following API that returns false in case of error

PEGetSQLQuery

The full declaration goes as follows.

Declare Function PEGetSQLQuery Lib "crpe32.dll" (ByVal printJob%, textHandle As Long, textLength%) As Integer

Kashif.
0
 

Author Comment

by:truedev-pk
ID: 9911695
ok thanx mlmcc for taking interest in my question.

i managed to solve it myself. actually I was using an earlier version of crpe32.dll which was making problems, I simpley replaced it with a newer version (the same which I used to develop the Crystal Reports), and it worked for me :)

As a matter of fact there were two different versions of crpe32.dll existing  on my development and deployment servers which needed to be made the same. So, I had to copy the DLL from the Development Server and pasted it on the Deployment Server, simple.

Thanx again,

Kashif.
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 11868193
PAQed, with points refunded (50)

modulo
Community Support Moderator
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question