RE: [U2] Stopping HP Laser Printer line creep

2004-11-23 Thread Kathleené M Bodine
I changed the page length on the printer to resolve the issue.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Monday, November 22, 2004 6:35 AM
To: [EMAIL PROTECTED]
Subject: Re: [U2] Stopping HP Laser Printer line creep

Al DeWitt [EMAIL PROTECTED] wrote on 19 Nov 2004 17:59:16 -0600

 UniData 6.0.12 // SB+ 5.2.4

 I have a basic program that originally ran on a line printer
 to print preprinted forms.  I am converting it to print on a
 laser.  I'm having problem with line creep.

Others have made some good suggestions - one other thing to check.  On our
system, the SB+ Printer Class Definitions are set to 65 lines, but on the
physical printer, the page length is set to 66 lines.  This was recommended
by our VAR, and I never really got a good explanation as to why, but it
does work.

Also, if you're printing from BASIC, I recommend printing CHAR(12): to
start a new page, rather than relying on a fixed number of lines per page.
My standard code looks a bit like this:

NEWPAGE:
  IF PAGE.CTR = 0 THEN PRINTER ON ELSE PRINT CHAR(12):
  PAGE.CTR += 1
  PRINT report header:SPACE(as needed):Page :PAGE.CTR
  ...
  RETURN

I use a LINE.CTR to track the number of lines printed, and check for a page
break where needed.  This also allows me to keep multiple line data
together where necessary.  For example, on our invoices, the Product
Description appears on the line below the Product Number.  If there's only
one line available on the current page, I start a new one.

Hope this helps.

--Tom Pellitieri
  Century Equipment
  Toledo, Ohio
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] Stopping HP Laser Printer line creep

2004-11-22 Thread TPellitieri
Al DeWitt [EMAIL PROTECTED] wrote on 19 Nov 2004 17:59:16 -0600

 UniData 6.0.12 // SB+ 5.2.4

 I have a basic program that originally ran on a line printer
 to print preprinted forms.  I am converting it to print on a
 laser.  I'm having problem with line creep.

Others have made some good suggestions - one other thing to check.  On our
system, the SB+ Printer Class Definitions are set to 65 lines, but on the
physical printer, the page length is set to 66 lines.  This was recommended
by our VAR, and I never really got a good explanation as to why, but it
does work.

Also, if you're printing from BASIC, I recommend printing CHAR(12): to
start a new page, rather than relying on a fixed number of lines per page.
My standard code looks a bit like this:

NEWPAGE:
  IF PAGE.CTR = 0 THEN PRINTER ON ELSE PRINT CHAR(12):
  PAGE.CTR += 1
  PRINT report header:SPACE(as needed):Page :PAGE.CTR
  ...
  RETURN

I use a LINE.CTR to track the number of lines printed, and check for a page
break where needed.  This also allows me to keep multiple line data
together where necessary.  For example, on our invoices, the Product
Description appears on the line below the Product Number.  If there's only
one line available on the current page, I start a new one.

Hope this helps.

--Tom Pellitieri
  Century Equipment
  Toledo, Ohio
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Stopping HP Laser Printer line creep

2004-11-20 Thread Lance Jahnke
Al,

I had similar issues when moving from line printers to laser. I have UV 10.1.1
and SB+3.4 running MasterPack on Linux AS3. In my environment, I use SB to do
the printing of my shipping dockets so I don't have any BASIC programs using
PRINTER ON etc... (either SB needs to control printing or BASIC; can't be
both). So, playing with form feed settings and number of lines on the report
itself in SB+ got it working.



If you are using BASIC to do your printing (sounds like you might be), the
line creep issue I have seen in the past was either UniVerse and the BASIC
program both trying to control paging OR when I were to force a form feed I
would forget to suppress the line feed on my print statement (PRINTER ON ;
PRINT CHAR(012): ; PRINTER OFF ;PRINTER CLOSE ;*/ note colon after (012) ). If
your BASIC program is running the show, make sure the UV SETPTR issues a NO
FORMAT (i.e. SETPTR 0,80,59,0,0,1,AT PKLIST,NHEAD,NFMT,EJECT,BRIEF).



If you are seeing the output from the SETPTR command on your form, you are
probably forgetting the ,BRIEF option which suppresses output of the command
and the prompt asking if its OK to set these parameters.



Another trick for getting rid of my line printers that were used for reports
and not forms was to change the report so that it wrote to the HOLD file.
When the report was done I would use BASIC to read the report and wrap it with
HTML tags:



HTML='htmlpre@REPORT@/pre/html'

READ REPORT FROM HOLD,'RPT':@USERNO THEN

HTML=CHANGE(HTML,'@REPORT@',REPORT)

END



If your users are using SBClient (mine are) I used the TU.DOWNLOAD and
TU.EXECUTE.SHELL to move the html to the clients PC and open the report
automatically for the user in Internet Explorer. They loved this because now
they could copy and paste report data or email the report or print to laser
using windows.



I hope some of these suggestions help.




From: [EMAIL PROTECTED] on behalf of Al DeWitt
Sent: Fri 11/19/2004 17:59
To: [EMAIL PROTECTED]
Subject: [U2] Stopping HP Laser Printer line creep



UniData 6.0.12
SB+ 5.2.4

I have a basic program that originally ran on a line printer to print
preprinted forms.  I am converting it to print on a laser.  I'm having
problem with line creep.  Each succeeding page will begin printing one
line lower than the preceding one.  I originally had a set-up string set
up in the Printer Class in SB+.  This didn't help and actually hurt
because it was cutting off the first lines of information on the second
and succeeding pages.

I tried Executing a SETPTR statement in the code, but the SETPTR
Verbiage displayed on the page if I placed it after the PRINTER ON stmt
and didn't seem to do anything when I placed it before.

I have spend way too much time on this little project.  Anybody have any
suggestions?  Going to Optio or Universe is not an option.

Al DeWitt
Stylmark, Inc.
763-574-8705
[EMAIL PROTECTED]
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/

[demime 1.01d removed an attachment of type application/ms-tnef which had a 
name of winmail.dat]
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Stopping HP Laser Printer line creep

2004-11-19 Thread Kevin King
Converting it - to an SB+ report?  Or keeping it in BASIC?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Al DeWitt
Sent: Friday, November 19, 2004 4:59 PM
To: [EMAIL PROTECTED]
Subject: [U2] Stopping HP Laser Printer line creep

UniData 6.0.12
SB+ 5.2.4

I have a basic program that originally ran on a line printer to print
preprinted forms.  I am converting it to print on a laser.  I'm having
problem with line creep.  Each succeeding page will begin printing one
line lower than the preceding one.  I originally had a set-up string
set up in the Printer Class in SB+.  This didn't help and actually
hurt because it was cutting off the first lines of information on the
second and succeeding pages.

I tried Executing a SETPTR statement in the code, but the SETPTR
Verbiage displayed on the page if I placed it after the PRINTER ON
stmt and didn't seem to do anything when I placed it before.

I have spend way too much time on this little project.  Anybody have
any suggestions?  Going to Optio or Universe is not an option.

Al DeWitt
Stylmark, Inc.
763-574-8705
[EMAIL PROTECTED]
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/