I do belive that the Printset component is going to be released in D4, so
porting to D5 should be easy enough, the guys at OneDomain have sent me the
D4 version for testing if anyone wants to try it, I haven't had time.
I ended up writing my own code to work with the printers, I find saving the
printer name works best, then getting the printer index from the name, like
what's shown below, I have also worked out a way to save the extended
printer properties of a printer, being able to use the printer setup dialog,
go to the printer and selecting settings like color, best or draft and
resolution and saving that to the same file that my report settings are in.
Then read it back in and the report printing with the saved settings. It
seems to work fine, although I am still beta testing my software Aladdins -
Envelopes & Labels with it, but the response so far has been very
encouraging.
Regards
Jason
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Tony Blomfield
Sent: Wednesday, 24 November 1999 12:37 pm
To: Multiple recipients of list delphi
Subject: Re: [DUG]: Printerindex Property
These two lines may be usefull to you - using a combo for the printer
selection...
{Populate Combo}
FComboPrinter.Items.Assign(Printer.Printers);
{getting it back}
Index := FComboPrinter.Items.IndexOf(Printer.Printers[Printer.PrinterIndex])
-----Original Message-----
From: Alistair George <[EMAIL PROTECTED]>
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
Date: Wednesday, 24 November 1999 12:14 PM
Subject: RE: [DUG]: Printerindex Property
> How do you deal with different printer indexes on different
> machines or if a
> printer index changes through adding, deleting or renaming printers?
Valid point. Will change code to suit sometime. Still doesnt explain why a
set printer is not working next time around though.
Al+
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz