Left Margin on Inkjet Printer.

Discussion about printing issues and techniques.

Moderators: Susan Smith, admin, Gabriel

Post Reply
GomezL
Posts: 258
Joined: Wed Apr 29, 2009 5:51 am
Contact:

Left Margin on Inkjet Printer.

Post by GomezL »

I have a report that is "Chopping off" the leftmost 4 or 6 columns of the report because the printer has a margin that cannot print.

I am wondering if there is a way with NWP to set the left Margin, so the entire report is a few characters to the right.

I could of course change the template to leave extra spaces, but I figured this is a perfect job for a left margin.
gtisdale
Posts: 218
Joined: Sun Jun 07, 2009 7:54 am
Location: Concord, Massachusetts
Contact:

Post by gtisdale »

In FNSNAP.dll try the function FNLEFT$

FNGeorge
GomezL
Posts: 258
Joined: Wed Apr 29, 2009 5:51 am
Contact:

Post by GomezL »

I tried downloading a new copy of FNSNAP.ZIP from ftp://ftp.ads.net/Brg_pub/Zip/
I wasn't able to find a copy of FNLEFT$ inside FNSNAP.DLL, is there a newer version?
gtisdale
Posts: 218
Joined: Sun Jun 07, 2009 7:54 am
Location: Concord, Massachusetts
Contact:

Post by gtisdale »

Sorry about that. I have just uploaded the latest version to BRG_PUB.

FNGeorge
GomezL
Posts: 258
Joined: Wed Apr 29, 2009 5:51 am
Contact:

Post by GomezL »

Still no joy!

/Brg_pub/Zip/fnsnap.zip is dated 6/25/2008
Gary E. Buxton
Posts: 11
Joined: Wed Feb 10, 2010 6:35 pm
Location: Birmingham, Alabama

Post by Gary E. Buxton »

To GomezL:

Maybe I can help you.

GTisdale placed the new copy of fnsnap in the folder Brg_Pub using the name
fnsnap.dll (dated 04/06/10). Download the file then rename it to fnsnap.br.

Another option is to create in the printer.sys file the following:
PRINTER PCL [LEFTMARGIN(XXX)], "\E&aXXXL"
Then in your program:
00100 PRINT #255,USING "FORM C,SKIP 0": [LEFTMARGIN(nnn)]
where nnn is the number of spaces you want to indent. A space is equal to one character.
GomezL
Posts: 258
Joined: Wed Apr 29, 2009 5:51 am
Contact:

Post by GomezL »

Joy!

I found fnsnap.dll right where you told me!

FNLEFT$(_L)=CHR$(27)&"&a"&STR$(_L)&"L"

You example:

PRINTER PCL [LEFTMARGIN(XXX)], "\E&aXXXL"

Is perfect!

Now I have to see if this works for NWP!
Gary E. Buxton
Posts: 11
Joined: Wed Feb 10, 2010 6:35 pm
Location: Birmingham, Alabama

Post by Gary E. Buxton »

Assuming no response by now, maybe the following could be added to
PRINTER.SYS:

PRINTER PCL [LEFTMARGIN(XXX)], "\E&aXXXL"
PRINTER NWP [LEFTMARGIN(XXX)],"\E&aXXXL"
Where XXX may be a value between 0 and 9 (Moves one character space).

I also changed PRINTER NWP [ROWCOL(XXX,YYY)], "\E&aYYYrXXXC"
and PRINTER PCL [ROWCOL(XXX,YYY)], "\E&aYYYrXXXc"
to: PRINTER PCL [ROWCOL(XXX,YYY)], "\E&aXXXR \E&aYYYC"
and: PRINTER NWP [ROWCOL(XXX,YYY)], "\E&aXXXR \E&aYYYC"

I also changed PRINTER NWP [POS(XXX,YYY)], "\E&aYYYrXXXC"
and PRINTER PCL [POS(XXX,YYY)], "\E&aYYYrXXXC"
to: PRINTER NWP [POS(XXX,YYY)], "\E&aXXXR \E&aYYYC"
and: PRINTER PCL [POS(XXX,YYY)], "\E&aXXXR \E&aYYYC"
Post Reply