🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.nativeapi
Article #129

Re: Print Properties

#129
From: Camiel Wijffels
Date: Tue, 20 Jan 2004 18:44
24 lines
1852 bytes
"Peter Below (TeamB)" <100113.1101@compuXXserve.com> schreef in bericht
>
> build, run, click the button, does it come up with the expected printer
> selected on XP? If yes the problem is somewhere in your code, if not it is
in
> the VCL.

It is leither more complicated than that.

When you click the button in your configuration the app comes up with the
correct (so none-default) printer, however when you select the properties
page in this window, the default printer pops up again.

However I seem to have solved it, by using the following construct:
  with Printer do begin
    PrinterIndex := ListBox1.ItemIndex;
    SetPrinter(PChar(Printers[PrinterIndex]), nil, nil, 0);
  end;

Is this the correct way to walk? Or am I maybe missing some point?

BTW, was this problem not known yet? Or is it just me?
--
Met vriendelijke groet, Camiel Wijffels
Technical Details
Message-ID: <400d85c5@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <400b0645@newsgroups.borland.com> <400c4998$1@newsgroups.borland.com> <VA.0000a8c2.0062bc4e@nomail.please>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f94dd,9c65616b0876a2f9
X-Google-Attributes: gidf94dd,public
X-Google-ArrivalTime: 2004-01-20 12:10:38 PST
From: "Camiel Wijffels" <Remove@Me.Com>
Newsgroups: borland.public.delphi.nativeapi
References: <400b0645@newsgroups.borland.com> <400c4998$1@newsgroups.borland.com> <VA.0000a8c2.0062bc4e@nomail.please>
Subject: Re: Print Properties
Date: Tue, 20 Jan 2004 19:44:44 +0100
Lines: 26
Organization: BluePrint
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
NNTP-Posting-Host: 213.75.184.249
Message-ID: <400d85c5@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1074628037 213.75.184.249 (20 Jan 2004 11:47:17 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail