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

error

Status
Not open for further replies.

nguyen12

Technical User
Sep 30, 2001
42
US
I created a program to call a report from a form, so that when you click on the print button, it will display the report. Everything works fine, but when i closed the report, i got the error message "cannot recognize command verb". Any help. thanks
 
What code do you have in your command button?

Dave S.
 
Can you supply the code for this?

Is it in a project file and you have compiled an excutable or application form it?

Or is it just a program that you have to run from within VFP.

The syntax for running a report is normally:

REPORT FORM rptname TO PRINTER NOCONSOLE

Where "rptname" is the name of the report. However, if you are running this from the program you may have to supply the path if the report is in a different location to the program file. For example:

REPORT FORM c:\foxapp\rptname TO PRINTER NOCONSOLE
 
The error i got came from variable declaration, but i don't see anything wrong in my variable declaration. Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top