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

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

Recommended Posts

Posted

I'm trying to set up a script to save a record as pdf with a specified name. The database is hosted on a server, and I cannot seem to get the file path correct for the client. here is my script:

Set Variable ["filemac:Desktop/"&"PO" & Purchase Orders::Number &".pdf"]

Save Records as PDF ["$filename"]

My goal is to have the pdf saved to the desktop folder of the user's home directory. When I run,as is, I get an error that the file cannot be created on this disk. I think it's trying to save to the server or my file path is wrong and doesn't exist?

Thanks.

Posted

Try:

Set Variable $docPath =

"filemac:" & Get (DesktopPath) & "PO" & Purchase Orders::Number & ".pdf"

Save Records as PDF [$docPath]

This topic is 6035 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.