peruzzi
asked on
Problem with making Qreport ?
Hi Guys
I will explain my project then you will tell me where is the problem :
I have a form ( form1) with two Tmemo components and some of Tedit components
The other form ( form2 ) has : Tquickrep
I put on it QRBand1(property bandtype=rbPageHeader) , QRBand1 has two Tqrimage . ( no problem with QRBand1 )
Then I put QRBand2 (property bandtype=rbdetail ) , QRBand2 has two TQRmemo
One for memo1 and the other for memo2 ( in form1 )
With some qrlabels get the same values of edits in form1
THE PROBLEM : when I write in memos and edits (on form1) then call the instruction (form2.qreport1.Preview; ) , I show what I wrote on edits and memos
But if the information is too long ( and here is the problem ) the qreport don't open new pages for it and information is cut at the bottom of first page .
This is my problem , I hope you find the solution and explain it for beginner with QREPORTS .
THANKS .
I will explain my project then you will tell me where is the problem :
I have a form ( form1) with two Tmemo components and some of Tedit components
The other form ( form2 ) has : Tquickrep
I put on it QRBand1(property bandtype=rbPageHeader) , QRBand1 has two Tqrimage . ( no problem with QRBand1 )
Then I put QRBand2 (property bandtype=rbdetail ) , QRBand2 has two TQRmemo
One for memo1 and the other for memo2 ( in form1 )
With some qrlabels get the same values of edits in form1
THE PROBLEM : when I write in memos and edits (on form1) then call the instruction (form2.qreport1.Preview; ) , I show what I wrote on edits and memos
But if the information is too long ( and here is the problem ) the qreport don't open new pages for it and information is cut at the bottom of first page .
This is my problem , I hope you find the solution and explain it for beginner with QREPORTS .
THANKS .
It is also the problem with qrmemo.
Try something like this
Put QRStringsband1 and QRExpr1 on it.
Then Edit property Expression of QRExpr and choose variable QRSTRINGBAND1.
You should also set Items of QRStringsband
Hope this helps
Try something like this
Put QRStringsband1 and QRExpr1 on it.
Then Edit property Expression of QRExpr and choose variable QRSTRINGBAND1.
You should also set Items of QRStringsband
Hope this helps
ASKER
Hi
makule, nothing changed
I wish you explain more
what I have to do with QRSTRINGBAND1.items
thanks
makule, nothing changed
I wish you explain more
what I have to do with QRSTRINGBAND1.items
thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
When you create your TQRMemo, you set a height and a width on your component. A component cannot be splitted on different pages of a QuickReport. So when your text is larger then your component, you text doesn't appear on the QR.
You should assign you TMemo.Lines[x] manually. So when you'll hit the end a the page...You'll be able to generate a new page and continue the display of your Memo!
You should assign you TMemo.Lines[x] manually. So when you'll hit the end a the page...You'll be able to generate a new page and continue the display of your Memo!
Somethign that will probably help is :
Add a TClientdataset
Define the fileds you want in it
in your code :
createdataset
Fill the fields/records with data
then use this Clientdataset as datasource for your Quickreport
grt
Ed
Add a TClientdataset
Define the fileds you want in it
in your code :
createdataset
Fill the fields/records with data
then use this Clientdataset as datasource for your Quickreport
grt
Ed
ASKER
Hi guz....
makule , thanks for your good example
now , I understand well, but I want to put some qrlabel components between the two qrstringbands
how can I do that ?
I am waining
peruzzi
makule , thanks for your good example
now , I understand well, but I want to put some qrlabel components between the two qrstringbands
how can I do that ?
I am waining
peruzzi
Put another qrstringband, and qrlabel on it
ASKER
Hi
Mokule , thanks for your help ,now every thing go well
thanks again
and thanks for all who try to answer this question
peruzzi
Mokule , thanks for your help ,now every thing go well
thanks again
and thanks for all who try to answer this question
peruzzi
PageHeader cannot be longer then page it can't be realized.
Change bandtype