[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

cannot GetSQLQuery for report

Posted on 2003-12-08
5
Medium Priority
?
790 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

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

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. …
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

650 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