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

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

Recommended Posts

Posted

Don't know what I've done this time but ...

I have a script to print receipts to .pdf and then email them. It all works beautifully except for one minor glitch. When scripted, I get a message along the lines of "Cannot create the file on this disk. Make more space, use a different name, use a different disk ...."

It worked fine when I saved the file to a fixed location. Now I want to save it in the same folder as the database and it doesn't.

The command to save as a pdf works fine when done manually.

My path in the save as pdf is -

file:SH_Event/Receipt.pdf

Any (polite) suggestions would be most welcome.

Posted

do some basic maintenance on the machine by cleaning out the temp files.

Also check to make sure you have write privileges on the application folder.

Posted

Done that - temp files, that is. (Surpised how few there were as I've just re-loaded all my 'stuff' on a new machine.)

If I didn't have write access, I wouldn't be able to do the file save manually.

I've also told it to execute the script with full access privileges.

Posted

How about including the full path instead of the relative path like you're doing?

file:/c:/somewhere/SH_Event/Receipt.pdf

Since you're using 8 you can use a variable here and calc the path if needs to be dynamic for different environments...

  • 2 weeks later...
Posted

(Belated) thanks for that suggestion, Wim. I do not like fixed paths because this is for a distributed runtime and you just never know where users are going to put stuff or want you to put it.

Using the calc to find where they are is just the ticket and it works (more or less) like a dream.

Still doesn't explain why the relative syntax doesn't work, though.

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