AnsweredAssumed Answered

VRf_Form_Feeds

Question asked by VRFuser on Jan 21, 1997
send q VRf_Form_Feeds ww vrf

from: Greg Goebel / HP-MXD
      gvg@lvld.hp.com / 970-679-2305 / FAX 970-679-5971
to:   VRf-Stan Bischof
date: Wednesday, 22 January 1997 1425 MST

> here's a seemingly simple task that wortks fine under HPUX but seems
> a royal pain under Win 95:
>
> Namely I want to print some data, issue a form feed and then print
> some more data.
>
> Under HPUX I simple use a "to Print" object and
>
>       write text a
>       write text inttochar(12)
>       write text b
>
> and it works great (12 is ascii decimal code for form feed)
>
> On my WIN95 PC this doesn;t work and the reason is alluded to in
> the "help" system: namely that "control characters" on the PC cannot be
> embedded in a print job. Sounds like a limitation of the print drivers
> rather than VEE per se.

Yes, we have the same problems on HP BASIC for Windows -- worse, really,
because people port their old RMB programs to HPBW and then find out that
their old programs (which *had* to send escape sequences to work) don't do
the things they want (since the Windows printer drivers swallow all the
escape sequences).

The problem is that under Windows, the user is now protected from having to
know the details of the printers ... which is fine, and preferable to forcing
us to come up with our own print drivers for every printer in the known
Universe, but the catch is that you no longer have much *control* over those
details, either.

> The suggested alternative is to use a _to file_ pointed at the
> printer port (LPT1 or whatnot) which seems klunky at best.
>
> Is there perhaps a better way of doing this?

Well, no ... the Windows Generic/Text Only printer driver is relatively
tolerant of control codes compared to other Windows drivers and works in many
case like this, but you can't do graphics dumps through it.

I think I'll come up with a printer primer for my next XC (which is
discouragingly shaping up to contain mostly new ugly bugs).  BTW, I just
put a tutorial on floating-point math and so on up on the website, if
anyone's interested.

> thanks for any hints
>
> Stan Bischof
> stanb@sr.hp.com

If you have more questions, let us know.

[<>] regards -- gvg

Outcomes