Wednesday, August 19, 2009

OOW Interoperability - Custom Fields from Word Docs

Long and rambling intro - skip to the next heading if you want to get to the real content
I had a colleague phone from Wellington today needing to work on a document riddled with custom fields, only, it was a Word doc and he wanted to work on it in his Linux environment (I think, either way, he wanted to use Open Office). Problem was though, he couldn't work out how to edit the fields once the doc was open in OOW.

So I suggested Ctrl+F2 and check out the Variables Tab and the User Fields section. Nope, not there. Ok, try double clicking on one of the fields. Yep - opens the Fields Dialog, to the DocInformation tab and there are all the fields listed under the Custom type. But they're not editable there. So, I hunted around, and I have to confess this one took a bit of hunting and adding puzzle pieces together from a variety of hints found on disparate forums, help files, and feature update info, but I got there in the end. So for your knowledge and edification, this has been a very long and grutuitiously babbly intro to:

Beating Fields into Submission When You're Working on a Doc Created in Word
A quick recommendation first up - if the document in question is one you intend to use over and over again and create mutliple versions with different values in the various fields, I would strongly recommend taking the time to go through it and actually put in OpenOffice native fields and remove the converted Word Custom fields. But if it's just a one off use, go ahead and use the instructions below to change the field values to what you need them to be.

NB: remember I am using OOW 3.1 - I believe what I'm about to describe has worked since about 2.4, but I have no way of testing that, so do get the latest version!

  1. Open your custom-field-riddled MS Word document in Open Office Writer.
  2. Do a Save As, choose the default Open Office format (odt) and save the file.
  3. Now close it. Seriously, just close the file. The rest simply won't work if you don't close it. I know, I've tried, many times in many ways. It won't work.
  4. Open the recently re-saved file (the odt).
  5. Go to File | Properties
  6. Click on the Custom Properties tab
  7. Here you will find all of the fields that had been created as custom fields in Word. You can change their values in here, you can add more, you can remove them as well. (NB: If you didn't believe me at step 3 and insisted on not closing the file before proceeding, you will now discover that every change you make in this tab is a teaser only - close the dialog, open it again and you'll note that the updates you have made - poof! They've disappeared. Bugger. Should have closed the file at step 3. Better do it now and go back to step 4.)
  8. Once you've updated the values to what you want them to be, close the dialog box.
  9. Your document won't look any different at this point. This is where these fields differ from the ones I've described in an earlier post. They don't automatically update. Easy fixed, just hit F9 (or go to Tools | Update | Fields) and all of the field instances will be updated throughout the doco (unlike word, you don't have to do a Select All first).
  10. Save the file.
Easy once you know how huh?

Monday, August 17, 2009

OOW - Setting your default fonts

I've just reset my user profile (I'll tell you why at a later date providing it fixes what I'm hoping it will!) and consequently need to re-set my default fonts, so I'll take the opportunity to document it while I'm at it. This is one of those things that took me a little while to work out. To be fair, in comparison to Word though, it is a lot simpler in OOW, and it only took me a while to find because again, I'd been conditioned by MS Word to expect this to be difficult.

  1. Go to Tools | Options
  2. Open the OpenOffice.org Writer menu and select Basic Fonts (Western)
  3. Change your default fonts to whatever you prefer. (Personally I hate Times New Roman, so I I never leave it on this!)
You have to admit, this is a whole lot easier than having to locate your normal.dot and setting the fonts like you have to in Word. (Have I mentionted lately that I continue to be impressed with OOW?)

Sunday, August 9, 2009

The Challenge - Update and What Next

I've been sitting here playing silly games this evening, in between catching up on some of my RSS feeds and have been feeling a little guilty that I haven't blogged in a bit on my challenge. Then I got to thinking about what to post next. Then I went back to my original Challenge post and realised that I've actually acheived all of the goals I set out to. Which is great. Except that I'm not ready to stop this little blog journey. So I'm going to just modify my intention statement a little bit.

From here on in, the purpose of my posts will be about sharing tidbits I'm finding about Open Office Writer, in User 101 style instructions. (Occaisionally I'll get into a bit more technical detail, but I'll continue to indicate when I'm doing that!) This isn't really a change to what I've been doing, I'm just being clear about it!

