a question about QuicReport

i have a data table,it only has one
field ,the field name is 'A1'. now i want to print all data in this table in  QuickReport . In the report i need two colunms,the first column print 'A1' and the other column print column 'A1' too. For example the first column print record 1--20,the other column print record 21--40. who can tell me how to do this? thank you very much in advance.  
LVL 1
zhangyunchaoAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

kretzschmarCommented:
hi zhangyunchao,

in quickrep1 (TQuickRep) change the property page->columns to 2. drop a detailband on the left side, place your field in the detailband. ready.
(i do so that the database-entries are already done)

meikl
0
zhangyunchaoAuthor Commented:
i will test it after a while thank you!
0
kretzschmarCommented:
well ok, zhangyunchao, no problem,

one appendix, as i suggest, the report prints first the left side down on one page until page-end and then the right side.

if you will force a coloumn-change after a specific count you can use the beforeprint-event where you increase a record counter and if a specific value is reached, you can call the newcolumn-method. in code it looks like

procedure TForm1.QRBand1BeforePrint(Sender: TQRCustomBand;
  var PrintBand: Boolean);
begin
  Inc(count);
  if Count = 20 then
  begin
    quickrep1.NewColumn;
    count := 1;
  end;
end;

meikl
0
zhangyunchaoAuthor Commented:
yes that's ok!
please answer it and i can add points to you. thank you.
0
kretzschmarCommented:
hi zhangyunchao,

glad to helped you
good luck again

meikl ;-)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.