Board index » delphi » Printing to a non default printer under NT
James
Delphi Developer |
Sat, 25 Aug 2001 03:00:00 GMT
Printing to a non default printer under NT
Bit of a conundrum this.....
I have a system running NT4 Sp 4 & Delphi 4 I want to print to a card printer (an NBS Plastic Card Printer to be To demonstrate the problem, I wrote a small test app: The form consists of a Combo box, two buttons and a PrintDialog tool. Button1 is labelled 'Test Print' Button 2 is 'Choose Via Dialog' The combo box is filled with the available list of printers (Not sorted) If you chose the printer using the combo box then press 'Test Print' the If you chose the printer using the combo box then press is 'Choose Via I have included the form code below: any pointers would be useful.... James. unit NBSTEST; interface uses type var implementation {$R *.DFM} procedure TForm2.ComboBox1Change(Sender: TObject); procedure TForm2.FormCreate(Sender: TObject); procedure TForm2.Button1Click(Sender: TObject); procedure TForm2.Button2Click(Sender: TObject); end. |