Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

quick report problem

Status
Not open for further replies.

kyriakos70

Programmer
Jul 24, 2008
87
GR
Hello,
I have a multitier application in Delphi with database sql server express and connection socket connection, I use ado connection dataset and queries, my problem is when I run a query (to search through records) in a master detail table when I try to preview with the quick report the filtered records it returns me the right records but not the right number of pages eg. if there are 3 records in the detail and the query returns 1 the preview shows the 1 record but 3 times (3 pages), I tried to refresh the dataset on preview but nothing.

Thank you
Kyriakos
 
how have you created your report, using a databand or just a few fields on the page?

Aaron
 
I've had that problem on some reports, others work just fine. I've never figured out why. Here's the solution I've used to solve it:
Code:
  NdeTable.SetRange([Report], [Report]);
  NdeTable.ApplyRange;
  NdeReport.QuickRep.Print;
  NdeTable.CancelRange;

Roo
Delphi Rules!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top