How do you get the current page that i am reading??? in C#

From: EricA (eric_anacay_at_yahoo.com)
Date: 07/21/04


Date: 20 Jul 2004 18:08:58 -0700

I am working on these. a code that will get the comments in a word
document using c#.

Word.Document oWordDoc = oWordApp.Documents.Open(ref fileName,

                        ref missing,ref readOnly, ref missing,

                        ref missing, ref missing, ref missing,

                        ref missing, ref missing, ref missing,

                        ref missing, ref missing, ref missing,

                        ref missing, ref missing, ref missing);

for (int i = 1; i <= oWordDoc.Comments.Count; i++) {
oWordDoc.Comments[i].Range.Text.ToString(); //displays the comment
itself oWordDoc.Comments[i].Author; //displays the author
oWordDoc.Comments[i].Index; //displays the index N
oWordDoc.Comments[i].Initial; //displays the initial }

----------- How do i get the current page where the current comment
my program is reading resides???



Relevant Pages

  • Re: Assigning bytes to a structure
    ... to encapsulate all the 'reading' logic into the strucrure. ... Public Sub New(ByVal filename As String) ... Rather than passing the filename, a far more flexible solution is to ...
    (microsoft.public.dotnet.general)
  • Re: File read and write new
    ... the StreamReader class provides good support. ... You can pass it a filename to the constructor, and it will automatically open the file for you. ... The class provides methods for reading strings, handling character encoding conversions as necessary. ... In fact, if you have only one ":C-DATENIMPORT" section, you only need to read the input file far enough until you've reached the end of that section. ...
    (microsoft.public.dotnet.languages.csharp)
  • Mapping a FileReferenceNumber to a Filename
    ... So I've been reading NTFS USN Journal data, so I can track which files have ... I'm reading them with DeviceIoControl and FSCTL_READ_USN_JOURNAL, ... ParentFileReferenceNumber or FileReferenceNumber. ... represent a one to one mapping between a Filename and a unique ...
    (microsoft.public.windows.file_system)
  • Mapping a FileReferenceNumber to a Filename
    ... So I've been reading NTFS USN Journal data, so I can track which files have ... I'm reading them with DeviceIoControl and FSCTL_READ_USN_JOURNAL, ... ParentFileReferenceNumber or FileReferenceNumber. ... represent a one to one mapping between a Filename and a unique ...
    (microsoft.public.win32.programmer.kernel)
  • Re: File read and write new
    ... the StreamReader class provides good support. ... You can pass it a filename to the constructor, and it will automatically open the file for you. ... The class provides methods for reading strings, handling character encoding conversions as necessary. ... If you are writing to a whole new file, there is no need to read all of the original file at once. ...
    (microsoft.public.dotnet.languages.csharp)