🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Windows Printers (Bob Gonder please respond)

#12175
From: John Scott
Date: Thu, 18 Dec 2003 15:20
15 lines
1605 bytes
Thanks for your response. Sorry I am so slow picking this up.
One question - The &printerfile_port parameter in the DocumentProperties() -
what data type is this, the help for OpenPrinter seems to say it is
    LPTSTR pPrinterName, // pointer to printer or server name
I can get the printer name from the
Printer()->Printers->Strings[PrinterIndex] object as a TString data type,
this is not a null terminated array of char, but I can convert it if
necessary. How should I declare the printerfile_port variable?

John

> 2) Get the Size of the DevMode for *this* printer.
> unsigned num_bytes = DocumentProperties(NULL, PrinterHandle,
> &printerfile_port, NULL, NULL, 0);
>
Technical Details
Message-ID: <3fe1c62b@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3fdf3f3b@newsgroups.borland.com> <lb1vtv00s6mqf5mlqkraou7v3rir2lvlcr@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,db79f85f5b525ea6
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-12-18 07:40:22 PST
From: "John Scott" <jscott@kw.igs.net>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3fdf3f3b@newsgroups.borland.com> <lb1vtv00s6mqf5mlqkraou7v3rir2lvlcr@4ax.com>
Subject: Re: Windows Printers (Bob Gonder please respond)
Date: Thu, 18 Dec 2003 10:20:56 -0500
Lines: 17
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 216.16.227.90
Message-ID: <3fe1c62b@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1071760939 216.16.227.90 (18 Dec 2003 07:22:19 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail