none
Office2007 cannot open word documnet RRS feed

  • Question

  • Hi,

    I had service installed on Windows Server 2008 standard edition.
    This service using office2007 inorder to save files as pdf when i do the following
    _Document oPrintDoc = oAppWord.Documents.Open(ref oFilePath, ref missingValue,
    ref oFalse, ref missingValue, ref missingValue, ref missingValue,
    ref missingValue, ref missingValue, ref missingValue,
    ref missingValue, ref missingValue, ref missingValue,
    ref missingValue, ref missingValue, ref missingValue,
    ref missingValue);
    
    I accept null in oPrintDoc, when i do this out of the service i didn't accept null.
    I check the service account with my IT team and it appears as adminitrator.
    What may cause this issue what how can i resolve it ?

    Thnx,
    khalil
    Tuesday, February 9, 2010 10:35 AM

Answers

  • I found the solution for this issue.

    On windows server 2008 you must  create under

    C:\Windows\System32\config\systemprofile

    A new folder and give it name [Desktop].

    The oPrintDoc won't be null and the saving to pdf will be executed.

    Thnx,
    khalil

    • Marked as answer by khalil salhi Tuesday, February 9, 2010 12:09 PM
    Tuesday, February 9, 2010 12:07 PM