This topic contains 7 replies, has 0 voices, and was last updated by Anonymous 11 years, 4 months ago.
- AuthorPosts
- November 24, 2009 at 3:55 pm #361
AnonymousI can add the print button onto my form and it generates the pdf easily. The only issue I have is that I don’t want to have the print button appear on the resulting pdf file. Is there a way to hide the button on that final pdf?
Thanks,
Tommy
November 24, 2009 at 4:05 pm #4931if you ‘hide’ any objects on your form, they won’t show in the pdf file. So if you are using the actual ‘print’ button, change that to use a standard button, and then run a behaviour under that ‘when clicked’ event to hide the button followed by the print action
November 24, 2009 at 4:12 pm #4932
AnonymousThanks! That worked great. I set the behavior to hide the button => print => show the button. That way the button is back when the user looks at the form but it does not get printed.
Thanks again,
Tommy
December 7, 2009 at 4:49 pm #4945
AnonymousI went aha! when I saw this but when I went to try it the Run Behavior / Select a Behavior doesn’t offer the actual Print button as a choice. What am I missing?
December 7, 2009 at 4:56 pm #4946
AnonymousI did it by linking the following steps in this order on the “Button is Pressed” behavior:
1 – Set State (under Object Commands) => Set the button object to “Hidden”
2 – Print (under Form Commands) => Print the page
3 – Set State (under Object Commands) => Set the button object to “Normal”
I hope this helps.
Note: I made it a regular button and not a built in Print button.
Tommy
December 7, 2009 at 5:03 pm #4947
AnonymousThanks Tommy – I see you’re doing the Print from a form. I’m trying this from a Report. And in Report design (under Form Commands) there is no Print command (!).
Keith
December 8, 2009 at 10:06 am #4948Keith
there isn’t a ‘print’ command as you’ve seen in reporting, but I can see it would be useful. have raised it with our development team to look into and see if they can get this added for a future release
December 8, 2009 at 1:23 pm #4949
AnonymousThanks – this would be well received here. We’ve started producing (& printing) some graphic reports for sr. management but all the clutter of buttons diminishes their ‘polish’.
- AuthorPosts
You must be logged in to reply to this topic.