?
Solved

Quickreport for not DB programs ?

Posted on 1998-03-08
7
Medium Priority
?
382 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
[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
  • 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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 400 total points
ID: 1360263
Thanks for points Mories
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
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…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

718 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