[Solved] Given an odt file, can I find its custom ott file?

Using them, Making them , Finding them

[Solved] Given an odt file, can I find its custom ott file?

Postby CardTrick » Mon Oct 19, 2015 1:12 am

I have several custom templates. I have some old data (odt) files and I've forgotten which template was used when they were created. Is it possible from the odt to trace back to the ott it was based on initially?
Last edited by Hagar Delest on Thu Oct 29, 2015 12:46 am, edited 3 times in total.
Reason: tagged [Solved].
Ted
Windows XP, OpenOffice 3.2.1
CardTrick
 
Posts: 3
Joined: Fri Feb 18, 2011 9:45 pm

Re: Given a Writer odt file, can I find its custom ott file?

Postby RusselB » Mon Oct 19, 2015 1:42 am

I believe that the custom template will be automatically loaded, presuming the template is located in the template directory, when the associated .odt file is opened.
The information regarding which template was used may be (and I suspect is) located in one of the compressed files that make up the .odt
You can change the extension of the .odt file to .zip then open it with any file compression program. My preference is to use WinRar, but there are lots of others.
NOTE: If you decide to try this, I strongly recommend making a copy of the file, then work with the copy.
OpenOffice 4.1.4 and LibreOffice 5.2.7.2 on Windows 7 Pro & Ultimate
If you believe your problem has been resolved, please go to your first post in this topic, click the Edit button and add [Solved] to the beginning of the Subject line.
RusselB
Volunteer
 
Posts: 4461
Joined: Fri Jan 03, 2014 7:31 am
Location: Sarnia, ON

Re: Given a Writer odt file, can I find its custom ott file?

Postby Bill » Mon Oct 19, 2015 3:03 am

Open the document and select File > Properties. On the Properties window, click the General tab. The template should be listed there.
AOO 4.1.5 and LO 6.0.3.2 on Manjaro MATE
Bill
Volunteer
 
Posts: 6765
Joined: Sat Nov 24, 2007 6:48 am

Re: Given a Writer odt file, can I find its custom ott file?

Postby midithru » Wed Jul 27, 2016 7:06 pm

Bill wrote:Open the document and select File > Properties. On the Properties window, click the General tab. The template should be listed there.


[unsolved]
Bill, anyone, any tips on finding the original template if it does not appear in the File > Properties (General) pane? The pane shows at the bottom 'template:' followed by nothing.
OpenOffice version 4.1.2 on Mac OS Sierra 10.12.3
midithru
 
Posts: 62
Joined: Tue Jul 26, 2016 6:48 pm
Location: States

Re: [Solved] Given an odt file, can I find its custom ott fi

Postby RoryOF » Wed Jul 27, 2016 7:08 pm

If the template is not listed, OpenOffice doesn't think there is one. Perhaps the file originated in an MS Word system?
Apache OpenOffice 4.1.5 on Xubuntu 18.04 (mostly 64 bit version) and infrequently on Win2K/XP
14 October 2016 was Pooh's 90th birthday
User avatar
RoryOF
Moderator
 
Posts: 26944
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: [Solved] Given an odt file, can I find its custom ott fi

Postby midithru » Wed Jul 27, 2016 7:59 pm

I can't remember where I got the template but it's certain it was not an MS Word thing. I thought it came from createspace but when I look there now they don't have any.

Then I just downloaded a template called standardpaperback.201-500.ott, opened it in OO, looked at Template: in the properties pane, and it didn't show either. Nothing.
OpenOffice version 4.1.2 on Mac OS Sierra 10.12.3
midithru
 
Posts: 62
Joined: Tue Jul 26, 2016 6:48 pm
Location: States

Re: [Solved] Given an odt file, can I find its custom ott fi

Postby John_Ha » Wed Jan 11, 2017 8:29 pm

CardTrick wrote:I have several custom templates. I have some old data (odt) files and I've forgotten which template was used when they were created. Is it possible from the odt to trace back to the ott it was based on initially?

As a matter of interest, I think that a .ott template file is exactly the same as a .odt file except it has the .ott qualifier.

If you create fred.odt and rename it to fred.ott you then have a template.

AOO seems to read the .ott and name the opened file as Untitled 1 and treat it as a completely new document. This disables the Save ..., function, and forces the Save As ..., function so the user has to choose a new name for it. The original fred.ott is obviously unchanged.
AOO 4.1.5, Windows 7 Home 64 bit

See the Writer Manual, the Writer FAQ, the Writer Tutorials and the Writer guide.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
John_Ha
Volunteer
 
Posts: 5689
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: [Solved] Given an odt file, can I find its custom ott fi

Postby Villeroy » Wed Jan 11, 2017 9:29 pm

Open a template or any document you want to make a template from.
menu:Files>Templates>Save... and enter a name.
Now this template will be registered as "well known template" of this user.
The template file will be stored in the user profile folder.
The template is availlable in the templates organizer (menu:File>Templates>Organize...).
The template can be edited via menu:File>Templates>Edit...
You may also add your own directories to the places of "well known templates" via menu:Tools>Options>Paths.
When you create a new document from such a template, it will show the template it originates from in the file properties dialog as long as the you open the document on your computer using the profile where the template is registered.
When you open a document whose "well known template" has changed, you get a prompt that the underlying template has changed and if you want to apply the modifications to this document.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 16.04, OpenOffice 4.x & LibreOffice 5.x
User avatar
Villeroy
Volunteer
 
Posts: 25579
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: [Solved] Given an odt file, can I find its custom ott fi

Postby Villeroy » Wed Jan 11, 2017 9:31 pm

John_Ha wrote:If you create fred.odt and rename it to fred.ott you then have a template.

There is even a command line switch which lets you open any document as a new, unsaved document.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 16.04, OpenOffice 4.x & LibreOffice 5.x
User avatar
Villeroy
Volunteer
 
Posts: 25579
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany


Return to Templates

Who is online

Users browsing this forum: No registered users and 4 guests