Tuesday, August 19, 2008

Macro-Enabled Template: Step 1 - Preparing The Document

This is step one in the series showing you how to create macro-enabled templates.  For the finished product see the freebie file in this previous post.

First we need to open the file that we want to make a template of.  For this preview I've chosen just a simple blank caption. Use one of your own in making this template.  Notice in the image below that there are no blank spaces where information will be filled in, for example instead of a blank space we have COUNTYNAME, you will find shortly that this is for an important reason.


Next we are going to change a setting in office to display bookmarks.  Unless you're already a Word power user you've likely not run into a whole lot of bookmarks, nor does the average person, thus the reason they are hidden by default.

 In Office 2007 click on the Office Button, then click Word Options at the bottom of the pop up.  Next click on the Advanced tab (reading this blog qualifies you as an advanced user, pat yourself on the back),  scroll down about one-third of the way until you see the 'show document content' heading. Click OK.
In Office 2003 click Tools>Options>View and check the bookmarks box. 

Now we go through the process of inserting bookmarks.  The template will replace the bookmark contents with the values we enter into the form, so we need to insert a bookmark anyplace the information will be changed.  A couple of things to know about bookmarks before we hit it. First, bookmarks names cannot have spaces. Next, multiple bookmarks cannot have the same name, so we'll use numbers at the end of each bookmark to avoid duplicity. 

So lets go to it then.  Start by highlighting COUNTYNAME, or your variation of it and click Insert>Bookmark.  Name the bookmark countyname1.  I prefer to use all lowercase for my bookmark names, it's not a requirement though.  Continue this process for each field: circuitnumber, pfirstname, plastname, dfirstname, dlastname, casecode, casenumber, documenttitle, and any other you may have.  Be sure to not use spaces and to add sequential numbers to the end for each bookmark name.  In the template I used I didn't have any bookmarks duplicated on page one and so all those ended with 1.

Once you're finished with that... guess what.  You're document is prepared, mostly.  One final tip that I want you to do is highlight everything that you want to keep highlighted and hit CTRL+SHIFT+A.  This will force the text that we enter in the form to be all caps even if we don't type it as such.

So that's step one of this guide broken down into nice digestible parts.  I'll post the next entry on Monday.

Friday, August 15, 2008

FREEBIE: Macro-enabled template

Rest assured. We're both still alive. Decompressing after the bar exam turned into a couple of week ordeal for me as I had to quickly drive west river for a funeral, and then, since the Olympics started I've been a pretty hardcore Phelps Phan. Now my wife has told me in no uncertain terms that if she has to watch one more preliminary heat she'll... well, I'll save you from the gory details.

So with nothing more holding me back it's time to tackle the holy grail of word processing efficiency, macro enabled templates. Click on the image below to download a FREE template that we'll create using the upcoming guide. Feel free to use this as you wish (works with Microsoft Office only, when opening the file you'll have to select "allow macros".)


And for all you teach-me-to-fish types out there. The guide will start on Tuesday.

Sunday, July 20, 2008

Copyright Guidance at a Glance

9 days until the bar, bear with us. In the meantime here's a cool tool from the American Library Association for anyone who may need to determine if and when they need an author's permission to reproduce copyrighted works.

Via Lifehacker

Saturday, July 19, 2008

AP story - Web networking photos come back to bite defendants

The AP is running an interesting story about social networking sites used as an evidence gathering tool. Also see the discussion and write up on Slashdot. Here is the story on Fox News.

Thursday, July 17, 2008

Optical Character Recognition With Acrobat Pro

Optical Character Recognition (OCR) software can be a very helpful tool in the practice of law. OCR allows you to scan documents and convert the scan into an editable document. This can be especially helpful when you don't have digital copies of statements, briefs, etc. and you need to quote large portions that would be a burden to type. (keep in mind, in South Dakota the opposing party is required to send an electronic copy of discovery requests if you make a written request for it. See SDCL 15-6-5(i)). I plan to do a run down of OCR options in a future post. For now, I want to share something quick - OCR with Adobe Acrobat Pro.

The first step is getting your text into a PDF (Adobe Portable Document Format) file. Most scanners allow you to send your scanned document straight to a PDF so, in that case, you can skip this step. Keep in mind, OCR is only needed when your text is a picture, i.e. you can't select the characters individually. Picture file include those ending in extensions like .jpg, .bmp, and .gif. Sometimes .pdf files will contain pictures as well. You will know when you have a picture simply because you can't select the text. I'm going to be taking text from a source that doesn't allow you to select text. You might find this kind of problem on web pages that use Flash instead of HTML.

We will need to "capture" the image. There are a variety of ways to do this. The method every one can do is the PrtSc button (usually top right of the keyboard). When you hit this button, the computer takes a snapshot of the screen. The computer stores this in its clipboard so you can paste it into a paint program just like you had copied or cut the picture from somewhere. The down side of the PrntSc method is that it takes a picture of the ENTIRE screen and you will have to clip out the area you want. OneNote also has a "clip" feature that allows you to draw a box around the area you want. OneNote pastes the image into a OneNote page and then you will have to copy the image to a program that will make your PDF. Finally, I would recommend the program SnagIt which allows you to do screen grabs and also to record movies of anything on your computer screen. You can try SnagIt here.

Now you need to save the image as a PDF. One method is to use a PDF virtual printer like PDFCreator, I've discussed this before. Or, if you are lucky enough to have Photoshop, Photoshop may be the best option because you can control output. You simply "save as" a .pdf and then turn downsampling off in the pdf converter to ensure the highest quality output for the OCR sampling engine. Here are my settings:


The last step (and the only step if you scanned a document and saved the file as a .pdf) is to OCR the PDF file. In Acrobat Pro go to the menu item Document -> OCR Text Recognition -> Recognize Text Using OCR.

OCR is still a developing technology so your milage might vary. Here's my output:

Saturday, July 12, 2008

Tech of Law goes mobile

Read Tech of Law from your mobile device with a new stripped down, mobile-friendly version located at http://techoflawmobile.blogspot.com.

Tuesday, July 8, 2008

Twitter

Prefer Twitter to an RSS feeder?  Follow the Tech of Law updates on Twitter at http://www.twitter.com/techoflaw.