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

Re: Problem printing with custom print size



1.  Make sure you are not specifying a -keep option either in your sqr.ini
file or your command line.
2.  Eliminate the declare-printer statements.
3.  Put the following code in for begin-setup:

     no-formfeed
     page-size 33 132

The no-formfeed forces SQR to use blank lines instead of a formfeed
character to advance the printer.  Mainframe printers tend not to like
formfeeds.

At 12:22 PM 12/9/98 -0600, you wrote:
>Hello,
>
>I am developing a garnishment check printing program that will ultimately
>print to one of our mainframe line printers.  I am trying to define a custom
>layout to match our check forms, below is a snapshot of my layout
>definition.  The program uses the print and new-page commands to perform all
>my printing.  My question is am I missing anything in my layout definition?
>
>begin-setup
>  declare-report check_print
>     layout=HONCHK
>     printer-type=LINEPRINTER
>  end-declare
>
>  ! Declare Layout
>  declare-layout honchk
>    paper-size=(14.25, 6)
>    max-columns=132
>    max-lines=33
>  end-declare
>
>end-setup
>
>>From reading the language reference it looks like this should be all I need,
>but when I print it's a different story. I am using PeopleSoft v7.51 process
>scheduler to initiate the sqr.  When I direct the output to a file it looks
>formatted properly and works great, when I send it to our networked
>mainframe line printer I get the error message:  (SQR 6002)  Cannot open the
>printer file:  \\<server>\<printer>.spf, (2): No such file or directory.
>It's strange, in that the sqr will work fine when printing to the printer
>after I comment out the section of code above.  I do not believe that it's a
>Peoplesoft issue, I think the problem likes within the sqr.
>Any thoughts, I've been wrestling with this for awhile.
>----
>Chad Darnielle
>The HON Company, IT Programmer/Analyst
>* 319-264-7578   * DarnielleC@honcompany.com