Solved

QReport using record files?

Posted on 2004-08-19
5
905 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
[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
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
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…

734 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