Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to print the file ?
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00445540
Message ID:
00447021
Views:
14
>>>>Anyone know how to print the file (not doc file) programmatically or
>>>>call API ? I try to use ShellExecute "print" before, but the file must be
>>>>document file.The file i want to print is .log file.
>>>>Can i call windows print manager ? or call notepad to print ?
>>>
>>>Easiest is to just call NotePad with the /PRINT command line parameter.
I would have thought
SET CONSOLE OFF
>>LIST FILES LIKE c:\temp\*.log TO PRINTER   && or PROMPT
>>SET CONSOLE ON
was easier. Just my opinion.
>
>LIST FILES only gives the directory; it doesn't print the files.
Found it:
TYPE FileName1
  [AUTO]
  [WRAP]
  [TO PRINTER [PROMPT] | TO FILE FileName2]
  [NUMBER]
censored.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform