Solved

cannot GetSQLQuery for report

Posted on 2003-12-08
5
772 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
  • 2
5 Comments
 
LVL 100

Expert Comment

by:mlmcc
Comment Utility
What code are you using to display the report?

mlmcc
0
 

Author Comment

by:truedev-pk
Comment Utility
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
Comment Utility
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
Comment Utility
PAQed, with points refunded (50)

modulo
Community Support Moderator
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now