How to identify the text color in a word doc.?

how to identify the text color in a word doc.?
I need to read a word document using java code. which contains many strings with different colors.
i need to identify the color and giving the marks accordingly like
test in blue color so
test marks=2
how can i do this using java. i only want to know how can i identify the text color using java code.?

morgalr wrote:
I guarantee it is not pretty.Indeed.
I created a Word doc that simply has the word "Blue" in blue, then a space, then the word "Red" in red, all in the default font that Word started with (Times New Roman). The resulting document is 24,064 bytes. It starts off with 80 bytes of various hex values, mostly 0x00.Then 432 bytes of just 0xFF. Then 2048 bytes of various hex values, mostly 0x00. Then the text "Blue Red" (which appears twice more in the file). And so on...
Edited by: jverd on May 10, 2010 8:45 AM

Similar Messages

  • How to change the text color of certain word in dynamic text field

    i know in html css can done by this <td style="red">You
    are now at <span style="yellow">home</span></td>
    .... the "home" word can change to another color .... any one who
    know this can done in flash , please give some advice or example

    look in the help file for 'setTextFormat', which can be
    applied on a whole
    text field or only part of it.
    "adreny" <[email protected]> wrote in
    message
    news:fb0hon$38q$[email protected]..
    >i know in html css can done by this <td
    style="red">You are now at <span
    > style="yellow">home</span></td> .... the
    "home" word can change to another
    > color .... any one who know this can done in flash ,
    please give some
    > advice or
    > example
    >
    >
    >

  • How do change the text color in the variable screen ?

    Hi Experts ,
    I would like to know about , How do change the text color in the variable screen ?
    Using web templates (Analytical) can get the output. It has the variable screen contains 6 fields (Company code, Country , Region , COB, Plant and Purchasing Group). I want to make RED color text on Plant. Please help me .
    Thank you ,
    Prasad.

    Hi,
    I am looking for nearly the same. What I have found is that it seems to manipulate the SAP theme that is used in standard when template is executed in the portal. Just display the source code of the HTML and there you will see the included SAP theme (normally SAP_TRADESHOW). Then you have to go to the SAP portal and change this stuff. But for that you have to know where to find it and what impact this change has.
    I am not pretty sure if this is the right way. But as I want to change the standard layout of a whole template to a customer specific layout I think there is no other way in BI7.0.
    Regards,
    Peter

  • How to change the text color to red in a combo box?

    I'm writing a java program which have a combo box which shows all the name of the member from the database. However, I would like to change the text color of those member who have now currently on-line.
    Please help, it's URGENT. Thanks in advance.
    Clark

    hi,
    as i mentioned, you would require to use a custom renderer for this, for this
    //Class subclass the JFrame and has a JList in it
    import javax.swing.*;
    import java.awt.*;
    import java.util.Vector;
    public class ListRendererTest extends JFrame
         private JList lstMenu;
         private DefaultListModel defaultListModel;
         private JScrollPane scrollPane;
         private Vector listVector;
         public ListRendererTest()
              init();
              addComponents();
              showFrame();
         public void init()
              lstMenu = new JList();
              defaultListModel= new DefaultListModel();
              lstMenu.setModel(defaultListModel);
              scrollPane      = new JScrollPane(lstMenu);
              listVector = new Vector();
              MyListData m1 = new MyListData();
              m1.setName("Rakesh");
              m1.setOnline(false);
              listVector.addElement(m1);
              m1 = new MyListData();   //represents each User instance
              m1.setName("Makesh");
              m1.setOnline(true);
              listVector.addElement(m1);
              for (int i=0;i < listVector.size(); i++)
                   defaultListModel.addElement(((MyListData)listVector.elementAt(i)));
              lstMenu.setCellRenderer(new MyListRenderer());  //set custom renderer
         public void addComponents()
              getContentPane().add(scrollPane,BorderLayout.CENTER);
         public void showFrame()
              setTitle("List renderer test");
              setSize(300,300);
              setLocation(200,200);
              setVisible(true);
         public static void main(String args[])
              new ListRendererTest();
    }The above class is the Container which houses the JList in it, it uses two other classes, MyListData which is used to represent each user instance ( username, and information about whether he is online) and MyListRenderer (custom renderer).
    // Represents each user instance //
    public class MyListData
         private String name;
         private boolean online;
         public void setName(String name)
              this.name = name;
         public String getName()
              return name;
         public void setOnline(boolean online)
              this.online = online;
         public boolean isOnline()
              return online;
    //custom list renderer
    import javax.swing.*;
    import java.awt.*;
    public class MyListRenderer extends DefaultListCellRenderer
         private MyListData myListData;
         public Component getListCellRendererComponent(JList list, Object value, int index,  boolean isSelected, boolean cellHasFocus)
               myListData = (MyListData)value;
               setText(myListData.getName());
               setBackground(myListData.isOnline() ? Color.red: Color.white);  //check if online, if so show in different color
               setForeground(isSelected ? Color.blue : Color.black);
               return this;
    }hope that helps.
    cheerz
    ynkrish

  • How to change the text color of a label by using RGB values without changing the background colour?

    xCode interface builder:
    When I try to change the color property of a label's text by using the RGB values, the background color also changes to the same value automatically.
    in other words:
    While setting the RGB values for text colour of labels, the background colour also changes unless we use the sliders.
    How to make sure that only the color of text changes and not the background?

    You can simply do this.
        [labelname setTextColor:[UIColor colorWithRed:38/255.0f green:171/255.0f blue:226/255.0f alpha:1.0f]];

  • How to make the Text Color in Smartform

    Hi All , I have couple of  things.
    1)   I need to make text Red color for display in smartform.How can i go and display the text in the red color.
    2) For the same text i need two languages.ie if the vendor is English then text need to be displayed in English  .if the vendor is German then text need to be displayed in German.
        If any one have solution for above issues please help us.
    Regards
    Channappa Sajjanar

    Hi Channappa,
    For langauge translatios you have to use SE63 tcode.
    You have to choose red color for u r u r character formats.
    That changes you have to do in smart styles.
    To do the changes in u r smart style go to form attributes.Double click on form attributes.
    In style u will see u r smart style.
    Double click on smart style.
    There u can give u r desired character format.
    Let me know if you have any questions.
    Edited by: vinay raj on Apr 29, 2009 2:55 PM

  • How to change the text color of a formLayoutColumnHeader ?

    Hi all,
    I'm working on a BSP on SAP NetWeaver 2004s and would need to change the (OTR) text color to red in a
    formLayoutColumnHeader, but there is no attribute about it. I searched for other threads and tried with the
    tag <font color=....>  before the OTR tag, but the tag is shown with the OTR text on the UI...
    Example:
        <phtmlb:formLayoutColumnHeader id   = "PublInfoGroupHeader"
                        text     = "<%= otr(xxxxxxxx) %>"  />
    Thx in advance, best regards.
    Angelo

    did you try
    text = "<font color='red'><%= otr(xxxxxxxx) %></font>"

  • How to set the text color in a Canvas?

    When I use (Graphics) g.setColor(255,255,255), then g.drawString("xxx", 0, 0, ....);
    the simulator works well but it can't work in my mobile phone (Nokia 7650).
    What's wrong?
    Thanks.

    do it like this
    g.setColor(255,255,255);//this will set the color for the canvas
    g.fillRect(0,0,ht,wd);//this will fill the rect(screen) with the above color,actually this will be BG color for ur app..ht,wd are the height and width of ur canvas...
    now specify color for the text
    g.setColor(r,g,b);//this color shud ofcourse be diff frm the color set for BG
    now draw the string
    g.drawString("xxx", 0, 0, ....);

  • How to turn the text edit into microsoft word

    Hi guys, please help me.. my professor send us a  a document but in text edit version.. i dont know how to edit it in microsoft word. or is this possible.. is just that i am scared that i typed in all my work in text edit and it will not be saved. please help.. thank you

    OS X 10.9 Mavericks
    Make a copy or two of the document and keep it safe.
    Open the TextEdit document.
    Click "File" menu in the TextEdit menubar and select "Duplicate"
    A new copy with" copy" attached to the title will be created.
    Click "Save" from the TextEdit "File" menu in the menu bar.
    Give it a name and answer "Where".
    Click File format popup box and select Word...

  • How do I change the text color of footers on select pages? (InDesign CS6)

    Good afternoon,
    Months ago, I worked with a graphic designer to put together a 100-page workbook for my training company. He turned all of the files over to me and I'd like to make a small change before we print another run for a new client. Specifically, I'm having trouble changing the text color on select pages. Since a picture says 1,000 words, let me give you an example:
    As you can see, the copyright information on the right side of the page is difficult to read here when placed over the photo (you may have to look closely, but it's along the guy's sleeve). What I'd love to do is change that part of the footer (not the left, page number side) to white text. This would make it quite a bit easier to read. There's a number of other pages in the book that I want to make this change to. I'm not sure why I never noticed it or mentioned it to the designer. I suppose I've become more discerning since then.
    Let me tell you what I've tried to do:
    I learned how to override master pages by CTRL+SHIFT clicking on the footer. However, this has not worked for me. It allows me to change the page number part, but not the copyright side. Additionally, sometimes when I override the master the formatting of the footer goes goofy. For instance, the left side and right side come together and end up in the middle of the page I'm working on.
    I'm looking for a quick way to go through and make the footers easier to read on pages where they are backed by a photo. Hoping you can help me. Please let me know if you need any other information.
    Best,
    Taylor

    I think you should have left it as it was. It seems like what you had was single pages flowing as spreads within InDesign. Like below. That is the correct way, and when you changed it to all single, it did create your footer problems.
    Will you be sending the file as a PDF to your online printer? If so, then leaving the InDesign file set as below is fine. The PDF output will separate the pages.
    All you have to do is make sure that Pages, not Spreads, is chosen when you output the PDF

  • HoW to ChaNGE the text in the mobile application to be in MulTi-CoLoR text

    _*  Do anyone can tell me how to change the text in the mobile application to be in multi-color text, to make it more interesting and increase readability?
    Is it using the Graphic's paint() method? or any better suggestion?
    Please give the short example if can?
    Please help... "_"
    Hearing from u all soon...@_@
    thanks....

    Go into outline view. If you can see the outlines of the letterforms, you can't just change the text. If the letterforms are solid black, take the type tool, select the text and type yours.
    Anyway you can just select the letters, take the type tool and type new text.
    Working with the type tool is a basic. Please see the manual for details

  • How do i change the text color in ichat?

    How do i change the text color in ichat?

    Hi,
    In One Chat by word or letter go to the Format Menu as you type (Highlight and change like you would in any other App)
    On a more permanent basis the Font, it's colour and the IM background colour are set in iChat Menu > Preferences > Messages
    10:12 PM      Wednesday; November 23, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • How do I change the text color from blue in Safari on Macbook Pro?

    I have trouble seeing the light blue text color -- many article use this.  How can I change the text color?

    Is this a particular website where you see the light blue color?
    If so, please post a link to that site in your Reply.
    Exactly which light blue color are you referrting to ??

  • How do I change the text color in a call out box?

    How do I change the text color in a call out box?

    See http://help.adobe.com/en_US/acrobat/X/standard/using/WS58a04a822e3e50102bd615109794195ff-7 e5a.w.html
    Also http://helpx.adobe.com/acrobat/kb/unable-edit-properties-text-box.html

  • How do you change the text color in your junk mail folder

    How do you change the text color in your junk mail folder?

    Try Mail Preferences/Junk tab and under " When Junk Mail Arrives" click Performe Custom Action then advanced
    you will see the option for colors.
    Hope this helps

