Jump to content
Sign in to follow this  
bigwordsmith

Windows saving PDF error

Recommended Posts

Hi All

One of our customers on a windows machine is reporting that she can't save PDFs to disk from FM9 - it works fine on our development system ( Mac OSX). The error message says something along the lines of make room or change the name, but I'm wondering if it is more about her windows privilieges.

Any ideas?

Thanks

BWS

Share this post


Link to post
Share on other sites

I'll bet it's the path. Where are you saving the pdf? For example, to save to the Desktop, the export path is:

"file:" & Get (DesktopPath) & filename & ".pdf"

Have you forgotten the "file:" or perhaps have "filemac:" ?

Edited by Guest

Share this post


Link to post
Share on other sites

I'm getting the same error, but from a Mac (Error 800). My path calculation looks like:

"filemac:/" & Get(DesktopPath) & "/VAR PDFs/" & $day & " " & Leads::VAR & ".pdf"

The $day variable is the selected day, with "-" substituted for the "/" character. The folder on the desktop has Read/Write permissions for everyone.

I can't think of what the problem might be... maybe because the file is hosted by FMServer, and it's trying to save to the Desktop of the server, instead of the client's desktop?

Share this post


Link to post
Share on other sites

It's your path. You don't need a slash after filemac: Also, Get (DesktopPath) returns, for example, /MacintoshHD/Users/John Smith/Desktop/ .

So you're adding an extra slash at the end. Is $day defined in the same script?

If set a field to this path, what do you get? I can't tell what $day is equal to or Leads:VAR and why you have a space between $day and Leads::VAR.

It won't save to the Desktop of the server. Get (DesktopPath) always saves to the user's desktop.

Edited by Guest

Share this post


Link to post
Share on other sites

That was it! Thank you, oh wise guru of scripting! :

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

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