View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
zoddiax zoddiax is offline
external usenet poster
 
Posts: 8
Default Excel & Web Browser Embedding

Can you please help me open excel 2007 files in Windows Form Applications
using Web Browser control...

Following is my code:

private void button1_Click(object sender, EventArgs e)
{
webBrowser2.Navigate("D:\\Sample.xlsx",true);
}

Whenever I execute this code, I get Open/Save/Cancel dialog and when I
choose Open the file opens separately.

I want to embed my excel files in web browser control.

Any help will be greatly appreciated.

Thanks.