One of the things I'd like to be able to do, is to help people make the switch from MS Word to OO Writer. So I'm also completely open to questions - some of my posts so far have been inspired by people commenting about their pet hates in OOW to me.

See my previous post on my 6 solutions philosophy, and you'll understand that whatever your pet peeve is, I'm pretty confident I can find a way around it, unless of course you're being intentionally difficult! (And if I really genuinely can't come up with something, I'll seriously consider logging a feature request if there isn't already one).

So feel free to leave a comment if you have a question, or message me on Twitter. There is a huge community out there supporting OOo and quite honestly, the answers are already there, but frankly, I enjoy finding them, and a lot of them I find are often very technically phrased and not especially user friendly at times - I like making things 'graspable', so you'll be doing me a favour. :)

There it is! More from me soon!

My Philosophy: At least 6 solutions

I have this philosophy that there are at least 6 solutions to every problem.

This isn't an original philosophy. I heard it first from a musician at a music conference about 15 years ago, and I suspect he wasn't the one who coined it either, but it's a damn good philosophy and has served me well ever since.

There are at least 6 solutions to every problem - you only have to find one - and that can't be too hard!
You could call it tenacity, perserverence, optimism, or a mixture of all 3.

Monday, August 3, 2009

Minimising the irritation factor of context senstive toolbars

One thing that a colleague had mentioned to me as being the thing that annoyed him most about Open Office is the way that the display jumps around when you have tables in a document. I recognised exactly what he meant today while I was converting over half of my monthly report documents to OOW. It's really irritating! BUT, now I know how to stop it.

So firstly, for those who don't know what I'm on about, when you click into a table in an OOW document, it turns on the context sensitive Table Toolbar. Now, I have my toolbars docked as I don't particularly like them floating over my workspace, so my Table Toolbar is down the left hand side of my screen. However, when this comes on, it takes up some additional space in your application window, so OOW reformats the screen display to recenter your document in the window - generally pushing it to the right by a centimetre. Seriously disconcerting.

But easily fixed! Follow the destructions....
  1. View | Toolbars | Customize....
  2. Click on the Toolbars Tab
  3. Click the "New..." button
  4. I called mine PlaceHolder, whatever, give it a name
  5. I did add a button to mine (the Toolbars button in fact) but I've just checked and you don't actually even need to have a button, you can just leave it empty.
  6. Hit OK to close the customize dialogue.
  7. Now, View | Toolbars | select your new toolbar (PlaceHolder in my case)
  8. Drag it to the wherever you have docked the context sensitive toolbar that's annoying you (it may not be the tables one after all!), and position it either at the top or bottom (I went for the bottom).
  9. Now, the space is already allocated in your application window for a toolbar in that position, so when the Context Sensitive one is activated, your document position doesn't get adjusted. Phew!
Thanks to the Open Office forum for the answer on this one.

Thursday, July 30, 2009

OOW switch - Milestone achieved

I am delighted to announce that I have just successfully completed recreating my monthly report template in Open Office Writer. I still need to create a new version for each report, but with the template done, that will be simple.

NB: today's efforts were on my work machine - so Win XP Pro.

Things that took a bit of investigation, but now that I know how are easy (details where appropriate in later posts):
  • formatting the first page so that everything on it is aligned vertically centered. (using frames)
  • Creating unnumbered headings in a document that uses outline numbering
  • changing cell colours in a table (not the whole table, just a cell - slightly counter-intuitive in that you have to go to 'Table' not 'Cell' to format this.)
  • Getting the layout of my Table of Contents right - this merits some more play-time.
  • Creating custom colours in the palette - Tools | Options | Openoffice.org | Colors
Things that surprised me in how easy they were:
  • paste special - Ctrl+shift+v and then select your format - useful for pasting in Excel graphs (choose Bitmap) - actually, these came through flawlessly, which was also unexpected based on past experience (and they print nicely to boot!)
  • creating a table from formatted data - I wanted to copy a table of data from excel, but pasting it straight in brings in all sorts of revolting styles, so instead I did a paste special | unformatted text and then just selected the text and hit the table button. Hey Presto! A perfectly formatted table of data.
