[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

HP Printer Formatting Problems



Dear All,

I am experiencing problems printing a report to a HP printer. The
output is spread across three pages, the ouput on each new page is in
the position it should be but just on a new page.

The printer definitions and code are as follows

declare-printer HP-definition
        type            = HP
        font            = 5
        point-size      = 11
end-declare

declare-layout default_for_all
        paper-size      = (8,11.5)
        orientation     = portrait
        left-margin     = .25
        top-margin      = 0
        max-columns     = 110
        max-lines       = 66
        char-width      = 7
end-declare

While #i_cnt <= #arr_cnt

    Get #principal $statement_date $payment_date #interest From
Payments(#i_cnt) principal statement_date payment_date interest
    let $pr_statement_date = rtrim($statement_date,' ')
    let $pr_payment_date = rtrim($payment_date,' ')
    print $pr_statement_date (+1,2,0)
    print $pr_payment_date (,17,0)
    let #pay_amount = #principal + #interest
    print #pay_amount (,34,0) edit 999999.99
    print #principal (,48,0) edit 999999.99
    print #interest (,57,0) edit 999.99

    Add 1 to #i_cnt
End-While

With this code I get page breaks in the middle of the output data
items. The new page printing starts at the current position on a the new
page.

I have tried changing point sizes, fonts, max_cols etc and these only
result in the page break occurring at different positions on a line.

I would be grateful for any ideas on what I am doing wrong.

Cheers,


***  NZ Dairy Group - Disclaimer  ***
Caution:  This communication is confidential and may be legally privileged. If 
it is not addressed to you please immediately contact us at our cost and do not 
use, disclose, copy, distribute or retain any of it without authority.
Ph (0064) 07 8398398