Hi ppl,
how do i call a text file and sent it to the printer to print?
thanks
Printable View
Hi ppl,
how do i call a text file and sent it to the printer to print?
thanks
Use ShellExecute, and supply "print" (with quotes) as the second argument and the file name as the third. Look up your documentation for the other args.
But, how would you do it to a particular printer that was selected in the CPrintDialog, within an application that uses mfc and prints some data to the printer in the mfc mode (beginprinting, etc..)
Eli