Solved

QReport using record files?

Posted on 2004-08-19
5
896 Views
Last Modified: 2010-04-05
I am using ".rec" files as the data files for my application (this is fine for my small project). However, I would like to use QReport to produce nicer looking reports. At present, I am hard-coding the output to the printer.

How can I get QReport to read my files?
Do I have to create a table?
My end-users may not have the database installed

I would appreciate any advice - thank you
0
Comment
Question by:newburn
5 Comments
 
LVL 30

Assisted Solution

by:third
third earned 30 total points
ID: 11847986
QReport allows you to save the generated report into Quick Report File (.qrp file) using the Save Report button (can be seen while in preview mode). you can later view this report by opening it using the load report button. my advice is, you create a stand-alone report viewer app so you can view reports offline  - no database needed.
0
 
LVL 27

Assisted Solution

by:kretzschmar
kretzschmar earned 40 total points
ID: 11850370
>How can I get QReport to read my files?
there is no need for qr to read the file

>Do I have to create a table?
no

all you need is the event OnNeedData of QReport to provide your data to the qr-controls

meikl ;-)
0
 
LVL 13

Accepted Solution

by:
BlackTigerX earned 55 total points
ID: 11852988
as long as you can load those ".rec" files into your program using whatever (TStringList, etc) you use to load those files, you can pass that data to the Quick Report using the OnNeedData event of the TQuickRep component, you can also use the OnPrint event of the QRLabels to assign values to all the QRlabels in  your report
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 11868388
any results?
0
 
LVL 12

Expert Comment

by:esoftbg
ID: 11871754
Another possible solution is by using TMemoryData component. You should define all the fields into MemoryData.
Then should read data from the record file and post it into the MemoryData ....
QuickReport works fine with MemoryData because it is a descendant of the TDataSet !

//........
Component:      TJvMemoryData
download from:
http://prdownloads.sourceforge.net/jvcl/JCL%2BJVCL210FullInstall.zip?download
or
http://sourceforge.net/projects/jvcl/
//........
Component:      TRxMemoryData
download from:
http://www.opm-2.com/download/download.asp?File=rx275d7.zip
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

757 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

16 Experts available now in Live!

Get 1:1 Help Now