|
|
Cann't download? why? I need the source project, thanks!
https://www.codeproject.com/script/Common/Error.aspx?errres=NoFileName
|
|
|
|
|
what's the dll for ms office 2007
|
|
|
|
|
nice app. very interesting!
but....
what's the dll for ms office 2007?
please help..thank you.
|
|
|
|
|
#define Uses_MSO2003
#ifdef Uses_MSO2007
#import "C:\Program Files\Common Files\Microsoft Shared\OFFICE12\MSO.DLL" \
rename("RGB","_RGB")
#import "C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB"
#import "C:\Program Files\Microsoft Office\OFFICE12\Excel.exe" \
rename("DialogBox","_DialogBox") \
rename("RGB","_RGB") \
rename("CopyFile","_CopyFile") \
rename("ReplaceText","_ReplaceText") \
rename("FindText","_FindText") \
exclude("IFont","IPicture")
#import "C:\Program Files\Microsoft Office\OFFICE12\MSWord.olb" rename("ExitWindows", "wordExitWindows")
#endif
#ifdef Uses_MSO2003
#import "C:\Program Files\Common Files\Microsoft Shared\OFFICE11\MSO.DLL" \
rename("RGB","_RGB")
#import "C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB"
#import "C:\Program Files\Microsoft Office\OFFICE11\Excel.exe" \
rename("DialogBox","_DialogBox") \
rename("RGB","_RGB") \
rename("CopyFile","_CopyFile") \
rename("ReplaceText","_ReplaceText") \
rename("FindText","_FindText") \
exclude("IFont","IPicture")
#pragma warning (disable:4146)
#import "C:\Program Files\Microsoft Office\OFFICE11\MSWORD.OLB" rename("ExitWindows", "wordExitWindows")
#endif
#ifdef Uses_MSO2002
#import "C:\Program Files\Common Files\Microsoft Shared\OFFICE10\MSO.DLL"
#import "C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB"
#import "C:\Program Files\Microsoft Office\OFFICE10\Excel.exe" \
rename("DialogBox","_DialogBox") \
rename("RGB","_RGB") \
exclude("IFont","IPicture")
#import "C:\Program Files\Microsoft Office\OFFICE10\MSWord.olb" \
rename("ExitWindows","_ExitWindows")
#endif
#ifdef Uses_MSO2000
#import "C:\Program Files\Microsoft Office\Office\MSO9.DLL"
#import "C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB"
#import "C:\Program Files\Microsoft Office\Office\MSWORD9.OLB" \
rename("ExitWindows","_ExitWindows")
#import "C:\Program Files\Microsoft Office\Office\EXCEL9.OLB" \
rename("DialogBox","_DialogBox") \
rename("RGB","_RGB") \
exclude("IFont","IPicture")
#endif
#ifdef Uses_MSO1997
#import "C:\Program Files\Microsoft Office\Office\MSO97.DLL"
#import "C:\Program Files\Common Files\Microsoft Shared\VBA\VBEEXT1.OLB"
#import "C:\Program Files\Microsoft Office\Office\MSWORD8.OLB" \
rename("ExitWindows","_ExitWindows")
#import "C:\Program Files\Microsoft Office\Office\EXCEL8.OLB" \
rename("DialogBox","_DialogBox") \
rename("RGB","_RGB") \
exclude("IFont","IPicture")
#endif
#pragma warning(default:4146)
|
|
|
|
|
Hi,
When I try this for office 2007, I get errors:
1. on the "VBE6EXT.OLB" line: error C4772: #import referenced a type from a missing type library; '__missing_type__' used as a placeholder
2. on inline __missing_type__ VBE::GetCommandBars: error C2440: 'return' : cannot convert from '__missing_type__ *' to '__missing_type__'
Any ideas?
|
|
|
|
|
I want to open an existing word document, edit it in-place and save the changes to the original word file. Can anybody tell me how to save opened doc as .doc file.?????
|
|
|
|
|
Hi
Please tell me how to open MS word and create a document using MFC. I used typelib option and got CApplication.h and CDocument.h header file. How to use these files.
Please tell me
Thanks
|
|
|
|
|
Unhandled 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
dsadasda
|
|
|
|
|
|
how to export/extract image in word doc?
thanks
|
|
|
|
|
http://www.codeproject.com/KB/COM/xoffice.aspx
according to the address above, i try to build the solution, it having such problem:-
1>------ Build started: Project: XOffice, Configuration: Debug Win32 ------
1>Compiling...
1>CntrItem.cpp
1>c:\users\wong\documents\downloads\word\office.h(9) : fatal error C1083: Cannot open type library file: 'C:\Program Files\Microsoft Office\Office\MSO9.DLL': No such file or directory
1>Build log was saved at "file://c:\Users\wong\Documents\Downloads\word\Debug\BuildLog.htm"
1>XOffice - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
in Office.h, it include the (#import "C:\Program Files\Microsoft Office\Office\MSO9.DLL")
and my C:\Program Files\Microsoft Office (i am using Microsoft 2007) dont have such file.
may i know how?
thanks a lot~~
|
|
|
|
|
would you like to give me an example which can open an office document with password? word,excel,powerpoint and etc.
|
|
|
|
|
Hello All
I am using Visual Studio 2005 and when I try to create and compile the simple word automation application, I am getting following errors. How to resolve these errors?
Thanks
Sudhakar
Below is the code
<br />
<br />
if(!AfxOleInit())
{<br />
AfxMessageBox("Cannot initialize COM dll");<br />
return FALSE;<br />
}<br />
<br />
AfxEnableControlContainer();<br />
<br />
CWordApplication app;
<br />
<br />
if(!app.CreateDispatch("Word.Application"))<br />
{<br />
AfxMessageBox("Cannot start Word and get Application object.");<br />
return;<br />
}<br />
else<br />
{<br />
app.put_Visible(TRUE);<br />
app.put_UserControl(TRUE);<br />
}<br />
<br />
Below are the Errors
Error 1 error C2786: 'BOOL (__stdcall *)(HDC,int,int,int,int)' : invalid operand for __uuidof c:\documents and settings\sudhakar\desktop\m\testauto\testauto\debug\msword.tlh 1073
Error 2 error C2923: '_com_IIID' : 'Rectangle' is not a valid template type argument for parameter '_Interface' c:\documents and settings\sudhakar\desktop\m\testauto\testauto\debug\msword.tlh 1073
Error 3 error C3203: '_com_IIID' : unspecialized class template can't be used as a template argument for template parameter '_IIID', expected a real type c:\documents and settings\sudhakar\desktop\m\testauto\testauto\debug\msword.tlh 1073
Warning 4 warning C4003: not enough actual parameters for macro 'ExitWindows' c:\documents and settings\sudhakar\desktop\m\testauto\testauto\debug\msword.tlh 7113
Error 5 error C2059: syntax error : 'constant' c:\documents and settings\sudhakar\desktop\m\testauto\testauto\debug\msword.tlh 7113
Error 6 error C2146: syntax error : missing ';' before identifier 'Fonts' c:\documents and settings\sudhakar\desktop\m\testauto\testauto\debug\msword.tlh 13448
Error 7 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\documents and settings\sudhakar\desktop\m\testauto\testauto\debug\msword.tlh 13448
Error 8 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\documents and settings\sudhakar\desktop\m\testauto\testauto\debug\msword.tlh 13448
Error 9 error C2146: syntax error : missing ';' before identifier 'GetFonts' c:\documents and settings\sudhakar\desktop\m\testauto\testauto\debug\msword.tlh 13503
Error 10 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\documents and settings\sudhakar\desktop\m\testauto\testauto\debug\msword.tlh 13503
Error 11 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\documents and settings\sudhakar\desktop\m\testauto\testauto\debug\msword.tlh 13503
|
|
|
|
|
Hello All
I am using Visual Studio 2005 and when I try to create and compile the simple application, I am getting following errors. How to resolve these errors?
Thanks
Sudhakar
<br />
<br />
Error 1 error C2786: 'BOOL (__stdcall *)(HDC,int,int,int,int)' : invalid operand for __uuidof c:\documents and settings\sudhakar\desktop\m\testauto\testauto\debug\msword.tlh 1073 <br />
Error 2 error C2923: '_com_IIID' : 'Rectangle' is not a valid template type argument for parameter '_Interface' c:\documents and settings\sudhakar\desktop\m\testauto\testauto\debug\msword.tlh 1073 <br />
Error 3 error C3203: '_com_IIID' : unspecialized class template can't be used as a template argument for template parameter '_IIID', expected a real type c:\documents and settings\sudhakar\desktop\m\testauto\testauto\debug\msword.tlh 1073 <br />
Warning 4 warning C4003: not enough actual parameters for macro 'ExitWindows' c:\documents and settings\sudhakar\desktop\m\testauto\testauto\debug\msword.tlh 7113 <br />
Error 5 error C2059: syntax error : 'constant' c:\documents and settings\sudhakar\desktop\m\testauto\testauto\debug\msword.tlh 7113 <br />
Error 6 error C2146: syntax error : missing ';' before identifier 'Fonts' c:\documents and settings\sudhakar\desktop\m\testauto\testauto\debug\msword.tlh 13448 <br />
Error 7 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\documents and settings\sudhakar\desktop\m\testauto\testauto\debug\msword.tlh 13448 <br />
Error 8 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\documents and settings\sudhakar\desktop\m\testauto\testauto\debug\msword.tlh 13448 <br />
Error 9 error C2146: syntax error : missing ';' before identifier 'GetFonts' c:\documents and settings\sudhakar\desktop\m\testauto\testauto\debug\msword.tlh 13503 <br />
Error 10 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\documents and settings\sudhakar\desktop\m\testauto\testauto\debug\msword.tlh 13503 <br />
<br />
|
|
|
|
|
Koundinya wrote: Warning 4 warning C4003: not enough actual parameters for macro 'ExitWindows' c:\documents and settings\sudhakar\desktop\m\testauto\testauto\debug\msword.tlh 7113
Error 5 error C2059: syntax error : 'constant' c:\documents and settings\sudhakar\desktop\m\testauto\testauto\debug\msword.tlh 7113
The following Microsoft Article gives a remedy to Warning 4, which is the cause of Error 5
http://support.microsoft.com/kb/148223[^]
|
|
|
|
|
Congratulations!!
This is one good job!!!
I am using "Visual Studio 2005" and "Office XP 2003". I included one more 'DEFINE' in Office.h to cover this situation.
If you want to build this project in your machine, see into Office.h file and change the paths, for your OFFICE installation path.
This project is not works fine yet. Sometimes the application fail, and leave the Excel running in background.
Some one can help me to solve this problem?
P.S. If some one want this project updated for "Visual Studio 2005", send me one message by e-mail, that I answer with this project attached, i.e., If the Author issue me one authorization for to do this.
Thanks all.
Anderson Luís Oliveira e Silva
nosredna@terra.com.br
Anderson Luís Oliveira e Silva
nosredna@terra.com.br
|
|
|
|
|
How can I hide office menu and toolbar. If my computer intalls office other version, how can I check and inport accurate library.
Thanks
|
|
|
|
|
Is posible to insert an Excel Object in a Dialog Base App
|
|
|
|
|
hi
i am automating msword in MFC,
the speed too slow
i am setting header footer & creating table, most of the time is wasted while filling the table
|
|
|
|
|
Hello !
First thanks for sharing theses sources.
In my Application I use this class to store some, the registry has this type architecture (CASE SENSITIVE) :
HKEY_LOCAL_MACHINE
+ SOFTWARE
+ CompanyName
+ ApplicationName
+ Password
+ Peremption
+ Users
After setting defaults names and values (ex : "Password\\MaxLength") and Calling refresh contents I read what's in the map and I see "doublon" in Lower case ex :
"Password\MaxLength" and "passwordmaxlength"
The keys I add with "SetValueByname" (ex : "Users\Toto")are correctly added in registry but if I read them I get a wrong path (ex : "users\toto") since it is lower case.
Is this class only working with lower case key names ?
Thank For your response
************
Best Regards,
bizulk.
|
|
|
|
|
I've successfully implemented Print Preview in the MFC application by implementing IPrintPreviewCallback interface in the document class and quering server object for IInplacePrintPreview interface. I can post (or send) the solution somewhere if someone is interested.
I used Microsoft FramerEx sample (http://support.microsoft.com/kb/q268470/[^]) and description of the above interfaces (http://msdn.microsoft.com/library/default.asp?url=/archive/en-us/dnaro97ta/html/msdn_binder97.asp[^]) for reference.
Also I took main part of the MFC code implementing IInplacePrintPreview from http://www.codeguru.com/forum/archive/index.php/t-75806.html
[^].
The main problem that I currently have is crash after print preview is closed when using Office XP/2003, although it's working perfectly with Office 97/2000. Microsoft FramerEx example has the same problem.
I think it may be due to the fact that these interfaces have been developed for use with Microsoft Binder which is not included in OfficeXP/2003 and it's support is now limited (http://support.microsoft.com/?scid=kb;en-us;822622&spid=2525&sid=276[^]).
I have noticed that if another instance of MS Word is opened while print preview is active in my program, and I close print preview, my program does not crash, but that another MS word window is repositioned right above the main frame where my print preview was displayed. So I think maybe the server application "dies" when I close print preview (or IInplacePrintPreview::ExitPrintPreview is executed).
I'm now trying to find a workaround to this problem, maybe by launching hidden insance of MS Word or creating another "temporary document". I'm not sure if it will help, so have anyone experienced the same problem?
|
|
|
|
|
Is this someting you woe to share?
The part of implementing the printpreview in MFC?
/Magnus
Magnus
|
|
|
|