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

Error 800 when saving records as PDF (Windows only)


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

Recommended Posts

Posted

My script in a hosted file needs to export records as pdf into the user Downloads folder, needs to run under Mac and Windows, so I set the variable $path_filename to:

Case ( 
Get ( SystemPlatform ) = 1; "filemac:";
Get ( SystemPlatform ) = -2; "filewin:";
"file:" ) & Substitute (Get (DocumentsPath); "Documents"; "Downloads" ) & 

"file.pdf"

And then:

Save Records as PDF [With dialog: Off; $path_filename ; Records being browsed ; Create folders: Off]

The script it works in Mac but not in Windows: I get an 800 Error and a message warning that it can't create the file.

I don't get what's wrong with the windows version, any idea?

Posted (edited)

On Windows I just use Get ( DocumentsPath ). No "filewin:" prefix and it works fine.

Edited by jaboda
Posted

This issue seems related to Windows 10 file permissions because I've tried to run the script under a windows admin account and it worked well, so it doesn't look like a FileMaker problem but I'm completely lost.

jaboda: Thanks for the filewin tip anyway.

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