VoyForums
[ Show ]
Support VoyForums
[ Shrink ]
VoyForums Announcement: Programming and providing support for this service has been a labor of love since 1997. We are one of the few services online who values our users' privacy, and have never sold your information. We have even fought hard to defend your privacy in legal cases; however, we've done it with almost no financial support -- paying out of pocket to continue providing the service. Due to the issues imposed on us by advertisers, we also stopped hosting most ads on the forums many years ago. We hope you appreciate our efforts.

Show your support by donating any amount. (Note: We are still technically a for-profit company, so your contribution is not tax-deductible.) PayPal Acct: Feedback:

Donate to VoyForums (PayPal):

Login ] [ Contact Forum Admin ] [ Main index ] [ Post a new message ] [ Search | Check update time | Archives: 12345678[9]10 ]


[ Next Thread | Previous Thread | Next Message | Previous Message ]

Date Posted: 17:38:52 08/10/00 Thu
Author: Michel
Subject: Re: Printing Headers/Footers
In reply to: Bob Villiers 's message, "Printing Headers/Footers" on 16:21:59 08/10/00 Thu



Hi Bob,

You can print text on a page by using the Printer.Canvas object. For example,
this is taken from the latest DemoForm.Pas example file:

{ if UsePrintJob is False, Printer.BeginDoc and Printer.EndDoc must be called by the user. This allows
printing multiple images in the same job (or page). }

GraphicPrinter.UsePrintJob := False;

{ if UsePrintJob is False, the print job name that appears
in the print manager must be specified in using the Title
property of the Printer object. Otherwise, if UsePrintJob is
True, the Title property of the TDibGraphicPrinter object is
used to specify the job name. }
Printer.Title := 'Envision Demo';

Printer.BeginDoc;

GraphicPrinter.Print(ImageScrollBox.Graphic);

{ this shows how to print text on a page.}
Printer.Canvas.TextOut(10,10, 'Envision Image Library');

Printer.EndDoc;

Canvas.TextOut prints text directly on the printer. You may need to use GetPrinterMetrics
if you want to position the text at a precise position on the page.

Best regards,

Michel

> I have been asked to provide a title, preferably as a
> header or footer, to a printed image. I would be
> grateful for some guidance.
>
> TIA,
>
> Bob

[ Next Thread | Previous Thread | Next Message | Previous Message ]


Replies:


[ Contact Forum Admin ]


Forum timezone: GMT-5
VF Version: 3.00b, ConfDB:
Before posting please read our privacy policy.
VoyForums(tm) is a Free Service from Voyager Info-Systems.
Copyright © 1998-2019 Voyager Info-Systems. All Rights Reserved.