Solved

QReport using record files?

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

Want Experts Exchange at your fingertips?

With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!

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…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Suggested Courses
Course of the Month11 days, 12 hours left to enroll

623 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