Excel won't embed into WebBrowser in WinsForm

  • Thread starter Thread starter Joe
  • Start date Start date
J

Joe

Hi

I am able to embed Excel into a WebBrowser on my Dev machine but on a client
machine
an instance of Excel starts in it's own window.

Anyone seen this before???
Thanks


Browser = new WebBrowser();

Browser.Dock = DockStyle.Fill;

Browser.Location = new System.Drawing.Point(0, 0);

Browser.Name = "Browser";

Browser.Size = new Size(223, 443);

Browser.TabIndex = 0;

pnlPreview.Controls.Add(Browser);

this.ResumeLayout();

Browser.Url = new Uri(sPath + "\\myxls.xls");
 
It will be down to the IE settings on the client machine, this isnt a nice
thing to do. Isnt excel available as an OLE object? It used to be.

Ciaran O'Donnell
 
Back
Top