|
|
I have an activeX written in VC++. I have trouble accrssing the methods!
Say for example I have a method void ABC() in my activeX and I am calling this In my Excel program as follows
myObject.ABC()
For some reason it doesn't seem to work. Call to properties work fine.
Can someone help??
Thanks
|
|
|
|
|
I have compiled the program by vs2003, but it throw exception when enter AfxWinMain, pointer to CWinThread and pointer to CWinApp are NULL.
Folowing is output information.
'XOffice.exe': Loaded 'D:\test\xoffice_src\Debug\XOffice.exe', Symbols loaded.
'XOffice.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded.
'XOffice.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols loaded.
'XOffice.exe': Loaded 'C:\WINDOWS\system32\mfc71d.dll', Symbols loaded.
'XOffice.exe': Loaded 'C:\WINDOWS\system32\msvcr71d.dll', Symbols loaded.
'XOffice.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', No symbols loaded.
'XOffice.exe': Loaded 'C:\WINDOWS\system32\user32.dll', No symbols loaded.
'XOffice.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', No symbols loaded.
'XOffice.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', No symbols loaded.
'XOffice.exe': Loaded 'C:\WINDOWS\system32\shlwapi.dll', No symbols loaded.
'XOffice.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', No symbols loaded.
'XOffice.exe': Loaded 'C:\WINDOWS\system32\ole32.dll', No symbols loaded.
'XOffice.exe': Loaded 'C:\WINDOWS\system32\oleaut32.dll', No symbols loaded.
'XOffice.exe': Loaded 'C:\WINDOWS\system32\imm32.dll', No symbols loaded.
'XOffice.exe': Loaded 'C:\WINDOWS\system32\lpk.dll', No symbols loaded.
'XOffice.exe': Loaded 'C:\WINDOWS\system32\usp10.dll', No symbols loaded.
'XOffice.exe': Loaded 'C:\WINDOWS\system32\MFC71CHS.DLL', No symbols loaded.
'XOffice.exe': Loaded 'C:\WINDOWS\Downloaded Program Files\CnsMin.dll', No symbols loaded.
'XOffice.exe': Loaded 'C:\WINDOWS\system32\netapi32.dll', No symbols loaded.
'XOffice.exe': Loaded 'C:\WINDOWS\system32\version.dll', No symbols loaded.
'XOffice.exe': Loaded 'C:\WINDOWS\system32\clbcatq.dll', No symbols loaded.
'XOffice.exe': Loaded 'C:\WINDOWS\system32\comres.dll', No symbols loaded.
First-chance exception at 0x7c235a5f (mfc71d.dll) in XOffice.exe: 0xC0000005: Access violation reading location 0x00000000.
Unhandled exception at 0x7c235a5f (mfc71d.dll) in XOffice.exe: 0xC0000005: Access violation reading location 0x00000000.
Any idea?
|
|
|
|
|
|
Hello!
Have you found a solution?
Thanks in advance.
Jordi B.
www.teracat.com
|
|
|
|
|
Add the following line to one of .cpp files (for instance, XOffice.cpp):
CComObjectGlobal<cxofficeapp> theApp;
|
|
|
|
|
Hi,
I notice that if I have Excel running, your application will attach to that instance of Excel. If Excel is not running, it will launch it and attach to it. Is there a way to create a new instance of Excel even if I already have one instance running? The reason I want to do this is because if the user kills or closes the Excel they originally initiated, the Excel worksheet in the application goes with it. If the Excel worksheet in my application had a dedicated Excel process, this problem would be eliminated.
Thanks much for your help.
Roshan
|
|
|
|
|
:|Could you please Help me ? I want to read data from ms office documents. For instance, i would like
to extract text and images (pictures) from a word documents using automation and C++ or VC++.
If you could tell what structures should i use, and header files.
Thanks for you
PS : you could send me your explanation to my e-mai : hoan_vacnew@yahoo.com
|
|
|
|
|
Can someone explain the above thread to me? I working on this case too.
Thanks.
|
|
|
|
|
I get the compiling, I get the following errors.
I am using Office2000, any idea?
Thanks in advanced.
c:\projects\myprojects\xoffice\debug\msword9.tlh(3719) : error C2146: syntax error : missing ';' before identifier 'VBE'
c:\projects\myprojects\xoffice\debug\msword9.tlh(3719) : error C2501: 'VBEPtr' : missing storage-class or type specifiers
c:\projects\myprojects\xoffice\debug\msword9.tlh(3719) : error C2501: 'VBE' : missing storage-class or type specifiers
|
|
|
|
|
I get the same errors with you. who can tell me how to resolve this problem
das
|
|
|
|
|
Hi!
Its a nice artical but i jut couldnt test a few features coz i dont have Office 2000 installed and there are quite a lot of library name convention changes there in newer versions of office. So if u can help me out with it,
Thanks a lot,
Bilal Anjum
|
|
|
|
|
|
I tried this example for excel, but fail to save document. Can you pl tell me the method for saving of excel file with different extension and again open it for modification.
Pl reply urgently .
Neeraj
|
|
|
|
|
I am not able to open the word file but .xls file is opening. I need to open the word file only. What could be the problem?
Shashi Mudgal
|
|
|
|
|
|
Does anyone implemented OpenOffice in your application?
Cheers,
TomazZ
|
|
|
|
|
Please help me with some soft in Visual C++ that reads contents from an excel and a word file. Please send an e-mail with that soft at politimisoara@yahoo.com. Thank you very much! Thank you!
Greetings from Timisoara!
|
|
|
|
|
Hello,
The URL presented in the article for Nick Hodapp's article is incorrect and the correct URL is:
http://www.codeguru.com/atl/AutoATL.shtml[^]
Rgds,
Nirav
---------------------------------------------------
* Don't wish it was easier; Wish you were better! *
---------------------------------------------------
|
|
|
|
|
In office.h you commented out the line
#import "C:\Program Files\Microsoft Office\Office\MSACC9.OLB"
If it is uncommented you get
error C2501: '_ConnectionPtr' : missing storage-class or type specifiers
Is there a workaround?
Malcolm Drake
|
|
|
|
|
I want to open a file delimited with ',' using excel from my sdi application on BN_CLICKED.
Can anybody help me with this problem, please send me the source code.
Thanking You & Regards,
Sridevi Palepu
|
|
|
|
|
The easiest way is to use ShellExecute or CreateProcess. If .csv file is associated with Excel on your system, use ShellExecute and use "open" as the verb. Otherwise, use CreateProcess with Excel executable will do.
|
|
|
|
|
I was able to remove the formula bar and the Grid headings with the following code.
app.SetDisplayFormulaBar(FALSE);
Window win = app.GetActiveWindow();
win.SetDisplayHeadings(FALSE);
I still want to remove the "Formatting Toolbar" and all of the menus associated with Excel.
Anyideas.
Classes of interest are --> Menu, MenuBar, MenuBars, MenuItem, MenuItems, Menus, Toolbar, ToolbarButton, ToolbarButtons, Toolbars
Sincerely,
Mardigin
Sincerely,
Mardigin
|
|
|
|
|
open an xl file, write vb macros, save the xl file and then run the macro from u'r code.
|
|
|
|
|
The, Using ATL to Automate a MFC Application, link is dead. Does anyone know if this article is still accessable somewhere?
http://codeguru.developer.com/atl/AutoATL.shtml
Sincerely,
Mardigin
|
|
|
|