Delphi/CB
•  Greatis •  Security •  AppDatabase •  Utilities •  Visual Basic • .NET •  just4fun
Delphi / C++ Builder
Components, utilities and tips for Delphi and C++ Builder developers
More info
Print Suite FAQ
Print Suite Home
Delphi Components
See also
Products
Form Designer
Object Inspector
Runtime Fusion
Commented Image
Image Editor  new!
Delphi Toys
Ultimate Pack  hot!

FAQs
Form Designer FAQ
Object Inspector FAQ
Image Editor FAQ

Links
Software for .NET
Software for VB 6
Delphi Tips & Tricks

Services
Outsourcing
Page areas
TPrintJob component supports the header and footer areas. To use this feature just turn on the joHeader and joFooter flags in the Options property, set the measurement units for the header and footer using the HeaderUnits and FooterUnits propertis, set the size of the header and footer using the HeaderSize and FooterSize properties and draw the header and footer contents in the OnDraw event. The follow code just fills the header, footer and page areas by the different colors.
procedure TfrmMain.psjAreasDraw(Sender: TObject; TheCanvas: TCanvas;
  PageIndex: Integer; Rect: TRect; Area: TDrawArea;
  Target: TDrawTarget);
begin
  with TheCanvas,Font,Rect do
  begin
    with Brush do
      case Area of
        daHeader: Color:=$CCFFCC;
        daPage: Color:=$CCCCFF;
        daFooter: Color:=$FFCCCC;
      end;
    FillRect(Rect);
  end;
end;
The page area (daPage) always is drawn.

Greatis Software Greatis | Security | AppDatabase | Utilities | Delphi/CB | Visual Basic | .NET | just4fun

Contacts | Add to Favorites | Recommend to a Friend | Privacy Policy | Copyright © 1998-2008 Greatis Software