PDA

View Full Version : Print.Page when user hits Ctrl+P


Loes
04-25-2008, 03:34 PM
Hi everyone,

I would like to add the possibility for my "audience" to print the page they are viewing. But I don't want to create a visible button for it. Just when a user hits Ctrl+P it should bring up the print dialog box and print that page.
It should work for each of the 30 pages of my project.

How would I do this? Can I set it at once for the entire project, or do I have to add code (which code and how) to each page?

Thanks for any help!!

Loes

RizlaUK
04-25-2008, 04:46 PM
ok, there if no global key event for the project, key events only come from the page its self so you will need to add the below code to the "On Key" event of each page you want to be able to print

if e_Modifiers.ctrl and e_Key == 80 then
Page.Print(true, true);
end

Loes
04-26-2008, 03:06 AM
Thanks! You're wonderful!

Loes