Bill_misc_IT Posted May 15, 2008 Posted May 15, 2008 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.
bcooney Posted May 15, 2008 Posted May 15, 2008 Try: Set Variable $docPath = "filemac:" & Get (DesktopPath) & "PO" & Purchase Orders::Number & ".pdf" Save Records as PDF [$docPath]
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now