PC Review


Reply
Thread Tools Rate Thread

Con't use capplication object

 
 
yes
Guest
Posts: n/a
 
      7th Aug 2006
Hi everyone.
I have developed an application.This application has a excel file list
control.When i double click in the excel file list control,the excel
application will run and open the corresponding excel file, and another
window which has another list control is opened. When I selected a cell in
the excel window and then double click in the list control,the selected list
control item value will be put into the selected cell.I use the following
code :

CRange cr=m_ExcelApplication.get_ActiveCell();
cr.put_Value2(COleVariant(value));

m_ExcelApplication is the excel application instance.

The question is :After I double click in excel work sheet and cursor is
appear in a cell,the "m_ExcelApplication" is con't be used,that is I con't
use "m_ExcelApplication" to call any CApplication class function.Why?

thanks

yes


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
copy object or export object, can't open object laavista Microsoft Access 5 28th Jun 2009 04:50 AM
CApplication Excel =?Utf-8?B?U2hvbg==?= Microsoft VC .NET 0 25th Apr 2005 04:14 PM
Programmatically detach object in unbound object frame to a bound object frame Haiyan Chen Microsoft Access Form Coding 0 4th Mar 2005 02:51 PM
Programmatically detach object in unbound object frame to a bound object frame Haiyan Chen Microsoft Access Form Coding 0 4th Mar 2005 02:47 PM
Win32_Printer: System.NullReferenceException - Additional information: Object reference not set to an instance of an object. J M Microsoft C# .NET 2 7th Oct 2003 06:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:52 PM.