-
February 22nd, 2005, 06:59 AM
#1
Word automation without OLE
Hello,
I write a ISAPI-dll for IIS. I want to create word-documents on the server for download.
OLE don't work with ISAPI. How can I create word-documents?
Thanks
Michael
-
February 22nd, 2005, 09:00 AM
#2
Re: Word automation without OLE
I tried this:
#pragma warning (disable:4146)
#import "C:\Programme\Microsoft Office\Office\MSO9.DLL"
#pragma warning (default:4146)
#import "C:\Programme\Gemeinsame Dateien\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB"
#import "C:\Programme\Microsoft Office\Office10\msword.olb" rename("ExitWindows", "WordExitWindows")
but get these errors:
c:\programme\microsoft visual studio\vc98\atl\include\atlcom.h(2945) : error C2065: '_Module' : nichtdeklarierter Bezeichner
c:\programme\microsoft visual studio\vc98\atl\include\atlcom.h(2945) : error C2228: Der linke Teil von '.Lock' muss eine Klasse/Struktur/Union sein
c:\programme\microsoft visual studio\vc98\atl\include\atlcom.h(2947) : error C2228: Der linke Teil von '.Unlock' muss eine Klasse/Struktur/Union sein
c:\programme\microsoft visual studio\vc98\atl\include\atlcom.h(3318) : error C2228: Der linke Teil von '.m_csTypeInfoHolder' muss eine Klasse/Struktur/Union sein
c:\programme\microsoft visual studio\vc98\atl\include\atlcom.h(3340) : error C2228: Der linke Teil von '.m_csTypeInfoHolder' muss eine Klasse/Struktur/Union sein
c:\programme\microsoft visual studio\vc98\atl\include\atlcom.h(3341) : error C2228: Der linke Teil von '.AddTermFunc' muss eine Klasse/Struktur/Union sein
and so on
or without including atlcom.h
\debug\msword.tlh(3950) : error C2039: 'FileDialogPtr' : Ist kein Element von 'Office'
\debug\msword.tlh(3950) : error C2146: Syntaxfehler : Fehlendes ';' vor Bezeichner 'FileDialog'
\debug\msword.tlh(3950) : error C2501: 'FileDialogPtr' : Fehlende Speicherklasse oder Typbezeichner
\debug\msword.tlh(3950) : error C2501: 'FileDialog' : Fehlende Speicherklasse oder Typbezeichner
\debug\msword.tlh(3986) : error C2039: 'NewFilePtr' : Ist kein Element von 'Office'
\debug\msword.tlh(3986) : error C2146: Syntaxfehler : Fehlendes ';' vor Bezeichner 'NewDocument'
\debug\msword.tlh(3986) : error C2501: 'NewFilePtr' : Fehlende Speicherklasse oder Typbezeichner
\debug\msword.tlh(3986) : error C2501: 'NewDocument' : Fehlende Speicherklasse oder Typbezeichner
\debug\msword.tlh(4490) : error C2039: 'MsoAutomationSecurity' : Ist kein Element von 'Office'
\debug\msword.tlh(4490) : error C2146: Syntaxfehler : Fehlendes ';' vor Bezeichner 'GetAutomationSecurity'
\debug\msword.tlh(4492) : error C2027: Verwendung des undefinierten Typs "Office"
\debug\msword.tlh(4490) : Siehe Deklaration von 'Office'
\debug\msword.tlh(4492) : error C2146: Syntaxfehler : Fehlendes ',' vor Bezeichner 'prop'
\debug\msword.tlh(4492) : error C2061: Syntaxfehler : Bezeichner 'prop'
\debug\msword.tlh(4493) : error C2027: Verwendung des undefinierten Typs "Office"
\debug\msword.tlh(4490) : Siehe Deklaration von 'Office'
\debug\msword.tlh(4493) : error C2146: Syntaxfehler : Fehlendes ';' vor Bezeichner 'GetFileDialog'
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|