Home > Back-end >  How the Word document of title and its location are extracted from the line number?
How the Word document of title and its location are extracted from the line number?

Time:11-10

Such as: how to Word document of title and its location are extracted from the line number? I mainly used to locate,

CodePudding user response:

This post can't sink, I will continue to the top, top, top,

CodePudding user response:

If no one answer me, I have to continue to top, at the junction between post and heavy post cycle my dedication life,

CodePudding user response:

With Delphi or c # is bad, no one can solve the problem on the surface?

CodePudding user response:

Indeed used word, word line number?
You don't already have the top may help you top yourself, you can also top three times, ha

CodePudding user response:

reference 4 floor of the autumn leaves response:
actually used the word, the word has a line number?
You don't already have the top may help you top yourself, you can also top three times, ha

Thank you for your good friend, I say the word line number is, edit the paragraph, because I can traverse a word document of all paragraphs to extract the title, but the document is a long time very long, so I want to quickly get the line number in the document title and the paragraph, after, can rapid positioning,

CodePudding user response:

Top one every day,

CodePudding user response:

This post can't heavy, ask ace to rescue,

CodePudding user response:

Rather than wait here, to study the VBA:https://docs.microsoft.com/en-us/office/vba/api/overview/word

CodePudding user response:

Upstairs to look not to understand, this two days, I use macros in the word editor view, then watch the VB code, almost looked through the API function, methods of operation also does not have the related functions or attributes, but still want to thank you for your warrior, top a top today,

CodePudding user response:

My problem is experiment three again, cannot break through the problem on their own, master general could not answer, perhaps the real master need to lure heavily to appear,

CodePudding user response:

I feel really don't have the concept of word, looked at it and roughly markrows, but this is the line time record insertion modified, nor similar execl line, also may understand wrong,
There is no answer for so long, suggest or change a concept, or simply create a row concept, ha ha

CodePudding user response:

Since you can iterate through all paragraphs, then add a bookmark to each paragraph, then can quickly locate

CodePudding user response:

I think he is in the file can't distinguish the title, that is a paragraph, title is set as the title, after this time add mark should be ok,

CodePudding user response:

Title and bookmarks are not the same, a title must be a paragraph, and a bookmark you don't have to be a paragraph, you will understand,

CodePudding user response:

Title and bookmarks are not the same, a title must be a paragraph, and a bookmark you don't have to be a paragraph, you will understand,
  • Related