Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simplest way to print txt file?
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Simplest way to print txt file?
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01122014
Message ID:
01122014
Views:
62
Hi everybody,

What is the simplest way to print txt file?

Thanks in advance.

This code
if not empty(thisform.cReportFile)
   do case 
      case lower(justext(thisform.cReportFile)) = 'txt'
   		try
   			ShellExe(thisform.cReportFile,,'notepad.exe','Print')   
   		catch to loErr
   		lcError = Log_Error(m.loErr)	
   		=ErrorMsg(m.lcError)
   		endtry
   endcase
endif
doesn't work.
If it's not broken, fix it until it is.


My Blog
Next
Reply
Map
View

Click here to load this message in the networking platform