LuckyMe Posted May 19, 2004 Posted May 19, 2004 Let's say I inserted a MS Word document into a container field. How do i do to open this document within FMP7? Any advised? Thanks
Michael Myett Posted May 19, 2004 Posted May 19, 2004 This is a fairly tricky area in FileMaker, here is the simplest case. Create a script that exports, then opens your word document. Export Field Contents [ tableoccurance::fieldname; "filewin:/C:/Windows/Temp/worddoc.doc" ] this creates a copy of your file in your windows temp directory you can make this any directory you like Send Event [ open document/application; File Name: "filewin:/C:/Windows/Temp/worddoc.doc" ] [ Bring application to foreground ] this opens that copy in word If you make any changes to this document, you will need to run an additional script to import the changed file back into FileMaker. You didn't open the file from within FileMaker, you saved and then opened a copy of the file. Insert File [ tableoccurance::field; "filewin:/C:/Windows/Temp/worddoc.doc" ] this imports the recently modified file back to FileMaker, remember to save any changes to the document in word first use some error trapping to make sure you are viewing the correct record before you import the changed file back in to FileMaker
Recommended Posts
This topic is 7754 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 accountSign in
Already have an account? Sign in here.
Sign In Now