Printing from Delphi without needing default printer

Black Ice Printer Driver related questions

Moderator: Technical Support Team

Printing from Delphi without needing default printer

Postby TechnicalSupportTeam » Mon Jul 24, 2006 11:37 am

QUESTION:

We own The BlackIce ColorPlus driver and are printing multipage images
from our Delphi application to a PDF file. We are finding that we must
temporarily set the BlackIce Printer as the default and set the printer
to
-1 (the default). We would like to keep the BlackIce printer as a
non-default printer and print to it to produce PDF files.

ANSWER:

You can print from an application to a Black Ice printer, where the Black
Ice printer is a non-default printer. For example you can print from Microsoft Word, Excel, Acrobat reader and our samples.

Here is a sample snippet. With this code you can print to a non-default
printer in Delphi.

procedure TForm1.Button1Click(Sender: TObject);
begin

if PrintDialog1.Execute then
With Printer Do Begin
BeginDoc;
Canvas.TextOut(10, 10, 'This is a test printing.');
EndDoc;
end;
end;
TechnicalSupportTeam
 
Posts: 1004
Joined: Sat Mar 20, 2004 11:50 am

Return to Printer Drivers



Who is online

Users browsing this forum: No registered users and 4 guests

cron