Solved

Quickreport for not DB programs ?

Posted on 1998-03-08
7
378 Views
Last Modified: 2013-11-22
hello,

does anyone know if it is possible to use quickreport in non-database programs ?

I need to print to some listviews. Is there another way printing such lists.

thanx
0
Comment
Question by:mories
  • 3
  • 2
  • 2
7 Comments
 
LVL 2

Expert Comment

by:Waldek
ID: 1360257
You must use events onNeedData and BeforePrint. If You want example , tell
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1360258
Ho Mories,

Yep, Waldek is correct, but the problem is that QR always (not in D1, I believe) needs the BDE....(So you've to install this one too)  I think you can better use another component if you want to print non-database. Look at this one : (http://www.public.usit.net/bmenees) it 's offcourse freeware.

Regards, Zif.


0
 
LVL 1

Author Comment

by:mories
ID: 1360259
Waldek,
could you please give me an example ?

--

Zifnab ?

i cannot find the site you name (file not found)
0
Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

 
LVL 2

Expert Comment

by:Waldek
ID: 1360260
You must create a report with QRLabels for data from list.
Then on BeforePrint method You must set a global variable for counter and PrintReport variable true if list count > 0
Example
.. BeforePrint ...
begin
 Counter:=0;
 PrintReport:=List.Count > 0;
end;

Then in method onNeedData You must set a QRLabels caption with data
For example
.... NeedData ....
begin
 If counter < List.count then
  begin
   QRLabel1.Caption:=List.Items[counter]........
   Inc(counter)
   MoreData:=counter<=List.Count; // More data ?  
  end;
end;

Try this , if You want more explain , tell
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1360261
Mories,

Well, I know that Bill Menees stopped working in Delphi and that's why his component became freeware. So it can be that he stopped with his page too. Well, if you're interested, I still can send you the component. I've got it here.

So, if you want it, just send me how I can send it to you. Maybe the easiest way is it by email.

Regards, Zif.
0
 
LVL 1

Author Comment

by:mories
ID: 1360262
Waldek,

works really great thanx alot !!!

if you add an answer to this question i can assign the points to you...

thanx again..
0
 
LVL 2

Accepted Solution

by:
Waldek earned 100 total points
ID: 1360263
Thanks for points Mories
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

821 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