🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Printing using windows API

#8430
From: Ray
Date: Thu, 21 Oct 2004 11:33
23 lines
1782 bytes
Yes as far as I know. I bring up the printer setup box etc.

Try a Google search, I originally floundered for a while with this until I 
found an example somewhere. It was some years ago so I forget where it was. 
Probably a Microsoft site but I can't remember now.

Ray
"Simon Elliott" <Simon at ctsn.co.uk> wrote in message 
news:4177752e@newsgroups.borland.com...
> On 20/10/2004, Ray wrote:
>>
>> There's a bit more to it than this
>>
>> You have to use OpenPrinter() and fill a DEVMODE structure with
>> printer details. To print out a graphic I use
> [snip code]
>
> Thanks for this. I suppose I can use all the usual functions on that
> device context?
>
>
> -- 
> Simon Elliott    http://www.ctsn.co.uk 
Technical Details
Message-ID: <41779e80@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!diablo.voicenet.com!38.119.100.83.MISMATCH!news-out1.nntp.be!propagator2-sterling!in.nntp.be!caladan.arrakis.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <41766513@newsgroups.borland.com> <417671f2@newsgroups.borland.com> <4177752e@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,18e3c388aee13f92
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Ray" <someone@someisp.net>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <41766513@newsgroups.borland.com> <417671f2@newsgroups.borland.com> <4177752e@newsgroups.borland.com>
Subject: Re: Printing using windows API
Date: Thu, 21 Oct 2004 12:33:18 +0100
Lines: 25
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 81.78.54.147
Message-ID: <41779e80@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1098358400 81.78.54.147 (21 Oct 2004 04:33:20 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!diablo.voicenet.com!38.119.100.83.MISMATCH!news-out1.nntp.be!propagator2-sterling!in.nntp.be!caladan.arrakis.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail