Page 1 of 1

Left Margin on Inkjet Printer.

Posted: Mon Apr 05, 2010 2:47 pm
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.

Posted: Mon Apr 05, 2010 7:25 pm
by gtisdale
In FNSNAP.dll try the function FNLEFT$

FNGeorge

Posted: Tue Apr 06, 2010 5:04 am
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?

Posted: Tue Apr 06, 2010 6:13 am
by gtisdale
Sorry about that. I have just uploaded the latest version to BRG_PUB.

FNGeorge

Posted: Wed Apr 07, 2010 11:37 am
by GomezL
Still no joy!

/Brg_pub/Zip/fnsnap.zip is dated 6/25/2008

Posted: Wed Apr 07, 2010 3:45 pm
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.

Posted: Wed Apr 07, 2010 4:14 pm
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!

Posted: Mon Apr 12, 2010 4:43 pm
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"