Jnuw
20th January 2005 17:54 UTC
ExecShell "print" "text.txt" = Flicker?
Hello all.
I'm using this command, ExecShell "print" "text.txt" to print a text file that contains some info the user may want. When this command is executed, the default txt file program (notepad or wordpad) opens just for a moment, prints, then closes.
Is there a way to suppress or open minimized the txt program to avoid the flicker. On slow PCs, the txt program stays open for 1-2 seconds. Thanks.
kichik
20th January 2005 18:54 UTC
Try:
ExecShell print text.txt "" SW_HIDE
Jnuw
20th January 2005 19:21 UTC
Originally posted by kichik
Try:
ExecShell print text.txt "" SW_HIDE
Thanks for the suggestion Kichik, but I’m still having the text window pop up for just a moment while it prints. Tested in XP, 2k, and 98.
Any other thoughts? Thanks!
Jnuw
21st January 2005 20:24 UTC
Anyone have another idea? Thanks much.
kichik
21st January 2005 20:33 UTC
If you want it to always be completely silent, you have to get a program/plug-in that will print it. There are probably tons of examples around the web of printing text files. It shouldn't too hard to compile a silent one of your own.
Jnuw
21st January 2005 23:29 UTC
Good thought, I'll check that out, thanks.