December 14, 200520 yr 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.
December 14, 200520 yr 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.
December 16, 200520 yr Author 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.
December 16, 200520 yr 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...
December 27, 200520 yr Author (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.
Create an account or sign in to comment