× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I'm using POSITION(x,y) exclusively, and compiling with device type *AFPDS.

Here's some sample record formats in the printer file:

A          R DET001
A  59        *NONE                     'TAX ID'
A                                      POSITION(2.700 0.833)
A  59        HTAX          10A         POSITION(3.300 0.833)
A  78        CWVID         10A         POSITION(6.200 0.833)
A            HLDPR          3A         POSITION(7.000 0.833)
A            HLDN           7S 0       POSITION(7.310 0.833)

A          R DET017
A            *NONE                     POSITION(0.625 &POSY) '***'
A            HLDCMT        60A         POSITION(1.000 &POSY)
A            POSY           5S 3P

A          R ENDPAGE                   ENDPAGE

POSY is set to 1.0 (1") at the start of a check, and is incremented by 0.167 for a new comment or stub detail line.



On 6/2/2020 12:20 PM, midrange wrote:
Are you doing SPACEB SPACEA or actual positioning on the page ?
Is there a SKIPB to skip before starting to print?
Can you show some code?
And is compile type *SCS or *AFPDS - use *AFPDS
Jim


-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxxxxxxxx] On Behalf Of Peter Dow
Sent: Tuesday, June 02, 2020 1:09 PM
To: David G via MIDRANGE-L <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: DDS for AFP printer file

This is my first foray into DDS for AFP. I'm modifying a check printing program to use AFP and so far I've gotten all the O-specs converted to DDS, and the program runs fine, writes the formats in the expected order, followed by a format with the ENDPAGE keyword.

The problem is the results don't seem to have much relation to where I told it to put things. The top line should have a vendor id and check#, but instead it has the first line of the check stub detail. And horizontal positioning is way off.

I'm thinking something is wrong with the printer file definition, or the printer device it's being printed on. The front margin is (0 0), the UOM is *INCH, no page or form definition. The printer is some Xerox printer defined as *HP6 with Host Print Transform *YES.

I'm probably missing something glaringly obvious, but I don't know enough about AFP, PSF, etc. to see it.

--
*Peter Dow* /
Dow Software Services, Inc.
909 793-9050
petercdow@xxxxxxxxx <mailto:petercdow@xxxxxxxxx> pdow@xxxxxxxxxxxxxx <mailto:pdow@xxxxxxxxxxxxxx> /
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.