Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#248904 - 10/02/2005 18:43 Any printer escape code/Accpac Plus experts here??
ShadowMan
addict

Registered: 09/06/1999
Posts: 558
Loc: Newfoundland, Canada
If anyone thinks they might be able to help me please let me know.

I am having trouble with printing T4s (Canadian Year End Tax forms for employees) in Accpac Plus (DOS Application).

I can get the stuff to print properly spaced using my own printer setup and escape codes that are the defaults but everything needs to be moved to the right by one character.

If I use the information provided to setup the printer the characters and character spacing are perfect... except the blank space between cells is almost double what it should be.

The escape codes are in the form as follows:

1. Reset Printer [ 27 E 27 &l66f1e0L ]
2. Page break [ 12 ]
3. After page break [ ]
4. To perform backspace [ 8 ]
5. At beginning of line [ ]
6. End of line to advance [ 10 ]
7. End of line no advance [ 13 ]
8. Left Margin Set [ ]
9. Right Margin Set [ ]
0. Left Margin Release [ ]
11. Right Margin Release [ ]
12. Start Justification [ ]
13. Stop Justification [ ]

Pitch Range Sequence

14. [1 ] [10 ] [ 27 &k15H ]
15. [12 ] [120] [ 27 (s0T 27 (s16H ]
16. [120] [120] [ ]
17. [120] [120] [ ]
18. [120] [120] [ ]
19. [120] [120] [ ]
20. [120] [120] [ ]
21. [120] [120] [ ]
22. [120] [120] [ ]
23. [120] [120] [ ]

24. Default Pitch [10 ]
25. Set Pitch on Every Line (Y/N) [Y]

Line Spacing Range Sequence

26. [1 ] [1 ] [ 27 &l1D ]
27. [2 ] [2 ] [ 27 &l2D ]
28. [3 ] [3 ] [ 27 &l3D ]
29. [4 ] [5 ] [ 27 &l4D ]
30. [6 ] [6 ] [ 27 &l6D ]
31. [8 ] [9 ] [ 27 &l8D ]
32. [12 ] [48 ] [ 27 &l12D ]
33. [48 ] [48 ] [ ]
34. [48 ] [48 ] [ ]
35. [48 ] [48 ] [ ]

36. Default Line Spacing [6 ]
37. Set Line Spacing on Every Line (Y/N) [Y]



There is more but nothing that I think would affect the issues I am having.

Lines 1 and 14 are the ones I am instructed to make changes in. If you think you can help me let me know and I'll provide more details.

Thanks!
Rene
_________________________
12 gig empeg Mark II, SN: 080000101
30 gig RioCar SN: 30103114
My blog

Top
#248905 - 10/02/2005 18:57 Re: Any printer escape code/Accpac Plus experts here?? [Re: ShadowMan]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14482
Loc: Canada
Err... it would be nearly essential for you to tell us the printer model/brand and driver being used.

Thanks

Top
#248906 - 10/02/2005 19:05 Re: Any printer escape code/Accpac Plus experts here?? [Re: ShadowMan]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14482
Loc: Canada
I'm not sure I understand the problem. First you say all is okay, except it needs to be moved to the right by one character, but then you say the inter-cell spacing (whatever that means) is double what it should be. What's the problem again, or are there two problems? Thanks.

Quote:
I can get the stuff to print properly spaced using my own printer setup and escape codes that are the defaults but everything needs to be moved to the right by one character.


One might think this could be addressed by setting item 5 (Beginning of Line) to contain a single space character.. decimal 32 or hex 0x20.

Cheers


Edited by mlord (10/02/2005 19:06)

Top
#248907 - 10/02/2005 19:09 Re: Any printer escape code/Accpac Plus experts here?? [Re: mlord]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14482
Loc: Canada
Ahh.. those escape sequences appear to be compatible with HP PCL, which I have a manual for here (from a prior life where I wrote print spoolers..).

So perhaps setting the left margin to be +1 over the default would work? But first I really need a rewording of the problem description.

18. Left Margin set: [ 27 &a1L ]

Cheers


Edited by mlord (10/02/2005 19:11)

Top
#248908 - 11/02/2005 00:28 Re: Any printer escape code/Accpac Plus experts here?? [Re: mlord]
ShadowMan
addict

Registered: 09/06/1999
Posts: 558
Loc: Newfoundland, Canada
Not sure the printer model/driver really needs to be mentioned. It is a Sharp AR-507 Network Photocopier. I installed it as a local printer and made a port assigned to it's IP address. I then shared it so it has a network name of \\payroll\ar507. I then mapped lpt2 to that network name using the NET USE command. This is so the DOS application can print to it. Regular Windows printing has always worked and this setup worked fine for us last year so I that's why I came looking for help. I posted on another forum (pluscommunity.com) but about all I got over there were people telling me I should buy their payroll software.

These are HP PCL codes. You are correct there.

There are two problems:
1. I get everything printed and lined up perfectly except the left margin is over one space too far to the left.
or
2. The exact same font is printed as in item 1, line and character spacing is perfect but the space between fields is way too great. Almost like when a space is entered it is actually moving a space and a half.

I don't have a T4 in front of me to explain problem 2 but if you have one (as a fellow Canuck you might) the T4 has a layout something reminiscant to three columns. The leftmost column lines up perfectly. The middle column is printed almost exactly where the third is supposed to be and the third doesn't even show up on the printout (actually I think the 1st character does but that's no good either.

A solution to either would work! I only hope your solution helps problem 1. Looks good to me and it is exactly what I was trying to figure out today!

Thanks and I will keep you updated. I'm not supposed to go to work tomorrow but I might have to drop by now.

Rene

P.S. Here's a link to the other post PlusCommunity
_________________________
12 gig empeg Mark II, SN: 080000101
30 gig RioCar SN: 30103114
My blog

Top
#248909 - 11/02/2005 16:52 Re: Any printer escape code/Accpac Plus experts here?? [Re: ShadowMan]
jmwking
old hand

Registered: 27/02/2003
Posts: 770
Loc: Washington, DC metro
Is there a setting for the old "condensed" printing which would shove everything closer together?

Top
#248910 - 14/02/2005 13:24 Re: Any printer escape code/Accpac Plus experts here?? [Re: jmwking]
ShadowMan
addict

Registered: 09/06/1999
Posts: 558
Loc: Newfoundland, Canada
Quote:
Is there a setting for the old "condensed" printing which would shove everything closer together?


Yup. But that doesn't help. I use 10 CPI and the spaces are too far apart in one setup and perfect in the other.

If I use 12 or 16 cpi then everything is way too small. Lose/Lose situation.

Rene
_________________________
12 gig empeg Mark II, SN: 080000101
30 gig RioCar SN: 30103114
My blog

Top
#248911 - 14/02/2005 14:45 Re: Any printer escape code/Accpac Plus experts here?? [Re: mlord]
ShadowMan
addict

Registered: 09/06/1999
Posts: 558
Loc: Newfoundland, Canada
Quote:
Ahh.. those escape sequences appear to be compatible with HP PCL, which I have a manual for here (from a prior life where I wrote print spoolers..).

So perhaps setting the left margin to be +1 over the default would work? But first I really need a rewording of the problem description.

18. Left Margin set: [ 27 &a1L ]

Cheers


Tried this being quite hopeful! But it made no difference. I even tried bumping it up to 2 and 3 and still no difference..

I also tried a blank character (Alt-32) at the beginning of the lines but that made no difference.

Thanks for the ideas so far. I have found a "solution" that works. I print the document to a file and then I use a program called DOSPrn and setup up the margins and font size and voila. A working T4. Not quite the way I want to do it but if this works then at least I have a workaround to get us through.

Rene
_________________________
12 gig empeg Mark II, SN: 080000101
30 gig RioCar SN: 30103114
My blog

Top