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

Can not PRINT REPORT after viewing it

Status
Not open for further replies.

bebbo

Programmer
Dec 5, 2000
621
GB
If I view a report all information looks correct. However if I print the same report from the print button within the view mode only headings print. None of the fields print. This appears to be only on certain printers/computers. Any ideas?
 
Thanks for the advice. My program does use the "For" statement. Unfortunately the link you adviced is unavaliable. I'm using Visual Foxpro V 6.00. Thanks
 
Thanks for you help. Although the "FOR" command by itself appears to of been fixed it does not like the following statement, among others. Thanks for directing me to the problem.

REPORT FORM PurHistA ;
FOR !EOF('CardT');
AND BETWEEN(CardT.DATE, FromDate, ToDate) ;
AND CARDT.TYPE != 1 AND Postr.status = 0 ;
PREVIEW
 
First, assuming the current selected table/cursor is "CARDT", then the condition !EOF('CardT') isn't needed - it's implied.

In general, I've found that it's ultimately easier to pre-process the data and let the report work off a virtual "flat file". In this case consider an SQL Select (or a Local View if you're dealling with millions of records) of the appropriate records and feed the resultant record set to the report.

A concrete example could be given if more information on what code directly proceeds the REPORT statement. Like what table is selected, how and what relationship is established between CarsT and Postr and if any other tables (fields) and relationships are involved in the data on the report form.

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top