Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

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.

Posted

set a variable $filename to "/path/to/file/yourfilename.doc" and use that variable in the export field contents script step.

Posted

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]

Posted

It looks like you are exporting without a file extension.

So perhaps

Set Variable [$path; Value:"file:" & Get (TemporaryParth) & GetAsText(ContainerFieldName) & ".doc"

Posted

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.

Posted

OK, here's another shot :)

Set Variable [$path; Value:"file:" & Get (TemporaryParth) & substitute ( GetAsText(ContainerFieldName ) ; ".dot" ; ".doc" )

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