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/jimstarr - report ques. code incl.

Status
Not open for further replies.

asm338s

Programmer
Jul 16, 2001
135
US
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. What do I need to add to get the layout on the second page.

also refer to thread 184-111940
Thanks.
 
any help appreciated. I am kind of stuck at this.
 
I'd create a UDF like:

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

Then place layout() somewhere in the header band of your report.

Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top