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 >>

TAdvOfficeImage
Printing

There is no direct printing support in TAdvOfficeImage,
Following sample code demonstrates how you can print an image:
uses
  printers;

procedure TForm1.Button1Click(Sender: TObject); begin
  printer.BeginDoc;
  advofficeimage1.Picture.Draw(printer.Canvas,rect(0,0,200,200));
  printer.EndDoc;
end;
2nd parameter determines the size & coordinates of the picture on paper.
PNG transparency is respected during all drawing.