WebView Caption/Title and Icon in 2008 Version

Add-in Express™ Support Service
That's what is more important than anything else

WebView Caption/Title and Icon in 2008 Version
Programatically set the WebView Caption/Title in 2008 Version for .NET 
Garry Lowther




Posts: 52
Joined: 2009-02-22
I have downloaded the SwitchingWebViewPaneVs2005vb sample but can find no way of changing the web view caption and icon. For example, your sample shows how to load a custom form when a button is clicked in the navigation bar, but the web view form caption is inherited from what Outlook folder/view was displayed last time - this is not useful and will completely confuse end-users.
I want to be able to specify the icon and caption of this custom form programmatically ay run-time depending upon which function was selected in my navigation bar form.
Is this possible?
Your example alludes to a file called ADXOlFormGeneral.html but this file is not in the project.
Posted 22 Feb, 2009 06:14:20 Top
Fedor Shihantsov


Add-in Express team


Posts: 1188
Joined: 2005-01-11
Hello Garry,

You can change the title by the use of the ADXOlForm.Text property.


    Private Sub ADXOlForm1_ADXBeforeFormShow() Handles MyBase.ADXBeforeFormShow
        Me.Text = "My text"
    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Me.Text = "My text"
    End Sub


There is no possibility to change the web view icon.
Posted 23 Feb, 2009 07:50:10 Top
Garry Lowther




Posts: 52
Joined: 2009-02-22
Hi Fedor

Thanks for your reply.

The technique you recommend works - almost!

The loaded .Net form caption now says "Inbox - My text"
using your example above i.e. Outlook insists on prefixing the text "Inbox - " to the caption.

I do think that end-users will be confused by this as well as the icon to a lesser extent.

Are there any other ways (even Outlook API) to con Outlook into showing what I want?

Regards

Garry.
Posted 23 Feb, 2009 09:17:48 Top
Fedor Shihantsov


Add-in Express team


Posts: 1188
Joined: 2005-01-11
Unfortunately, there is no way to avoid the prefix.
Posted 24 Feb, 2009 06:47:44 Top
Garry Lowther




Posts: 52
Joined: 2009-02-22
Hi Fedor

Is that because of limitations in Outlook or Add-In-Express?

Will the forthcoming Version 9 of Add-In-Express allow for full customisation of the Caption/Title and Icon?

Regards

Garry.
Posted 24 Feb, 2009 11:12:33 Top
Fedor Shihantsov


Add-in Express team


Posts: 1188
Joined: 2005-01-11
No, it is an Outlook limitation.
Outlook combines a folder name and the HTMLDocument Title tag.

Also Outlook does not provide a possibility to change a folder icon which is displayed in the title.

New version 5 will allow to show the icon under web view title as seen on the picture:

User added an image
Posted 24 Feb, 2009 13:05:33 Top