Maybe you are looking for

  • How to have creative p5800 in 5.1 mode and a microphone at the same t

    Hello everybody, pls, can somebody advise, how can i use my creative p5800 in 5. mode and at the same time to have microphone working properly. for the moment i have installed my creative as stereo speakers and the mic is plugged?into the sound card,

  • Address Book ulContacts don't appear in iTunes

    I just went to sync my original iPhone via iTunes and just discovered that my address book contacts don't appear in iTunes. My address book is fine and all of my groups appear. Anyone have any helpful hints to get them to reappear?

  • Creating chapters for iPad video

    I understand that chapters can be added to videos using Quicktime Pro. If I do this, will I be able to see the chapters on an iPad? I don't want to pay the upgrade price and find out it doesn't work. Has anyone done this or willing to do a quick test

  • Java Shapefile Converter in 11g

    I am looking for documentation on how to compile and run the Java Shapefile Converter that is supposedly included with Oracle 11g Spatial (referenced here: http://www.oracle.com/technology/software/products/spatial/index.html). I haven't been able to

  • Problem opening mail and SMS in E71

    I've just recently installed Mail for exchange. It worked great for a day or two.Now I can't open any messages. My mails and SMSs arrive, I see the subject, put I can't open them. It is possible for me to delete messages. I can even reply to emails.