cpe1704tks Posted October 22, 2010 Posted October 22, 2010 I have created a script that saves 3 layouts to a single pdf file by appending them. I just can not find a way to print the file after it has been saved. I know I can open it in a pdf reader and then print it but I want to bypass this step. I also want to save the pdf to the desktop and also a network location. Right now I have it save to a temp location. Here is the script. I sure someone can help me to make it better. # Set Error Capture [ On ] # Allow User Abort [ On ] # Set Variable [ $path; Value:"file:temp.pdf" ] # New Window [ ] # Go to Layout [ “Kit Consegna” (Modulo Contratto) ] # Save Records as PDF [ File Name: “$path”; Current record ] # Close Window [ Current Window ] # New Window [ ] # Go to Layout [ “Modulo DEN” (Modulo Contratto) ] # Save Records as PDF [ File Name: “$path”; Current record ] # Close Window [ Current Window ] # New Window [ ] # Go to Layout [ “Vadecum” (Modulo Contratto) ] # Save Records as PDF [ File Name: “$path”; Automatically open; Current record ] # Close Window [ Current Window ] Thanks CPE1704TKS
cpe1704tks Posted October 22, 2010 Author Posted October 22, 2010 The user will be asked where to print 3 times. They each have there own printer, so I can not set a default printer.
comment Posted October 22, 2010 Posted October 22, 2010 Well, Filemaker cannot open a .pdf file, let alone print it - so I believe you are looking at either OS-level scripting or a plugin.
sky Posted October 27, 2010 Posted October 27, 2010 You could set the file path to the 'Desktop' so users can easily find the file, perhaps also displaying a dialog to notify them that's where it is... e.g in your script: Set Variable [$path; Value:Get(DesktopPath) & "myfilename.pdf" All the best...
Recommended Posts
This topic is 5142 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 accountSign in
Already have an account? Sign in here.
Sign In Now