Jump to content

Exporting to PDF with multiple print commands


Curlydave

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

Recommended Posts

I need to use a script to print (Unless there's another way that I don't know about), because I'm trying to put in page numbers for each record and for the whole document, and I need to alternate between two reports because of filemaker's 12-page limit. I'd like to be able to print the reports, or export it to a PDF, but I want to export the whole thing to a single PDF, not a new one for each Print[] function. How would I do that?

Here's the script, although it probably doesn't matter.

Enter Browse Mode

Go to Record/Request/Page[ First ]

Loop

Set Variable [ $page; Value:0 ]

Loop

Enter Preview Mode

Go to Layout [ “Report” (Main table2) ]

Set Variable [ $page; Value:$page+1 ]

Set Field [ Main table2::Page Number; $page ]

Print [ ][ No dialog ]

Go to Record/Request/Page[ Next ]

End Loop

If [ not IsEmpty(Main table2::SA overflow) ]

Loop

Enter Preview Mode

Go to Layout [ “Overflow” (Main table2) ]

Set Variable [ $page; Value:$page+1 ]

Set Field [ Main table2::Page Number; $page ]

Print [ ][ No dialog ]

Go to Record/Request/Page[ Next ]

End Loop

End If

Enter Browse Mode

Go to Record/Request/Page[ Next ]

End Loop

Link to comment
Share on other sites

This topic is 6179 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
×
×
  • Create New...

Important Information

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