PrevNext
EhLib
User's guide

 Using TPrintDBGridEh component

Select TPrintDBGridEh in Delphi IDE component palette and drop it on form. Select TDBGridEh component in DBGridEh property. Use Print and Preview routines to print grid on printer or to preview grid in preview form.

Rich text before and after grid

TPrintDBGridEh allows to print/preview rich text before and after grid. Use AfterGridText and BeforeGridText to specify text. Using SetSubstitutes method you can substitute text in BeforeGridText and AfterGridText properties upon print/preview process.

Features that current version of TPrintDBGridEh is not supported.

This version of TPrintDBGridEh does not support next features:
    TPrintDBGridEh can not print/preview several grids on one page.

FAQ List:

Q: How to print/preview grid on page in landscape orientation.

A: TPrintDBGridEh have not special properties to set page oreintation. Before call Print or Preview routines you have to set orientation of virtual printer on which you will send printing stuff.

uses ......, PrViewEh, Printers.
..............
procedure TForm1.bPreviewClick(Sender: TObject);
begin
  PrinterPreview.Orientation := poLandscape;
  PrintDBGridEh1.Preview;
end;

EhLib Team
E-mail: support@ehlib.com