Jump to content

Need "If" function for Print....


This topic is 6530 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I need an If function for my Print command...When someone clicks the Print button it goes to Dialog then if OK is clicked it prints Layout 1 and then layout 2. Thants fine but if Cancel Print is selected on the Print Dialog Layout 1 is canceled but it continues to print layout 2...I need to stop layout 2 from printing also if Cancel is clicked..

Thx

PS...You guys have been a Tremendous help!!!!

Link to comment
Share on other sites

Aragorn,

What you need is a script that looks something like:

Set error capture on

Go to layout 1

Print Setup (restore,no dialog) //this allows you to preset the print environment

Print Setup()

if (status(currenterror) = 0)

Print(no dialog) // print layout 1

go to layout 2

Print (no dialog)

endif

Hope that helps

Link to comment
Share on other sites

Thx Echo!! That worked...I just needed to add the Go to Preview Mode command (which I forgot to mention in my first post) but it worked PERFECTLY!!

Its this stuff I really need to learn about FMP...designing is fairly easy but these little tricks are what make the program really work!!

Thank You!!

Link to comment
Share on other sites

This topic is 6530 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.