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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ramani - page break

Status
Not open for further replies.

asm338s

Programmer
Jul 16, 2001
135
US
I tried using:
ON PAGE AT LINE 20 EJECT
REPORT FORM ABC.FRX NEXT 19 TO ....FILE
Now, if i say
REPORT FOR ABC1.FRX REXT TO....FILE, it prints all the records. for some reason it is moving the record pointer to the top. I tried GOTO RECORD 20 IN tableused, between the 2 reports, but it still prints all record for the name specified.
 
HI
ON PAGE AT LINE 20 EJECT
REPORT FORM ABC.FRX TO ....FILE

You dont run the command REPORT FORM again...
This will automatically skip to next page on 20 and continue from 21 in the next page. Here 20 means the print line number ... not the record number. So I suggest you replace the first line with..

ON PAGE AT LINE 60 EJECT

Hope this helps you

ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
LET KNOW IF THIS HELPED. ENOUGH EXPERTS ARE HERE TO HELP YOU OUT! BEST OF LUCK :)
 
I tried that, but if I use:

ON PAGE AT LINE 60 EJECT PAGE(or line 20)
REPORT FORM ABC.FRX NEXT 19 TO ....FILE


This only prints the first 19 records, it nevers goes to the next page and prints the rest.

I appreciate your help. I can e-mail you this portion of the code, if you want to take a look at it.
 
Here is the exact code that I am using:
--ON PAGE LINE 20 EJECT PAGE
--REPORT FORM ABC.FRX FOR nName NOCONSOLE TO FILE abc.txt ASCII

'next 3 lines puts a form layout on which the data is to be printed'

--theForm = FILETOSTR('abc.txt')
--Fputs(gnErrFile, CHR(27) + '*p8Y' + CHR(27) + '*p4X')
--Fputs(gnErrFile,CHR(27)+ '&f3X')
--Fputs(gnErrFile, theForm)

'this prints the first 21 records(max. no.of lines on the form) on the first page with the form layout, and the rest on a regular paper without the layout. result stay the same, even if i don't use the ON PAGE COMMAND

Thanks Guys.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top