Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Add-Ins / October 2004

Tip: Looking for answers? Try searching our database.

maybe OT. Outlook 2003 HTML Editing...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
0,4 - 10 Oct 2004 14:15 GMT
Hi everybody,
                  I'm looking for an "how-to" but I'm writing here because
I'd like to write an outlook add-in if there is any solution to this
problem. I use Outlook Express to compose email and I love it because I can
control HTML messages directly by "HTML Source" tab.
I can create HTML messages in Outlook 2003 but I can't access to HTML code
for fine tuning the code. So I'd like to know:

o    How can I activate this feature (by Regedit, by an existent utility)?
o    Can anyone help me writing an adding doing this?

Thank you!!
Adrian
Mark J. McGinty - 11 Oct 2004 00:43 GMT
> Hi everybody,
>                   I'm looking for an "how-to" but I'm writing here because
[quoted text clipped - 10 lines]
> Thank you!!
> Adrian

Man I wish I had the answer, doesn't it suck that OE is so much more capable
in this area?  And message properties too, OE lets you view the raw source
as sent via SMTP, while Outlook only lets you view the routing headers...
bums me out every time I think about it.

There is a sleazy way to work around it, won't give you all of the
functionality (like color-coded keywords in HTML source, etc.) but may be of
some use:

0. Download/install Outlook Redemption
1. Open the VBA editor from inside of OL
2. Create a form (I'll call it SourceEditorForm) with one control, a text
input (I'll call it HTMLSource.)
3. Add 2 event handlers as shown below

   Private Sub UserForm_Initialize()
       HTMLSource.Text = buf
   End Sub

   Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)
       buf = HTMLSource.Text
   End Sub

4. Create a macro, and add the following global variable declaration and
function [which will be called by the macro] to the module:

Public buf As String

Sub EditHTMLSource()
   Dim oSafeItem As Object
   Set oSafeItem = CreateObject("Redemption.SafeMailItem")
   oSafeItem.Item = Application.ActiveInspector.CurrentItem
   Load SourceEditorForm

   buf = oSafeItem.HTMLBody
   SourceEditorForm.Show vbModal
   oSafeItem.HTMLBody = buf

   Unload SourceEditorForm
   Set oSafeItem = Nothing
End Sub

5. Create a custom button in the message composer window to call the macro

To be sure this lacks a lot of things, it needs to make sure the message is
HTML, should check for empty strings, should make sure oSafeItem isn't
nothing -- should really probably oughta be an AddIn... but what the hell?
:-)

-Mark
0,4 - 27 Oct 2004 09:37 GMT
> > Hi everybody,
> >                   I'm looking for an "how-to" but I'm writing here because
[quoted text clipped - 15 lines]
> as sent via SMTP, while Outlook only lets you view the routing headers...
> bums me out every time I think about it.

Hi Mark, thank you very much and excuse me, please for my late in aswering
you. I was really busy.
Your Redemption/VBA code It's great!

I Installed the Redemption library and created Form/Macro code but my
Outlook 2003 doesn't work :|.

The message editor says "unable to find projectname.macroname" but my macro
is in the list of macros!
(menu Tools | Macro). It's a big enigma.

I've got Outlook in installed on my PC and my Notebook. Do you know any
utlity to syncronize the content :|?

Thank you very much
Adrian

> There is a sleazy way to work around it, won't give you all of the
> functionality (like color-coded keywords in HTML source, etc.) but may be of
[quoted text clipped - 41 lines]
>
> -Mark
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.