General information
Category:
Coding, syntax & commands
To check why RUN does not work, go to DOS window (run command) and type /print yourfile/ (it is a regular DOS command that may not work for network printers).
Shellexec returns Value 42 for me if file is not found or there are some problems with printer/page setup for particular file. Check whether you need to include the file full path. Also this should bring the print dialog:
? ShellExecute(0,"PRINT", yourfile,"","",0)
Can you print from it?
>unfortunately, both your way wasn't work all.The first, push up a Dos window then hang up,the second, just display a lot of "42" in foxpro's screen without print a single page.Damn.:(
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only