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
How to use Print Suite components?
The using of Print Suite Component as simple as 1-2-3!

<1>
Drop TPrintJob component onto your form, set the needed page count using the PageCount property and draw your graphics for each page in the OnDraw event. The example code below draws the centered page index on each page.

procedure TfrmMain.psjSimplestDraw(Sender: TObject; TheCanvas: TCanvas;
  PageIndex: Integer; Rect: TRect; Area: TDrawArea; Target: TDrawTarget);
var
  S: string;
begin
  if Area=daPage then
    with Rect,TheCanvas,Font do
    begin
      // setting font properties
      Name:='Arial';
      Size:=200;
      Style:=[fsBold];
      // drawing text
      S:=IntToStr(PageIndex);
      TextOut(
        (Left+Right-TextWidth(S)) div 2,
        (Top+Bottom-TextHeight(S)) div 2,
        S);
    end;
end;
<2>
Drop TPreview component onto your form and connect it to your print job using the PrintJob property. Drop TPreviewToolbar and TPreviewStatusBar and link them with TPreview component using the Preview property if you want to control your preview with easy.

<3>
Call the PrintDialog, Print or PrintEx method of TPrintJob component to print your graphics. The Title property contains the print job title that is displayed in the Windows' print job list.


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