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!

Please Help with Printing Reports

Status
Not open for further replies.

Serincino

Programmer
Jun 13, 2003
61
US
My app has the option to find an account in the database then print the information into a report I have created.

My problem is the search and on screen display is in a form. When the report command is given, report rptptcontract record recno() to printer prompt The data being sent to the printer is scrolled up on the form and covers out all my textboxes and command buttons in the form. The containers are still there if I click around they reappear, but the text of the report is still displayed in the background. I'm tried using set device to printer and set console off but neither have an effect. PLEASE HELP. I have multiple parts of my app that are doing this.

thanks,

Serincino
 
yes, SET TALK OFF is executed at the loading part of my app.
 
Serincino,

My guess is you are using a Private Data Session which each have there own SET values. My suggestion would be to put a SET TALK OFF in the BeforeOpenTables Event of the Data Session or the Load Event of the Form.
 
Hey guys, I thank you all for the help. I found the solution by accident. I was reading on another topic for syntax in teh help section of VFP8 and found that I needed to add the noconsole to my report command, making the total command:
report rptptcontract record recno() to printer prompt noconsole

Again thanks everyone,

Serincino
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top