none
Retrieve Page Count for Office Documents RRS feed

  • Question

  • Hi,

    I am using dsofile.dll in my Application to retrieve page count property for Office documents like doc, xls and ppt.

    It provides default page count as 1 for all Word documents and 0 for all excel documents

    I need page count for Word document and excel sheet count for excel documents.

     

    //The following Sample Code, am using in that application

    int noofPages;

    DSOFile.OleDocumentPropertiesClass objDocument = null;

    objDocument.Open

    (uploadedFile, true, dsoFileOpenOptions.dsoOptionOpenReadOnlyIfNoWriteAccess);

    noofPages = objDocument.SummaryProperties.PageCount

     

    Pls let me know, How Can I get the exact page count for the above documents

     

    Thanks and Regards,

    Ganeshkumar

    Thursday, July 24, 2008 4:33 AM

Answers

  •   Hi Ganeshkumar,


    This forum is for software developers who are using the Open Protocol Specification documentation to assist them in developing systems, services, and applications that are interoperable with Windows.

    The Open Protocol Specifications can be found at: http://msdn2.microsoft.com/en-us/library/cc203350.aspx.

    Since your post does not appear to be related to the Open Protocol Specification documentation set but rather to an implementation question, I suggest you post your question on the following forum: 

    For future reference, I find the Innovate on Office forum (http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=1851&SiteID=1) more adequate for your question.

    Thanks and regards,

    SEBASTIAN CANEVARI - MSFT SEE Protocol Documentation Team
    Thursday, July 24, 2008 3:48 PM