Hi,
I'm printing to a printer that is set up to 'Print To File' but I would like to programmatically provide the file name instead of the user inputting into the pop up box. Currently I have the following piece of code working but would rather not use SendKeys command. Anyone know another way?
msg = "This is my Text To Print"
strKeys = "C:\mysendkey.txt" & "~"
SendKeys strKeys, False
Printer.Print msg
Printer.EndDoc
Thank you,
Paula
I'm printing to a printer that is set up to 'Print To File' but I would like to programmatically provide the file name instead of the user inputting into the pop up box. Currently I have the following piece of code working but would rather not use SendKeys command. Anyone know another way?
msg = "This is my Text To Print"
strKeys = "C:\mysendkey.txt" & "~"
SendKeys strKeys, False
Printer.Print msg
Printer.EndDoc
Thank you,
Paula