Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

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

Posted

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...

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 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.