Welcome! Log In Create A New Profile

Advanced

WD14 - Customise Print Preview

Posted by David Egan 
David Egan
WD14 - Customise Print Preview
November 03, 2009 08:16PM
PCS have confirmed there is a bug which prevents custom buttons from working correctly if they have to call one of the standard print buttons.
Scenario:
I needed to set a global variable for the Excel button before printing so my button was coded as follows
gb_Excel = true
SetFocus(BTN_Excel) 
SendKey("{LEFTBTN,1,1}", BTN_Excel) 
When the button is clicked it activates BTN_Rectangle instead.
Work Around
Don't use an additional button. Instead activate the WM_LBUTTONDOWN process on the standard Excel button, any code in that is processed before the CLICK code

Cheers

David
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: