Hi Klas,
After further investigation, the hpUnits function sets [I]nches [R]ows or
[M]illimeters. Then a call to something like hpcenter(x,y,txt) or
hpatsay(x,y,txt) always generates the same hp sequence with the x,y
coordinates internally converted to decipoints. The typical sequence is a
push the cursor position, set the vertical and horizontal position (in
decipoints), print the text, and then pop the cursor position. I'll have
to
write the center function based on the font size, page width... and make
the
unit of measure to decipoint conversions. I didn't really want to do all
of
this, but I don't see an alternative if I don't want to change all of my
print a laser form code. A simple replace of a call to hpAtSay with a
rewritten pclAtSay still seems like the best route. What do you think?
Thanks again for your time,
Gary
It looks
"Klas Engwall" <klas.engwall@[EMAIL PROTECTED]
> wrote in message
news:47cb3c83$0$1348$834e42db@[EMAIL PROTECTED]
> Gary,
>
>>I imagine I'll have to maintain a static variable for each of the
>>non-output
>>functions and include the codes in subsequent (with output) function
>>calls.
>
> Maybe we both mean the same thing, but just in case ... I think you
> need to organize your page setup something like this:
>
> 1. Create a set/get function for each of those settings and store the
> settings in static variables in those functions.
>
> 2. When you are ready to print actual data, call a PageSetup()
> function that collects all the settings from all the set/get functions
> (some of which may be empty() if they are not needed in a particular
> print job) and sends those to the printer before the first data on the
> page. Depending on what settings you have and how you eject/end each
> page you may have to repeat the PageSetup() function at the top of
> each page.
>
> Also, some setting mey belong to the page setup and some to the print
> job setup before the first page (tray selection, page orientation etc)
>
> Hope this made sense :-)
>
> Regards,
> Klas
>
> -------
> klas dot engwall at engwall dot com
>
> http://www.engwall.com/clipper/
>
> The LFN Library for Clipper
> The LanMan Library for Clipper
> The NFPAT1A Timeslice release patch for the Nanforum Toolkit


|