🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #3175

Re: setdefaultprinter

#3175
From: Bob Gonder
Date: Fri, 01 Sep 2006 17:21
16 lines
1461 bytes
"mattk" <<none>> wrote:

>My program uses SetDefaultPrinter and SendMessageTimeout to switch between 
>two printers.

You should not be doing that.
It isn't very nice to mess with a user's windows settings.

>The problem is I also have a TRichEdit component and I use the Print() 
>method - but it does not necessarily print to the default printer ....
>
>How to solve such a problem? 

You should ask in vcl.components.using
They could also explain to you how to use the VCL to switch printers
so you don't have to make your customers mad at you.
Technical Details
Message-ID: <5pqgf29jd13onp8q7kf9mt1fv15mm9uqh9@4ax.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <44f739be$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,d62b258d0db94032
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: setdefaultprinter
Date: Fri, 01 Sep 2006 10:21:34 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <5pqgf29jd13onp8q7kf9mt1fv15mm9uqh9@4ax.com>
References: <44f739be$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 69.69.87.29
X-Trace: newsgroups.borland.com 1157131291 69.69.87.29 (1 Sep 2006 10:21:31 -0700)
Lines: 18
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail