Newbies MDB Posted April 5, 2021 Newbies Posted April 5, 2021 Hi everyone, sorry to bother you with beginner questions, but I am unable to load a .docx document from a container field. As I would like to enable my database for DirectWeb-access, storing my docx-templates inside the database seems easier. For that I have created a table (Files) and container fields (global). One of the latter is the Aktennotiz-field in a dedicated "file container" layout. My script : ScribeDocLoad [ Container Or Url: "Files::Aktennotiz" ] ScribeDocSubstitute [ Search Text: "$Case$"; Replace Text: DBC::Case ] ScribeDocSubstitute [ Search Text: "$User$"; Replace Text: DBC::Operator ] ScribeDocSaveFile [ Select: On; Result: ; Path: Get ( DesktopPath )&"Aktennotiz_"&DBC::Case&".docx" ] Resulting Error messages: ScribeDocSubstitute only supports the Microsoft Word, Microsoft PowerPoint and Microsoft Excel (2007 and newer) file format (2x) Writing to output file is not supported for the file param.txt Loading my docs worked with : ScribeDocLoad [ Container Or Url: "/Volumes/DOKUS/Vorlagen/Vorlagen_Scribe/Aktennotiz_Scribe.docx" ] I have tried to set the script up as in the demo, but didn't succeed. Help would be much appreciated, thanks Marc
nick360Works Posted April 5, 2021 Posted April 5, 2021 Hi Marc, Thanks for explaining the issue clearly. It looks like your script and logic are fine. The issue may be with the file itself. Scribe requires Microsoft Word (2007 or later) for the .docx format. You may need to save the file in a more current version of word. You can also try using Scribe on some different .docx files, and see if they are triggering the same error. What version of Scribe are you using? Nick 360Works
Newbies MDB Posted April 5, 2021 Author Newbies Posted April 5, 2021 Hi Nick, thanks a lot for this input. My Word Version is 2016 and Scribe is the Demo-Version of 4.0716, which I plan to license for FMS-Web use, as soon I can bring it to work locally. I tried the script with other files. I wondered if there are any requirements for the container fields, as I am using them for the first time. Along with the error-messages, the output is an empty Word File. Marc
nick360Works Posted April 5, 2021 Posted April 5, 2021 Marc, Could you please send an email to our support email [email protected] with a copy of your document, so I can run some tests on it. I can then send you a demo database that runs the substitutions for you as an example. Nick 360Works
Newbies MDB Posted April 5, 2021 Author Newbies Posted April 5, 2021 Hi Nick, it's on its way. I very much appreciate you help, thanks. Marc
Newbies MDB Posted April 6, 2021 Author Newbies Posted April 6, 2021 Hello, I have found a solution for the problem. There was apparently a syntax error in my script, which initially was: ScribeDocLoad [ Container Or Url: "Files::Aktennotiz" ] When taking away the "", it works : ScribeDocLoad [ Container Or Url: Files::Aktennotiz ] Maybe that helps others too. Best regards, Marc
nick360Works Posted April 6, 2021 Posted April 6, 2021 Marc, Thanks for the update, and for sending in the file. Please let us know if you need any other assistance.
Recommended Posts
This topic is 1383 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