🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Using Windows printer with standard iostreams

#15857
From: Alisdair Meredith
Date: Tue, 10 Jun 2003 10:55
33 lines
2350 bytes
"Nick B. Cassos" wrote:

> For local printers, you can specify LPTx or COMx as the filename. For
> network printers you can specify the "\\Server\Share" syntax. For this
> to be valid, a share has to be made in the "Server", but, the nice
> thing is that it is irrelevant what printer driver there is actually
> installed. For example, in one of my installations I use a SiteCom
> rooter/printer server combo - connected to a laser and a switch hub -
> which is accessed from all computers indirectly through a TTY shared
> driver installed in the fileserver. In my app, I enter
> "\\Server\Generic" as the path and all invoices find their way out to
> the printer server.

Excellent tip, thank you <g>

Unfortunately, I can't seem to extract the Printer Share Names from our
environment.

I tried the GetPrinter WinAPI, but all printers come back with an empty
share name.

This was supposed to be a quick-and-dirty print solution for us, but in
favour of pragmatism (and time pressure!) I will revert to the existing
system : Export to .CSV and let them format their own report in Excel ;�
)

I'll be taking another look in a few weeks though, this looks far too
useful to just pass over.

Thanks again
-- 
AlisdairM
Team Thai Kingdom
Technical Details
Message-ID: <3EE5B922.5F14E714@uk.renaultf1.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3EE4B2B4.DE5AB2AA@uk.renaultf1.com> <cmj9ev0bqfmeo0tst2huh4d1n3bgfkvsmv@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10cc67,a2c54bfae5b2c76c
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-06-10 04:08:21 PST
Message-ID: <3EE5B922.5F14E714@uk.renaultf1.com>
Date: Tue, 10 Jun 2003 11:55:30 +0100
From: Alisdair Meredith <alisdair.meredith@uk.renaultf1.com>
X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Using Windows printer with standard iostreams
References: <3EE4B2B4.DE5AB2AA@uk.renaultf1.com> <cmj9ev0bqfmeo0tst2huh4d1n3bgfkvsmv@4ax.com>
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: 195.153.139.2
X-Trace: newsgroups.borland.com 1055242534 195.153.139.2 (10 Jun 2003 03:55:34 -0700)
Lines: 33
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail