Frequently Asked Component Specific Questions

Options

Display all FAQ items

Search FAQ items:


Displaying items 1 to 1 of 1, page 1 of 1

<< previous next >>

TAdvStringGrid
Printing tips

How to print colored, bold, italic, ... text:

Assign your OnGetCellColor event handler also to grid.OnGetCellPrintColor()

How to print images, a company logo, ...:

Set grid.PrintSettings.PrintGraphics = true

How to print a particular row in bold:

You can do this via the event OnGetCellPrintColor, for example:
procedure TForm2.AdvStringGrid1GetCellPrintColor(Sender: TObject; ARow,
  ACol: Integer; AState: TGridDrawState; ABrush: TBrush; AFont: TFont); begin
  if arow = 7 then
    afont.Style := [fsBold]
  else
    afont.Style := [];
end;
How to print multiple grids on a page:

Please see sample 25: https://www.tmssoftware.com/site/asg25.asp