- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
There is a prePrint event that will run no matter how the user invokes a print (your button, File/Print or Ctrl - P). So you can program something there ....there is no command that I am aware of that will tell you which method was used to call your program but you can use the command xfa.event.name command that will tell you what the last event was that fired. If they click your print button you get the word click back ....if they choose Ctrl-P or File Print you will get other back instead. So your code woudl look something like this:
var tempEvent = xfa.event.name
if (tempEvent == "click"){
//your print button was pressed
xfa.host.print .......
} else {
//print was invoked by another means
do the code that will hide the pages and put up your print page....
}
Hope that helps
Paul