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

Printing several reports on the same page

Status
Not open for further replies.

saracila

Programmer
Dec 20, 2000
1
RO
Hi all,

I have a big problem about report printing. I want to print several reports on the same page (each of them having only the header section). But, because FoxPro reports are sent as separate print jobs, I don't know how to "mix" these reports into one page. I have an HP LaserJet 6L printer.

Thanks!
 
Hi Saracila,

If you open your report, and look at datagrouping (a menu item from report) it says print group header on new page and some other properties, try it.
I hope it helps....


Charl

 
You have successfully captured the data you want in your headers already via whatever method is in your code. (as you say that you get the reports already as separate print jobs. eg filters, SQL selects etc)

In your code where you call your report, replace that line of code with an "SQL insert" statement to put your data into a report data file or cursor, rather than to direct the output to your printer. (of course you will have to have set up the report data file or cursor separately).

When the loop is complete (ie where currently all your print jobs have been completed) THEN run a report against the report data file (or cursor).

Pete Bloomfield
Down Under
 
Or use Union queries to combine the data and print 1 report.
Good Luck!
-Pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top