Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Clipper > Re: Esc40 hp li...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 6 Topic 3853 of 3959
Post > Topic >>

Re: Esc40 hp library

by "Gary N Keefe" <gnkmail-jp@[EMAIL PROTECTED] > Mar 4, 2008 at 03:17 PM

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
 




 6 Posts in Topic:
Esc40 hp library
"Gary N Keefe"   2008-02-29 17:43:48 
Re: Esc40 hp library
klas.engwall@[EMAIL PROTE  2008-03-01 00:35:46 
Re: Esc40 hp library
"Gary N Keefe"   2008-03-01 10:16:41 
Re: Esc40 hp library
klas.engwall@[EMAIL PROTE  2008-03-02 23:47:28 
Re: Esc40 hp library
"Gary N Keefe"   2008-03-04 15:17:04 
Re: Esc40 hp library
klas.engwall@[EMAIL PROTE  2008-03-05 00:26:42 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 21:47:43 CDT 2008.