Board index » delphi » QR Labels and Delphi

QR Labels and Delphi

How can I get Delphi2.0(or 3.0) QuickReports to print a set of labels
that align to a standard label page, e.g. Avery label #8160?

The only way I can get this work currently is to use ReportSmith
...yuck!

Also, is the AutoSize property suppose to dynamically fit a field within
the label record? If so, it either doesn't work or I've messed up. e.g.
I'm forced to hard align the columns in the label position.  The labels
will always look as follows:

   John     Doe              
   ...

   Samantha Doe
   ...

   instead of

   John Doe
   ...

   Samantha Doe
   ...

 

Re:QR Labels and Delphi


Hi,
I can't help you with the labels problem, but to get the alignment
 you want there are two ways:
1)
Use a TQRExpr and set the expression as:

 WhateverTable.FirstName + ' ' + WhateverTable.LastName

2)
If you need the full name elsewhere in your app,
 then create a new field (FullName) in your table as a calculated type
 and specify in the OnCalcFields method as follows:

procedure TdmMyData.WhateverTableCalcFields(DataSet: TDataSet);
begin
   WhateverTableFullName.value := WhateverTableFirstName.value +
          ' ' + WhateverTableLastName.value;
end;

HTH
John

Quote
KGardeck wrote in message <3455FB00.1...@d2k.com>...
>How can I get Delphi2.0(or 3.0) QuickReports to print a set of labels
>that align to a standard label page, e.g. Avery label #8160?

>The only way I can get this work currently is to use ReportSmith
>...yuck!

>Also, is the AutoSize property suppose to dynamically fit a field within
>the label record? If so, it either doesn't work or I've messed up. e.g.
>I'm forced to hard align the columns in the label position.  The labels
>will always look as follows:

>   John     Doe
>   ...

>   Samantha Doe
>   ...

>   instead of

>   John Doe
>   ...

>   Samantha Doe
>   ...

Other Threads