Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simplest way to print txt file?
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Simplest way to print txt file?
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01122014
Message ID:
01122014
Vues:
68
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform