In light of Francis246's comment, the following applies for EHM 2007. If you're looking for support for the freeware version then please make that clear because otherwise we assume you're referring to EHM 2007. Although the below applies to EHM 2007, I can probably set this up for the freeware version for you.
Setting up the correct export options
1) When you have loaded your game, click on the Options menu in the top right of the screen (this is visible on any screen in EHM).
2) Click on Preferences from the Options menu.
3) Under the Game section you will see an option that says "Print To". Change this option to "HTML File". I find that this is the best option to use because it will export it as a pre-formatted table whereas using a Text File doesn't include any such formatting/layout.
4) Click on OK to save the settings.
Exporting the rosters
1) Go to the team whose rosters you wish to export.
2) In the bottom left corner you'll see a button in the bottom left hand corner that says "Print". Click on this and then click on "Roster".
3) This will bring up an option that allows you to set a filename and to choose where to save it. When you enter a filename, you don't need to add the file extension as this is done automatically.
Formatting the table
You might be happy with the way in which the html file is formatted. If you're not then this is where you can use a CSS file to easily change the format of every html file that you have exported.
1) In the folder where you have saved your html files, create a new text document and name it
ehm.css. Note that this should change the file extension from .txt to .css.
2) Open
ehm.css in Notepad and paste in the following (this is just an example that you can easily tweak):
Code: Select all
#rosters
{
font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
width:100%;
border-collapse:collapse;
}
#rosters td
{
background-color:#ecf3f7;
}
#rosters td, #rosters th
{
font-size:1em;
border:1px solid #b7b7b7;
padding:3px 7px 2px 7px;
}
#rosters th
{
font-size:1.1em;
text-align:left;
padding-top:5px;
padding-bottom:4px;
background-color:#0a8ed0;
color:#ffffff;
}
3a) Open your html file (the file with your rosters table) in Notepad.
3b) You'll see on the third, fourth and fifth lines that it says:
Code: Select all
<style type ="text/css">
<!-- body,td,th { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; } td { padding: 2px; border-style: solid; border-width: 1px } -->
</style>
Replace this text with the following:
Code: Select all
<link href="ehm.css" rel="stylesheet" type="text/css" />
So the top of the file should look like this:
Code: Select all
<HTML>
<head>
<title> Washington Capitals - Wednesday August 30th 2006</title>
<link href="ehm.css" rel="stylesheet" type="text/css" />
</head>
<body>
3c) Near the top of the file (roughly line seven) you will see the following:
Code: Select all
<TABLE BORDERCOLOR="#000000" WIDTH="90" ALIGN="CENTER">
Change this to:
3d) Using the "Find and Replace" function in Notepad (just press Ctrl+H), find the following:
and replace with:
3e) If you want to add a nicer table header then delete the following (it starts on roughly line nine):
Code: Select all
<TD>No</TD>
<TD>Name</TD>
<TD>Position(s)</TD>
<TD>Nation</TD>
<TD>Born</TD>
<TD>Age</TD>
<TD>Height</TD>
<TD>Weight</TD>
<TD>Wages</TD>
<TD>Expires</TD>
<TD>Reputation</TD>
and replace it with this:
Code: Select all
<TH>No</TH>
<TH>Name</TH>
<TH>Position(s)</TH>
<TH>Nation</TH>
<TH>Born</TH>
<TH>Age</TH>
<TH>Height</TH>
<TH>Weight</TH>
<TH>Wages</TH>
<TH>Expires</TH>
<TH>Reputation</TH>
I know this looks like a lot of text, but it's actually very easy to achieve and takes less than a minute to setup for each html file. You can then modify the css code I provided above to your taste - e.g. change the colours, add padding, spacing, margins, etc.
I have attached a sample file to demonstrate. Just extract the files into a folder and then open the html file in your web browser.