Jump to content

Can't Create PDF File


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

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 2 weeks later...

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

Link to comment
Share on other sites

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