🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Feed Control of a Printer

#7604
From: Bob Gonder
Date: Fri, 14 Jan 2005 17:31
38 lines
2665 bytes
Grety wrote:

>Is there any API (or a guide at all) to Feed Up/Down a Paper in Role
>Printer?

No.
There is no standard for moving backwards.
Every printer (if it even has that capability) has it's own set of
codes for non-standard activities.
Check with the manufacturer's web site for their codes.

>When I command Printer to print via QuickRep it feeds a A4 size paper
>although I want only 15 cm of Feeding.
>How can I send a design paper to this Role Paper without any Auto feeding?
>I *HAVE TO* put a designed paper into Only 15 cm not a A4 (30 cm).

Several methods exist......

First, don't send form-feeds.
Keep track of the number of lines you print, and just send enough
Line-Feeds to complete the form.
This should work for all non-page-printers.

Second, find the control codes on the manufacturer's site to set form
length. That way, the form feed will be the right length. Note that
some printers only support a few page sizes, so you might not be able
to set them to your particular size.

Third, if you are using the Win API calls StartPage/EndPage, set the
paper size in the DEVMODE. (That's a bit complex, so if you need to do
this, and need help on it, ask about it.) Also, note that there are
only a limited number of page sizes available through Windows.

>In my current project there is a Printer with Role Paper...

Ummm...just wanted to mention that "role" is what an actor plays in a
movie.  "Roll" is what you do to a stone so it won't gather moss.
So it should be a paper roll, or "a Printer with Roll Paper..."
Technical Details
Message-ID: <j9vfu090l3lamfr0rmecfa2q566q24qstm@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!news2.euro.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <41e793c8@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,493775d0abffce7d
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Feed Control of a Printer
Date: Fri, 14 Jan 2005 09:31:24 -0800
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <j9vfu090l3lamfr0rmecfa2q566q24qstm@4ax.com>
References: <41e793c8@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 67.77.144.41
X-Trace: newsgroups.borland.com 1105723884 67.77.144.41 (14 Jan 2005 09:31:24 -0800)
Lines: 40
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!news2.euro.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail