Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Can't Create PDF File

Featured Replies

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.

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.

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

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

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.