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
Solved

QReport using record files?

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi procedure  - Unsatisfied forward or external declaration. 2 183
Performance of SQL statement 37 127
control image tags in a string ? 12 141
Dynamically Created Query 3 62
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…
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…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

809 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