I have code that for various reasons has to use the sendKeys function (setting printer settings that are not programmable) and I wish to unset them again using the same method.
I have my routine using sendkeys and then using the ApplicationPrintout method (Word) and then use SendKeys to reset the printer settings.
However the resetting seems to take place before the printing.
If I put a 'wait' command using the timer after issuing the Printout command the whole routine hangs until the timer function is complete. The same happens when I use a message-box to display a message - I need to 'release' the code in some way to perform the printout method and then be allowe dto contimnue to rest the printer settings.
Any ideas?
I have my routine using sendkeys and then using the ApplicationPrintout method (Word) and then use SendKeys to reset the printer settings.
However the resetting seems to take place before the printing.
If I put a 'wait' command using the timer after issuing the Printout command the whole routine hangs until the timer function is complete. The same happens when I use a message-box to display a message - I need to 'release' the code in some way to perform the printout method and then be allowe dto contimnue to rest the printer settings.
Any ideas?