Hi Robin,
Thanks for the quick reply.
I am thinking this case: I have a page containing a Print button, and a Panel control which may contain labels, textField, other buttons etc. What I want is that when I press the Print button, I want to only print the UI of the Panel control, but not the Print button. In another word, I don't want to print the whole window, but only part of the window with some controls. Your suggestion seem to print the whole window, or it just print the button? I will try it anyway. Thanks.
Br, /Dong