dyowee

Good day!

This is just an idea I had, but is it possible to host an ASP.NET application within Outlook 2003, or 2007

Thanks!



Re: Visual Studio Tools for Office ASP.NET application in Outlook 2003? 2007?

Ji Zhou ¨C MSFT

Hi Dyowee,

What do you mean about hosting an ASP.NET application in Outlook I suspect that you just want to make the Outlook¡¯s Read Pane as a website explorer and can display pages developed by ASP.NET. And user can interact with the server by interface exposed in the page. All logical codes will be executed in server side and returns data to Outlook mail, right

Oh, it is really a cool idea! But, I suspect its feasibility for it is too complicated and as far as I know, no existed technology is supported to do that directly. And I aslo doubt about if it is worth to do this because all of these can be achieved just send a mail and include an asp.net website¡¯s address, which is also convenience for most of users.

By the way, of course, this is not a VSTO related issue.

Thanks

Ji






Re: Visual Studio Tools for Office ASP.NET application in Outlook 2003? 2007?

dyowee

Thank you very much for your response. =)

Actually, what I want to do is something like when you set the home page of a folder and check the 'Show home page by default for this folder' in its Properties. I wanted to add a button to the Navigation Pane so that when it is clicked, the web page will be shown, but I guess adding a button to the Navigation Pane is not possible. Any more ideas Ji =)

Thanks a lot!





Re: Visual Studio Tools for Office ASP.NET application in Outlook 2003? 2007?

Sue Mosher - Outlook MVP

You can't put a button on the navigation pane, but what about a toolbar button





Re: Visual Studio Tools for Office ASP.NET application in Outlook 2003? 2007?

dyowee

Good day!

I think a toolbar button would be OK, but how do I imitate the way when a folder's property is set 'Show home page by default for this folder', that when you click the folder, the main explorer window show the whole HTML browser

Thanks!





Re: Visual Studio Tools for Office ASP.NET application in Outlook 2003? 2007?

Sue Mosher - Outlook MVP

You either set those properties (WebViewURL and WebViewOn) for a folder, or you use Outlook's internal browser by returning the correct CommandButton -- ActiveExplorer.CommandBars.FindControl(26, 1740) -- and then set the button's Text property to the URL you want to display.





Re: Visual Studio Tools for Office ASP.NET application in Outlook 2003? 2007?

dyowee

But this would show the URL on the dropdown on top of Outlook... =(





Re: Visual Studio Tools for Office ASP.NET application in Outlook 2003? 2007?

Ji Zhou ¨C MSFT

You can get the handle of Web Toolbar and set its Visible property to false.

Thanks

Ji






Re: Visual Studio Tools for Office ASP.NET application in Outlook 2003? 2007?

MauricioUY

Hello,

I'm working with Outlook 2003 and .NET 2003 over windows XP, I want to do something like you were talking, something like this:

--------------------------------------------------------------------------

Outlook.Explorer lExplorer = olkApp.ActiveExplorer();
Microsoft.Office.Core.CommandBarComboBox lURL;

lURL = (Microsoft.Office.Core.CommandBarComboBox)lExplorer.CommandBars.FindControl(26, 1740,
System.Reflection.Missing.Value,System.Reflection.Missing.Value); //1740
lURL.Text = "http://www.google.com";
lURL.Execute();

--------------------------------------------------------------------------

but this code throw an error in this line: lURL.Text = "http://www.google.com";

the error: "error: cannot assign '"http://www.google.com"' into 'lURL.Text'"

Inmeddiate window:

lURL == null
false
lURL.Text
error: 'lURL.Text' does not exist
lURL.Text = "
http://www.google.com";
error: managed EE does not understand expression's syntax
lURL.Text = "
http://www.google.com";
error: managed EE does not understand expression's syntax
lURL.Text = "
http://www.google.com"
error: cannot assign '"
http://www.google.com"' into 'lURL.Text'

--------------------------------------------------------------------------

lURL have a SystemComObject, but I could not access its properties......

any ideas

thanks a lot,

Mauricio.