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.
Export .dot from container field to open in word as .doc - Help please
Started by bigwang916, Feb 17 2012 03:50 PM
container export field
5 replies to this topic
#1 OFFLINE member
Posted 17 February 2012 - 03:50 PM
#2 ONLINE I have an idea!
Posted 17 February 2012 - 04:50 PM
set a variable $filename to "/path/to/file/yourfilename.doc" and use that variable in the export field contents script step.
Stephen Dolenski
FM Forums.com Founder, Administrator
FM Forums.com Founder, Administrator
#3 OFFLINE member
Posted 21 February 2012 - 10:11 AM
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]
Right now I have this script running:
Set Variable [$path; Value:"file:" & Get (TemporaryParth) & GetAsText(ContainerFieldName)
Export Field Contents [ContainerFieldNAme; "$path"; Automatically open]
#4 OFFLINE journeyman
Posted 21 February 2012 - 10:16 AM
It looks like you are exporting without a file extension.
So perhaps
Set Variable [$path; Value:"file:" & Get (TemporaryParth) & GetAsText(ContainerFieldName) & ".doc"
So perhaps
Set Variable [$path; Value:"file:" & Get (TemporaryParth) & GetAsText(ContainerFieldName) & ".doc"
"I don't think I am a Newbie anymore. But I still feel like one sometimes :)"
Ron Cates
Ron Cates
#5 OFFLINE member
Posted 24 February 2012 - 09:37 AM
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.
#6 OFFLINE journeyman
Posted 24 February 2012 - 04:05 PM
OK, here's another shot 
Set Variable [$path; Value:"file:" & Get (TemporaryParth) & substitute ( GetAsText(ContainerFieldName ) ; ".dot" ; ".doc" )
Set Variable [$path; Value:"file:" & Get (TemporaryParth) & substitute ( GetAsText(ContainerFieldName ) ; ".dot" ; ".doc" )
"I don't think I am a Newbie anymore. But I still feel like one sometimes :)"
Ron Cates
Ron Cates
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users































