Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

I have a container field and I am using the GetFileAsContainer function in a SetField statement to insert a PDF file. I keep getting an error every time I enter the path to the file. The statement looks like this: GetFileAsContainer( e:invoices$$filename)&".pdf"

I tried using quotes forward and back slashes, filewin: prefix...you name it and I still get a table not found error. What is the proper syntax for the path to file statement.

Help

Posted (edited)

Make sure that you have the whole path other than the field/variable name in quotes, and that the full file is within the GetFileAscontainer function parameters.

For example, you would set the calculation to be:


GetFileAsContainer( "c:/testfolder1/" & $$var1 & "logo.gif" )




or 




GetFileAsContainer( "c:/testfolder1/myfolder/" & $$filename)




if the "$$filename" variable includes the ".gif", ".pdf" or other extension.  If it does not, you can use 




GetFileAsContainer( "c:/testfolder1/myfolder/" & $$filename & ".pdf")

Also, please post all future ScriptMaster questions in the ScriptMaster forum of the 360Works section.

Edited by Guest
  • 2 months later...
Posted

is this command embedding your PDF inside your data file? Does anyone know how to use this command to Reference the PDF instead?

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