Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why double entries?

Status
Not open for further replies.

yomyom

Programmer
Dec 23, 2002
119
GB
I droped a QRMemo on a details band in a QuicRep (quick report component). I linked the qrmemo to lines.loadfromfile('xyz.txt') when I preview via code, the quickrep1 loads the txt file data twice or some times 4 times.
Does anyone know what is going on? How do I restrict it to just one copy of my text file.

When I tried using qr2 to load the contents of a query with calc fields, it gave abnormal results.

How do I make QR (Quick report) behave itsself?
yom yom.
 
Sorry I cannot understand what you said,
whould you like to describe it more clearly or detailedly?
 
Wyjkmsc Hi,
Better explanation.
The QRMemo component of the quick report (2.0) behaves strangely.
When I load text files in to the qrmemo component at run-time, it loads 2, 3 or 4 copies of the same text file into the memo.
I wonder how I can prevent this.
To load the text file and preview the report at run-time I use the following code:
TForm1.Button1.Click(sender: object)
var filename: string;
begin
filename := 'c:\xyz.txt';
qrmemo1.lines.loadfromfile(filename);
quickrep1.preview;
end;

Even when the text file has just 1 line of code, the qrmemo displays the same line 4 times .

How do I make the qrmemo and QuickReport display just one copy of my text file?
Your help would be greatly appreciated.
yom yom.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top