CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2001
    Location
    Wuerzburg, Germany
    Posts
    90

    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

  2. #2
    Join Date
    Jun 2001
    Location
    Wuerzburg, Germany
    Posts
    90

    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
  •  





Click Here to Expand Forum to Full Width

Featured