CFanatic

Go Back   CFanatic > Programming > C# Programming

Join CFanatic Forum Now

problem with Excel.AppEvents_SheetActivateEventHandler' topic posted under C# Programming which is a part of Programming category in CFanatic Forum
Reply
 
Thread Tools Display Modes
  #1  
Old 08-02-2008, 12:34 PM
Junior Member
 
Join Date: Jul 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
en0ne is on a distinguished road
| More
problem with Excel.AppEvents_SheetActivateEventHandler'

Code:
using System;
using System.Collections.Generic;
using System.Text;
using Excel = Microsoft.Office.Interop.Excel;
using System.Windows.Forms;

namespace ConsoleApplicationProva1
{
    class Program
    {
        static void Main(string[] args)
        {
            Excel.Application thisApplication = new Excel.Application();
            thisApplication.Visible = true;
            thisApplication.StatusBar = "Enor";
            thisApplication.Workbooks.Add(System.Type.Missing);
            //
            thisApplication.SheetActivate += new Excel.AppEvents_SheetActivateEventHandler(thisApplication_SheetActivate);
        }

        void thisApplication_SheetActivate(object sender, Excel.Range target, ref bool cancel)
        {
            MessageBox.Show("Enor");
        }
    }
}
This code wich I found in e book fires error like below
Error 1 No overload for 'thisApplication_SheetActivate' matches delegate 'Microsoft.Office.Interop.Excel.AppEvents_SheetAct ivateEventHandler' C:\Documents and Settings\Enor\My Documents\Visual Studio 2008\Projects\ConsoleApplicationProva1\ConsoleAppl icationProva1\Program.cs 19 46 ConsoleApplicationProva1
does anybody know how to deal with this?
Thakns in advance
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Updating the Formulain Excel using MFC wrapper classes SamudhyathaJ MFC Programming 0 09-11-2008 10:56 PM
reading Excel file hadagali MFC Programming 0 08-23-2007 04:33 AM
MS Excel Database programming - Quite simply swamp Trade your services 1 03-24-2007 04:32 AM
Ebay API intergration with excel database swamp Looking to hire 0 09-16-2006 07:11 AM

 

Advertisement

CFanatic Search
Custom Search

Advertisement

All times are GMT -5. The time now is 03:54 PM.



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO ©2010, Crawlability, Inc.
Cfanatic.com is a premier member of the IDG TechNetwork. For advertising opportunities contact here
Get Paid for Working on Projects Matching Your Expertise at Go4Expert's Jobs Board