Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need advice with printing on check stock

Status
Not open for further replies.

LyndonOHRC

Programmer
Sep 8, 2005
603
US
I'm replacing an old dos application that is used to print checks on pre-printed check stock. My server script is ColdFusion. My idea is to pass html as a variable to the <cfdocument> tag which generates a PDF document that can them be printed.

The check stock is 8.5in x 11in with three areas that I need to print data on.

The top section I call "detail area" will have a variable number of rows of details about the earning events that the check covers. There are controls in place that will keep the amount of data from exceeding available area.

The middle section will contain a variable length paragraph with a mix of dynamic data and static text. There are controls in place that will keep the amount of data from exceeding available area.

The bottom section is the actual check. I have to print the account, check amount, payee, and signature graphic in precise locations.

The Payee name and address fits in an envelope window and may be 3 or 4 rows.

Finally the signature graphic at 9.5 inches from the top

What I have so far gets me close but I still have floating due the variable amount of data in the top sections. I've tried positioning the elements but no luck.

Any help appreciated!
Lyndon

Code:
<loop through checks>
  <div style="page-break-after: always; ">
    <div>
      Print Listing Here from .75 to 4.25
    </div>
    <div>
      Print paragraph here from 4.75 to 7.125
    </div>
    <div>
      Check
      <div>
        Acct# 9in down 3.125 left Code# 9in down 4.5 left $Amount 9in down 7in left
      </div>
      <div>
        payee name 9.5 down .75 left
        address1
        address2 [if exists]
        city st zip
      </div>
      <div>
        Sig.jpg 9.5 down 6.25 left
      </div>
    </div>
  </div> //page-break
</loop through checks>

Lyndon
 
LyndonOHRC said:
I've tried positioning the elements but no luck.

I see no evidence of this so it is difficult to show which positioning is incorrect...just that there is no positioning.
 
Suggestion: You should be purchasing blank check security paper from a proper supplier then create the ENTIRE check image programmatically and use MICR ink in a laser printer to create the check. Then the only issue you would have would be to do a general centering alignment on the output. Often the check would require special font(s) which are usually available (MICR character set). Also, there are some firms that offer software that provide an API to accept data and format the check to your design.

Hope this helps. [thumbsup2]
 
Was there interest in discussing/resolving positioning?

GIGO
 
Yes, I think I figured it out. Will know more when I get a large data set.

I divided the job into bands of <divs> and gave each a height in inches. That has given me the most accuracy so far.

Lyndon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top