From: | Tony Rolfe |
Date: | 18 Aug 99 at 06:10:12 |
Subject: | Re: Printing. |
On Mon, 16 Aug 1999 19:06:13 +0100 James L Boyd said:
> Tony Rolfe churned out *this* drivel:
>
> > How do I get the user's printer preferences (margins, page length
> > etc.)? Also, where is the documentation regarding printing to Prt:,
> > how do I change fonts, etc?
> >
> > Of course, sample code would always be appreciated!!
>
> GetPrefs_() returns the prefs structure, which contains printer settings,
> but read the autodocs (Intuition section) because it's not perfect
> (apparently).
Since I don't speak C, I assume that what I do is
Prefs.Preferences = GetPrefs_(Prefs.Preferences, sizeof .Preferences)
or something similar?
>
> I've also attached a little test program, which will hopefully output
> some stuff to your printer, but I can't test it to be sure (so please
> let me know if it works :) I've used something similar in another program
> and been told it works (at least, the plain text)...the function in the
> program is aimed at CLI use, so you obviously can't use stuff like white
> text etc, but the italic/bold kind of stuff should work...
Yeah, it worked fine on my HP500C. Italics came out as italic - etc,
Thanks for the help.
>
> See ya,
See ya
---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie