Click here to Skip to main content
15,348,881 members
Articles / Web Development / XHTML
Posted 22 Jun 2004


41 bookmarked

Displaying Latest Code Project Articles in Outlook Today

Rate me:
Please Sign up or sign in to vote.
4.56/5 (2 votes)
27 Jun 20044 min read
Displaying the latest Code Project articles in Outlook Today.

Note: Use the DLL I provided only with Outlook 2000, otherwise repeat the steps described to modify your version.

Sample Image - OutlookToday.jpg


Recently, I came across Code Project's RSS feed located in the community menu under CodeProject Stuff. After searching the web, I found a couple of neat free RSS readers and decided to use RSSReader. I also found some not-so-free Outlook add-ins that displayed RSS feeds directly in Outlook Today.

Note: There's also a customized feed for each category that can be obtained from the OPML.

Since I wasn't going to shell out any money for every new software that I found interesting, I searched the web some more to see if there's another way for me to display the data in Outlook.

What I found was that Outlook Today's HTML code was actually compiled into a DLL called OUTLWVW.DLL where Microsoft Office is installed. To work around this, I also needed a resource viewer that would recompile the DLL for me once it was modified. Thus, Resource Hacker was needed.


Always backup any Microsoft/Windows files that you change before modifying them.

Modifying Outlook Today

Open Outlook and go to the Outlook Today page. If you click on the customize button in the upper-right corner, you'll see a "Styles" section with a dropdown menu containing 5 options. These different styles can each be modified to display information that the user wants.

Download Resource Hacker and search for OUTLWVW.DLL. This is usually located under "C:\Program Files\Microsoft Office\Office10\1033\".

Run the Resource Hacker and open OUTLWVW.DLL. Do a search for "Outlook.htm". This should be a folder under the "23" folder. The 5 style options in the customize Outlook Today page correspond to Outlook.htm and Outlook(i).htm, where (i = 1, 2, 3, 4).

Double-click on 1033 under Outlook.htm and modify the HTML code to display the latest Code Project articles.

The best way to do so is to add your changes at the bottom of the Outlook Today page. Scroll down to the bottom until you see a script section as follows:

<!--<span class="code-comment">

Add the following block of code before the script section and after the last table's end tag.

<table border=0 cellspacing=0 cellpadding=0 width=100%>
      <table cellpadding=2 cellspacing=0 border=0 width=100%>
          <td width=10px class=borderTop></td>
            <!--<span class="code-comment"> BEGIN Codeproject Latest Code --></span>
            <script language="Javascript">
            var CP_table_headercolor   = "#D4D0C8";
            var CP_header_fontface     = "Verdana, sans serif";
            var CP_header_fontcolor    = "white";
            var CP_header_fontsize     = "2";
            var CP_link_fontface       = "Verdana, sans serif";
            var CP_link_fontsize       = "1";
            var CP_link_target         = "_blank";
            <script language="Javascript" 
            <a href="" target="_blank">
The Code Project</a> is a place where developers can contribute 
their own ideas, share their own code, and just hang out 
and help each other learn. 
Click <a href='' 
target=_blank>here</a> to view the latest updates.
            <!--<span class="code-comment"> END Codeproject Latest Code --></span>
          <td width=6px class=borderTop></td>

Click on the "Compile Script" button after making sure you have a backup copy of it. Close Outlook if you still had it running so that you may save the DLL, otherwise it won't save. Restart Outlook and go to the Outlook Today page to see the changes made. If nothing appears different, go to the customize page and make sure that the style you modified is the style selected.

As you may have guessed, the code above does not actually use the RSS feed code, but uses the JavaScript feed instead. The reason why I did not use the RSS feed was that I would have to display the RSS feed using an XSL stylesheet and save the XSL file somewhere locally (preferably in the same location as the DLL).

However, this can easily be done by copying the following code instead.

<table width="90%" border="1">
    xmldoc = new ActiveXObject("Microsoft.XMLDOM");
    xmldoc.async = false;
    xsldoc = new ActiveXObject("Microsoft.XMLDOM");
    xsldoc.async = false;
    xsldoc.load("file:///C:\\Program Files\\Microsoft 

The stylesheet that I'm using is a slightly modified version of Tutu's RSS Viewer stylesheet.

Note: The full path to the file has to be used, otherwise a script error will be displayed.

RSS Feed vs. JavaScript Feed

The JavaScript feed makes it easier to display all the latest articles since the HTML display code is written inside the file and maintained by Code Project. However, the RSS Feed code allows you to write your XSL stylesheet (or borrow someone else's :-)) to display the data any way you want to. If there was an online stylesheet for Code Project's RSS Viewer (suggestion), then the RSS feed would be simpler.

Note: The RSS feed and the JavaScript feed do not display the same exact information, and the RSS feed seems to be updated more often.

Outlook Express

The main page for Outlook Express can be found in "C:\Program Files\Outlook Express\msoeres.dll" under 2110\FRNTPAGE.HTM\1033. Add your code after the last </TR> tag before the text "When Outlook Express starts, ....".

Note: Outlook Express does not add scrollbars for each section. If the Code Project latest articles feed was added, the other sections begin to shrink. If you need to implement this for Outlook Express, you will have to modify Microsoft's code completely to make it more efficient.

Creating a New Outlook Today Page

If you're so inclined, you can create a completely new Outlook Today page without having to recompile the Outlook DLL. To do so, right-click on the Outlook Today icon and select Properties, then click on the Home Page tab, and browse for your customized HTML file.

Points of Interest


  • 2004-06-24 - Updated text and image.
  • 2004-06-23 - Initial draft.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Bassam Abdul-Baki
Systems Engineer
United States United States
Bassam Abdul-Baki has a Bachelor of Science (BS) degree and a Master of Science (MS) degree in Mathematics and another MS in Technology Management. He's an analyst by trade. He started out in Quality Assurance (QA) and analysis, then dabbled in Visual C++ and Visual C# programming for a while, and then came back to QA and analysis again. He's not sure where he'll be five years from now, but is looking into data analytics.

Bassam is into mathematics, technology, astronomy, archaeology, and genealogy.

Comments and Discussions

GeneralDo this without hacking the dll Pin
Simon Capewell4-Jul-04 22:31
MemberSimon Capewell4-Jul-04 22:31 
GeneralRe: Do this without hacking the dll Pin
Bassam Abdul-Baki5-Jul-04 6:09
professionalBassam Abdul-Baki5-Jul-04 6:09 
GeneralDifferent Outlook versions Pin
spforeman23-Jun-04 23:17
Memberspforeman23-Jun-04 23:17 
GeneralRe: Different Outlook versions Pin
Bassam Abdul-Baki24-Jun-04 2:33
professionalBassam Abdul-Baki24-Jun-04 2:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.