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

Page break doesn't occur, lines numbers won't print



Hi all,

I am writing a SQR program on VisualSQRIBE 5.0 on NT, SQR 4.3 on Unix and I
have a problem ...
I need a specific header portion, so Instead of using BEGIN-HEADING, I am
using a user defined procedure. Now, while printing I do
<code>
if #current-line > 45
   new-page
   do page_header ! this is my header proc
end-if
</code>

also for every line that is being printed, I am printing current line
number. Surprisingly, this doesn't work, and the line number (#current-line)
always print zero.

Now, I need one of the following to get it work ...
1. Voodoo magic
2. Offering to the SQR GOD/GODESS

We are already looking into any possible conspiracy theories ... in the mean
time I decided to pick brains of some gurus out here. My guess, it is some
thing really stupid of me (but I am not going to admit it).

Here is something (repotely) relevent
<info>
declare-layout deflt
   paper-size=(14,8.5)    !legal
   orientation=landscape
!   formfeed=yes
   left-margin=0.4
   !right-margin=0.5
   max-columns=201
   top-margin=0.5
   line-height=10
   char-width=4.86
   bottom-margin=0.5
end-declare
declare-printer deflt   ! Declare printer characteristics.
   type=HP   ! Types are POSTSCRIPT, HPLASERJET, or LINEPRINTER
   font=3      ! Font number.
   point-size=8
   pitch=18
end-declare
declare-report raj
layout=deflt
printer-type=HP
</info>

Any help will be very useful ....
Thanks in advance ...
Raj
____________________________________________________________
Rajendra Jamadagni (mailto:Rajendra.Jamadagni@espn.com)
MIS, ESPN Inc.              (Work) 860 766 7321
QOTD: Any clod can have facts, but having an opinion is an art !
Any opinion expressed here is personal and doesn't reflect that of ESPN Inc.