🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Is Printer able to...

#8860
From: dcent
Date: Sat, 11 Sep 2004 15:13
14 lines
1470 bytes
Thanks Bob,

Bob Gonder wrote:
> It's all in the DevMode.
> Use DocumentProperties() 3 times:
> 
> 1)With NULL for DevMode to get the size of the DEVMODE that you need.
> num_bytes=DocumentProperties(NULL,printerHandle,&printerfile_port,NULL,NULL,0);
> 1a) Allocate a DEVMODE of that size.

Where/How do I get the &printerfile_port information from the currently 
selected, not default, printer?

Jeff
Technical Details
Message-ID: <41431608.6030503@NetScape.net>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!zen.net.uk!dedekind.zen.co.uk!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4140DB66.7010709@NetScape.net> <brs1k05hfqplm6k1s6ogabnt90g522ng44@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,47dce7631b4e7cf9
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Message-ID: <41431608.6030503@NetScape.net>
Date: Sat, 11 Sep 2004 10:13:12 -0500
From: dcent <DcentJ8@NetScape.net>
Reply-To:  DcentJ8@NetScape.net
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Is Printer able to...
References: <4140DB66.7010709@NetScape.net> <brs1k05hfqplm6k1s6ogabnt90g522ng44@4ax.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 65.6.192.60
X-Trace: newsgroups.borland.com 1094915595 65.6.192.60 (11 Sep 2004 08:13:15 -0700)
Lines: 15
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!zen.net.uk!dedekind.zen.co.uk!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail