CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2002
    Posts
    72

    Get Word Document Line Count

    I'm trying to get a line count for various word documents though VB code. If I save it as a temporary .txt file the text file doesn't do a carrage return when it word wraps in a document and thus the line count becomes erroneous when opening the file for Input and looping thru to the end. How can I access the MS Word line count property? Also, is there a way to ignore blank lines? Thanks!

  2. #2
    Join Date
    Mar 2003
    Location
    mysore, india
    Posts
    21

    Re: Get Word Document Line Count

    by using wordapp.statistics.wdnumberoflines
    j.sakthivel

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