🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.lang.basic
Article #425

Possibly stupid question on VB and printer escape sequences, etc.

#425
From: Tane' Tachyon
Date: Sun, 10 Jan 1993 20:10
32 lines
2212 bytes
So I have a program written in regular BASIC that among other things
downloads some fonts to the LaserJet, and uses escape sequences to
position things and set up the LaserJet page.  I was using VB to make
a new version that would run under Windows and have a nice interface
and so on, but when I got to the printing part I hit a wall.
 
Is there any way I can get the Print Manager to accept and pass on
just plain raw data (the fonts, graphics, escape sequences), instead
of having to completely rewrite the printing part of the program?  I'd
much prefer that it work the way it already does for people with
LaserJets, without them having to take any extra steps like explicitly
adding the fonts via the control panel.  But at the same time it would
be really nice if it were able to go through the Print Manager -- I
want it to be able to peacefully coexist with other programs, rather
than pulling something like opening the port as a file, or copying a
file to the port.
 
Trying to download fonts with Printer.print produces "overflow"
errors (I thought that setting Printer.width would solve that, but
it's read-only), looking through at least the 3.0 SDK manuals has not
given me any clue to how this could be done, ditto for looking through
the Windows-programming newsgroups and archives.  Any ideas, or am I
just being very bad here by trying to get around rules for well-
behaved programs?

-- 
 ____________________________________________________________________________
|  tachyon@cats.ucsc.edu  \        /__    Big glitter-slob weirdo bisexual   |
|   tachyon@ucscb.ucsc.edu  \    /   /  feminist vegan homeschooling parent  |
| tachyon@deeptht.armory.com  \/   /  science fiction computer bum i.n.p.o.  |
 -------------------------------\/-------------------------------------------
Technical Details
Message-ID: <1ipvs4INNh90@darkstar.UCSC.EDU>
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!darkstar.UCSC.EDU!cats.ucsc.edu!tachyon

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!darkstar.UCSC.EDU!cats.ucsc.edu!tachyon
From: tachyon@cats.ucsc.edu (Tane' Tachyon)
Newsgroups: alt.lang.basic
Subject: Possibly stupid question on VB and printer escape sequences, etc.
Date: 10 Jan 1993 20:10:44 GMT
Organization: Tachyon Labs
Lines: 32
Message-ID: <1ipvs4INNh90@darkstar.UCSC.EDU>
NNTP-Posting-Host: am.ucsc.edu