Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9136765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:59:46+00:00 2026-06-17T08:59:46+00:00

I have an HTML doc which needs to be opened in MS Word. It

  • 0

I have an HTML doc which needs to be opened in MS Word. It has header text with specific fonts/color after every 2-3 pages (lets say 13.5pt & color code is #ff11ff) & I wish to find the page number in which header text is present.

What HTML tags can come handy while detecting the presence of a particular text in an MS Word environment? As far as I know, we can detect text using the find method but I am not aware if there is any method to search to look for particular ‘FONT/Font Color’,

I need this to create an index page which will have the name of the header & page number on which they were found. So it goes like:

  1. Find a particular font sized text.
  2. Get a current page number of that page.

Update:
Seems like i have to iterate on every text of doc & check it’s font & then do something like

Microsoft.Office.Interop.Word._Application word = new Microsoft.Office.Interop.Word.Application();
                Microsoft.Office.Interop.Word._Document document;

                while (word.Selection.Find.Execute(ref findStr, ref objNull, ref objNull, ref objNull, ref objNull, ref objNull, ref objNull, ref objNull, ref objNull, ref objNull, ref objNull, ref objNull, ref objNull, ref objNull, ref objNull))
                {

                    float fontSize = word.Selection.Font.Size;

                    if (fontSize == 13.5)
                    {
                        Range rng = word.Selection.Range;
                        int pageNp = (int)rng.get_Information(WdInformation.wdActiveEndPageNumber);
                    }
                }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T08:59:47+00:00Added an answer on June 17, 2026 at 8:59 am

    You have a few different approaches you can take; as if you ignore Microsoft Word. jQuery can easily pinpoint specific Html or Stylesheet tags.

    If your trying to write a simple C# application to identify those two request. You could utilize Regular Expressions; they are quite powerful and are specifically designed to filter and parse through large amounts of data.

    Due to the lack of information in your question, I can’t point you in any further but I do hope that helps. You can find additional information on Regular Expressions here: That cheat sheet should point you into several capabilities.

    The approach I would take:

    • If you have to use word; utilize a method to parse the document.
    • Use a Regular Expression Method to search for particular tags.
    • Then simply define the method to return the current pages in which it found the criteria.

    Obviously that is a very general approach. But hopefully that points you in a good direction. I’m not familiar with your task or goals; so this may hit the nail on the head or not.

    So I apologize if it is vague, but we don’t know your project so it makes responses difficult. If you don’t mind me asking; could you update your question with your current iteration or approach? So we can analyze the code and maybe your desired goal?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a webpage which has links to documents (MS Word .doc files). If
I have HTML which includes scripts in following order <script src=../static/js/jquery.js type=text/javascript> <script src=../static/js/bootstrap.js
According to Rails doc: http://guides.rubyonrails.org/migrations.html Active Record tracks which migrations have already been run
I have two images in the background of my html doc. One positioned top
I have read the documentation ( http://dev.mysql.com/doc/refman/5.1/en/partitioning.html ), but I would like, in your
I have HTML like this: <article> <header> <hgroup> <h1>Wk 25 </h1> <h2>(18-06 tot 24-06)</h2>
I have hundreds of .doc files with text that I need put on web
I want to create a tiny app which needs global shortcuts. So, I have
I have a big mysql query which needs to trawl through 4 tables to
everyone. I need to parse a webpage which has java cookies set for every

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.