One thing that marred the experience slightly:
  • Early on in this, but enough into it to annoy me because I hadn't saved, Open Office Writer hung. Completely and irretrievably. I had to kill the process. I lost everything I'd done, and I was up to page 3 by this stage! At least it was all easier the 2nd time around for knowing what I was doing. But this behaviour is one I'm wary of!!!

Sunday, July 26, 2009

More on Fields - mutliple formats - especially dates

I've been thinking over the last few days that when I was raving about OOW's implementation of fields, I had neglected to test a couple of things which I actually use extensively in my documents, and honestly, I was preparing myself to have to write my first "word does this better" post. I was wrong again. But I'm getting ahead of myself!

What I hadn't tested: using a single date field (call it 'Release Date') multiple times in a document, with several different formats.

So for example, using July 25th 2009 as the date in question, the following formats are required:
Front page: July 2009
Headers: 25/07/09
Creation date: -Jul-09 (I will be manually entering the day number as I create the doco)
QA Date & final revision date: same as creation date, but of course, I'll still be entering the day number manually.

In MSW, I have to go to Insert Field | Document Information | DocProperties, select the "ReleaseDate" field (which I defined earlier from another menu), then click the Field Codes button and remember the highly obscure string to append after the field - "\@ "MMMM yyyy".

Sometimes, if I haven't done this for while, I have to search through Help to try and remember what on earth the correct string is - I simply cannot seem to find a way to do this by selecting GUI options, it does seem you really do have to remember 'backslash at-sign' and then the appropriate format. Again - why was I so forgiving of Word for putting me through this torment???

Anyways, using multiple formats in OOW is a cinch. Lets assume you've already defined your field, but haven't inserted it yet.

Front Page "July 2009"
  1. Click at the place you need the date field, hit Ctrl+F2, make sure you have the Variables Tab selected
  2. Select User Field in the left column, your 'Release Date' field in the middle Selection Column, then
  3. In the right column, click on Additional Formats....
  4. Select Category of Date, and then scroll through the list of formats
  5. if your desired format isn't there, select something close and then modify the format field down the bottom - in this case "MMMM yyyy"
  6. Hit ok, hit insert. Close the dialog box and proceed to your document history section in the document, ready to use the field again.
Document history "-Jul-09"

So, you're at the insertion point
  • repeat as above up to 4
  • this time, you pretty much will have to do a custom format, so in the Format Field type "-MMM-yy" (again, you can pick something similar and then just modify the code - it will create you a custom format automatically)
  • and again, hit ok, hit insert, close the dialog, and continue inserting the date field in as many formats as you require.
But wait! I want to use this document as the basis for the new report in August!
No problem.

Changing the date
  • Double click any* one of the dates you've inserted, where the format includes all 3 of day, month & year.
  • You'll probably notice that the value is now just a number and seriously doesn't look like a date. Don't worry. Just type in the date you want it to be, lets say 21 August 2009, or, 21/08/09, type either in and click the tick.
  • Close the dialog box.
Hey Presto! ALL of your Release Date instances have been updated to the new date, and the correct format preserved for each one.

Extra for Experts (and geeks)
* that little star unfortunately means that while testing this, I did come across a somewhat unexpected behaviour. To avoid encountering it, just follow the instructions I've given and make sure you select one of the date entries that includes the day, month and year before updating the date.

What I found:
When I double clicked on the instances that didn't have the day, but just the month and year and tried to update the date, OOW got seriously confused, changed all the instances to whatever format I inputted and then I had to go back to another of the fields (with all 3 parameters) and update it, but it still wouldn't change to the new date, so I closed the dialog, and then double clicked the same one again and this time it would update them all. So no harm done (alll of the instances still have all the correct formatting), but if you tell OOW that 'december 2009' now needs to be '21 January 2009' it doesn't know what to do with that 21. So, yeah, programatically that makes sense, but from a usability perspective, it means I needed to be more specific in my instructions.