LPTGrd / LPTBGrd- DbGrid Print Component
Submitted By:
Unknown
Rating:





(
Rate It)
Dear Delphi Developer ,
Here are the latest LPTGRD components before the InfoPower 3.0 release. several
changes
have been made since the last version.
The NoteA,
NoteB,
PageLabelPos
DatePos
DateLabel
PageLabel
properties have been removed.
You now have 6 positions to write a text:
PageHeaderLeft,
PageHeaderCenter,
PageHeaderRight,
PageFooterLeft,
PageFooter,Center,
PageFooterRight.
You can use the following pseudo-function calls for all of the six positions:
@DATE
@TIME
@NETWORKUSERNAME
@PAGE
Inserting one of these calls will insert the current value.
3 more published properties exist:
StartColumn,
LastColumn
FitToPage
They refer to visible columns of the grid. Having 12 columns you can set:
grd.StartColumn:=4;
grd.LastColumn:=10;
grd.Print;
If FitToPage is FALSE
the result will be the printout of columns 4 to 10 on either 1 or more pages
depending on the width of the columns. A preview screen shows you how
many columns fit to a page. Resizing the columns will restart calculations
on the requirered widths.
If FitToPage is TRUE
All the visible columns will be scaled to fit on a single page.
Further procedures are:
PrintAll; -all the columns are printed, without modifying the Start- and
LastColumnn values.
PrintCols(A,B);
has same effect than:
StartColumn:=A;
LastColumn:=B;
Print;
*******************************************************************************
Best regards,
Gerard