🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Print Properties

#126
From: Peter Below (TeamB)
Date: Tue, 20 Jan 2004 19:16
25 lines
1904 bytes
In article <400c4998$1@newsgroups.borland.com>, Camiel Wijffels wrote:
> 
> The problem is the following.
> I have my own print-window, with all printers listed from property Printers,
> and the current printer is pointed at by PrinterIndex. 

I'm not sure i understand your problem correctly. If you just create a new 
project, drop a TPrinterSetupDialog on it, add a button with an OnClick 
handler that does

  Printer.PrinterIndex := SomeIndexThatDoesSelectAPrinterThatIsNotTheDefault;
  PrinterSetupDialog1.Execute;
  
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.


--
Peter Below (TeamB)  
Use the newsgroup archives :
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be
Technical Details
Message-ID: <VA.0000a8c2.0062bc4e@nomail.please>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news.moat.net!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <400b0645@newsgroups.borland.com> <400c4998$1@newsgroups.borland.com>

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 11:36:47 PST
Date: Tue, 20 Jan 2004 20:16:09 +0100
Newsgroups: borland.public.delphi.nativeapi
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: Virtual Access by Atlantic Coast PLC, http://www.atlantic-coast.com/va
Organization: TeamB
Message-ID: <VA.0000a8c2.0062bc4e@nomail.please>
Subject: Re: Print Properties
From: "Peter Below (TeamB)" <100113.1101@compuXXserve.com>
Reply-To: 100113.1101@compuXXserve.com
References: <400b0645@newsgroups.borland.com> <400c4998$1@newsgroups.borland.com>
NNTP-Posting-Host: 62.226.186.2
X-Trace: newsgroups.borland.com 1074626063 62.226.186.2 (20 Jan 2004 11:14:23 -0700)
Lines: 27
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news.moat.net!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail