February 17, 201213 yr Hi guys. I want to export a .dot file that's stored in a container and open as .doc. I have a button next to the container that will export the file to the default temp storage location and open the file automatically. The file only opens as .dot. Is there a way to make it open as .doc? Thank you.
February 18, 201213 yr set a variable $filename to "/path/to/file/yourfilename.doc" and use that variable in the export field contents script step.
February 21, 201213 yr Author I am storing the files directly in the database, it is not a reference link. Right now I have this script running: Set Variable [$path; Value:"file:" & Get (TemporaryParth) & GetAsText(ContainerFieldName) Export Field Contents [ContainerFieldNAme; "$path"; Automatically open]
February 21, 201213 yr It looks like you are exporting without a file extension. So perhaps Set Variable [$path; Value:"file:" & Get (TemporaryParth) & GetAsText(ContainerFieldName) & ".doc"
February 24, 201213 yr Author Thank you. I believe adding the .doc at the end just adds an extra filename. It isn't actually opening it as a .Doc file. When you go to Save As in the document, you'll see the default name to be Test.dot.dot.
February 25, 201213 yr OK, here's another shot Set Variable [$path; Value:"file:" & Get (TemporaryParth) & substitute ( GetAsText(ContainerFieldName ) ; ".dot" ; ".doc" )
Create an account or sign in to comment