Cannot Change Font color

Hi!
I'm trying to change the font color of some field in my report document.
when I export the report to pdf file , i'm not see the change .
anyone know why?
thanx...
//the code...
targetdoc = reportAppFactory.openDocument(infoObject.getID(), 0, java.util.Locale.US);
ReportObjects rob = targetdoc.getReportDefController().getReportObjectController().getAllReportObjects();
FieldObject fld = (FieldObject) rob.getReportObject(6);
FontColor fc = (FontColor) fld.getFontColor();
fc.setColor(Color.YELLOW);
//export to pdf
ByteArrayInputStream byteIS = (ByteArrayInputStream) targetdoc.getPrintOutputController().export(ReportExportFormat.PDF);
byte[] buf = new byte[2000 * 1024];
         int nRead = 0;
         FileOutputStream fos = new FileOutputStream("report5" +".pdf");
         while ((nRead = byteIS.read(buf)) != -1) {
               fos.write(buf, 0, nRead);
          fos.flush();
          fos.close();
          targetdoc.save();
    targetdoc.close();

I have the same problem with you.Does any one have solution?

Similar Messages

  • JSP - Changing font color

    Hi,
    Does anyone know if it is possible to change the font color on a jsp page with a condition.
    example: if qty1 > qty2
    change font color to red
    else
    font color black
    end if;
    Is there anywhere I can put a condition like this?
    Thanks,
    Mary

    Hi Mary,
    You have to create a format trigger for your condition. Then you can reference the format trigger inside your JSP report in the <rw:field> tag. From the Reports Builder Help, the syntax is:
    <rw:field id="field_id" src="object_name" [breakLevel="level"]
    [breakValue="break_value"] [nullValue="null_value"] [containsHtml="HTML_value"]
    [formatMask="format_mask"] [formatTrigger="format_trigger"] [urlEncode="encode_value"] >
    [tag body]
    </rw:field>
    You need to populate the formatTrigger attribute. Pl see Reports Builder Help for more information.
    Navneet.

  • Why I cannot change font  and Color in JFrame title??

    Dear sir:
    I try to change font and Color in JFrame title in code below,
    It display all html code, not expected formatted ones.
    but fail. Looks like no way to do it??
    Can somebody help??
    Thanks
    import java.awt.BorderLayout;
    import java.awt.Toolkit;
    import javax.swing.*;
    public class JFrameTester {
      public static void main(String[] args) {
         String iconPath ="file:C:/eclipse/workspace/Test/images/long.PNG";
         String title = "<html><body bgcolor=\"yellow\">" + "<img src=\""+iconPath+"\">" +
              " <font size=\"6\" face=\"Verdana\" color=\"red\"><b>"+ "New Tester" + "</b></font></html>";
        JFrame f = new JFrame(title);
        f.setIconImage(Toolkit.getDefaultToolkit().getImage("images/123.gif"));
        f.setSize(250, 250);
        f.setLocation(300,200);
        f.getContentPane().add(new BorderLayout().CENTER, new JTextArea(10, 40));
        f.setVisible(true);
    }

    Looks like no way to do it??depends on the L&F you want.
    here's one way
    import java.awt.*;
    import javax.swing.*;
    class JFrameTester {
      public static void main(String[] args) {
        JFrame.setDefaultLookAndFeelDecorated(true);
        UIManager.put("activeCaption", new javax.swing.plaf.ColorUIResource(Color.RED));
        UIManager.put("activeCaptionText", new javax.swing.plaf.ColorUIResource(Color.YELLOW));
        String title = "Hello World";
        JFrame f = new JFrame(title);
        f.getLayeredPane().getComponent(1).setFont(new Font("Tall Paul",Font.ITALIC,24));
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.setSize(250, 250);
        f.setLocation(300,200);
        f.getContentPane().add(new BorderLayout().CENTER, new JTextArea(10, 40));
        f.setVisible(true);
    }

  • Change font color in the Text Field of a Popup Key LOV

    Hello,
    I have a question concerning Popup Key LOV.
    I want to change the font color in the Text Field of the Popup Key LOV Item.
    I searched the forum but I cannot find an answer about this! Although I searched the CSS and the Popup Key LOV Template, but I do not know where to modify the font color.
    Has anyone an idea how to solve that problem?
    Regards,
    Tim

    Hey,
    thank for your reply!
    I use style="color:#000000;" and it work in Firefox, but not in Internet Explorer 7.0!
    And that is not the first time, that there are differences in displaying those tags in the HTML Form Element Attributes and in css files, etc.
    Does anybody know I to solve that?
    Thank you,
    Tim

  • Changing Font Colors on Master Slides

    I really like Keynote compared to Powerpoint, but I am having a problem making one change to the master theme slides. I am able to change the look, font, etc. on the master slides of a theme, but I cannot figure out how to change the font color in the master slides. Which means that when I am using Portfolio, for instance, which I like, I have to change each slide's font color from gray to black, which is easier to read. I would rather do that on the master slides, but have been unsuccessful thus far.
    Any help would be appreciated. it doesn't make sense that you could revise the masters in just about any way EXCEPT font color. So I must be missing something.

    You change the font color on the master slide, the same way you change it on any other slide. Click view, then Show Master Slides, then select the slide and change it the way you do a regular slide.

  • My Excel with PowerPivots acts weird, it hangs when i try to change font color

    Hi 
    I am facing a weird issue using PowerPivot in my workbook, there is a worksheet named Charts in my workbook and all the charts i am using resides in that worksheet. Whenever i try to change the font color in that sheet, my excel's color palette goes blur
    and then everything just freezes and turns black. This problem is happening only with Charts worksheet, when i try to change the color in other sheets, it works just, the problem is only with Charts sheet. File
    size is 16 MB, there are just 10 pivot tables with some calculations and some calculated fields. There are no add-ins other than PowerPivot. 
    Thanks,
    Shanker

    Hi,
    In regarding of the issue, please provide us more information to assist you better.
    Do you receive any error message?
    Which Excel version are you using?  Excel 2013 or other?
    Which workbook format are you using? XLS or XLSX?
    Are you performing any specific task?
    According to your description, this issue seems only occur with the special worksheet "Charts".
    Firstly, I recommend we copy all of the content to a new/blank Excel file to test.
    If it works fine, this issue might be caused by the "Charts" workbook itself. We'd better check the "Charts" workbook. Or re-build the file with a new workbook.
    If it still makes Excel hang with a new file, this issue might due to the content. Please check the content first.
    Secondly, we could follow below KB to troubleshoot this issue:
    https://support2.microsoft.com/kb/2758592/en-us?wa=wsignin1.0
    Thirdly, if the issue still exists, we may try to collect the Event log and App crash dump file to do advanced troubleshooting.
    Event log:
    http://windows.microsoft.com/en-US/windows7/Open-Event-Viewer
    App crash dump file:
    First enable app crash dump collection by copying following words into notepad, saving it as dump.reg and importing
    it:
    Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\localdumps\EXCEL.EXE]
    "DumpFolder"=hex(2):63,00,3a,00,5c,00,63,00,72,00,61,00,73,00,68,00,64,00,75,\
      00,6d,00,70,00,73,00,00,00
    "DumpCount"=dword:00000010
    "DumpType"=dword:00000001
    "CustomDumpFlags"=dword:00000000
    Then, open Excel
    to repro the issue. If crash issue appeared, please find the crashdump file under c:\.
    To further help you, please upload this file into Skydrive and shared the link here.
    Also, you can try to analyze dump by yourself if you would like to:
    How to analyze app crash dump file:
    http://blogs.technet.com/b/askperf/archive/2007/05/29/basic-debugging-of-an-application-crash.aspx
    Hope it's helpful.
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Unable to change font color in inserted textbox

    Hi All,
    Thanks for help. I have an aplication which brings up an image for editing in flash. Here is what happens.
    I click on A tool and insert 2 text boxes on the image and type something. Then I click on the Arrow tool and double click on text in Text box 1 to select it. Then try to change the font color from the font menu icon. It does not work. But after selecting the text in text box 1 and trying to change the font size from the menu seems to work fine. Can any one plz help??

    This seems to be a question for Flash Authorying. Can you post this in the forum of Flash CS?
    Here's the link http://forums.adobe.com/community/flash

  • Change font color in reports depending on condition

    I have an application that generates a number of new records at
    the click of a button, which the user can then modify through
    several report-form links. My users have requested that the data
    appear in one color in the reports if they have not yet updated
    the records, and that they change color, permanently, when
    updated. I'm not sure how to accomplish this. I do well with
    PLSQL, but I think this is probably a Javascript issue(?) - or
    is it possible to specify font color of a report when you call a
    URL?
    Any ideas anyone?

    Thank you, both Michaels. I was excited. I was sure this would
    work, so I added the updated_by fields to all my reports (they
    should be useful anyway). I worked on a couple of other issues
    related to this, and returnred this morning to add the HTML font
    tags to my report queries. I CAN'T MAKE IT WORK! I've attached
    my code, and error message. Any thoughts on what I'm doing
    wrong? Thanks.
    (Note: The query works fine without the HTML tags.)
    My code:
    select '<font color=red>'||activity.act_text||'</font>' act_text,
    from Activity, survey, temp
    where activity.survey_id = survey.survey_id and
    survey.survey_id = temp.survey
    Error message:
    Unable to describe SQL statement. Please correct it (WWV-13010)
    Invalid SQL statement: SELECT '<FONT
    COLOR=RED>'||ACTIVITY.ACT_TEXT||'</FONT>' ACT_TEXT, FROM
    ACTIVITY, SURVEY, TEMP WHERE ACTIVITY.SURVEY_ID =
    SURVEY.SURVEY_ID AND SURVEY.SURVEY_ID = TEMP.SURVEY (WWV-13005)
    ORA-01001: invalid cursor (WWV-11230)
    ORA-00936: missing expression (WWV-11230)
    Failed to parse as MCHBGA - SELECT '<FONT
    COLOR=RED>'||ACTIVITY.ACT_TEXT||'</FONT>' ACT_TEXT, FROM
    ACTIVITY, SURVEY, TEMP WHERE ACTIVITY.SURVEY_ID =
    SURVEY.SURVEY_ID AND SURVEY.SURVEY_ID = TEMP.SURVEY (WWV-08300)
    I appreciate your help. I'm tearing my hair out.
    Karli

  • Change font color in Report Code causes font size to change.

    I am trying to dynamically change the font color in a report, red for negative, green for positive and blue for 0. I have created a report region and here is my code:
    select city_name,
    py_re_taxable,cy_re_taxable,
    decode(sign(re_chg),-1,'<font color="red">'||re_chg||'</font>',
    0,'<font color="blue">'||re_chg||'</font>',
    1,'<font color="green">'||re_chg||'</font>','') RE_CHG
    from rc_dashboard_recap a, lk_city_code b
    where b.tax_year = :CURRENT_TAX_YEAR
    and a.city_code = b.city_code
    and userid = :GLOBAL_USER
    order by 1
    This code works great except it overrides my css text size and shows up as a page default size. I can't seem to figure out why this happens. This also happens when I try to sum a column. I've set my font size to 11 in my css and it is calling it correctly, however with the above code, my font size shows up at 12 or so.
    I am looking at the code (view source from my page and it shows the correct class
    <td class="t3dataalta" align="right" ><font color="red">-13.98</font>
    in my css:
    td.t3dataalta{font-size:11px;padding:2px;padding-left:5px;padding-right:5px;}
    If I remove the decode statements with the font color then my font size is correct, but I need to figure out how to make the colors work.
    Does anyone have any ideas?
    Thank You

    select city_name,
    py_re_taxable,cy_re_taxable,
    decode(sign(re_chg),-1,'font color="red"'||re_chg||'/font',
    0,'font color="blue"'||re_chg||'/font',
    1,'font color="green"'||re_chg||'/font','') RE_CHG
    from rc_dashboard_recap a, lk_city_code b
    where b.tax_year = :CURRENT_TAX_YEAR
    and a.city_code = b.city_code
    and userid = :GLOBAL_USER
    order by 1
    Here is my query, I removed the < and > signs in the code so that you could see what I have done.

  • How do I change font colors in the navigation bar

    I'm designing a new website for my son's high school lacrosse team. It looks great, and I hope to upload it in the next week. The one thing that I haven't been able to do is change the font colors and font type in the page navigation links a the top of the pages. Can anyone help me with this?

    I outlined methods to change iweb navbar in this thread:
    http://discussions.apple.com/thread.jspa?messageID=11004066&#11004066
    and cited inefficient of building text base/box navbar:
    http://discussions.apple.com/thread.jspa?messageID=8136472&#8136472

  • In Earthlink WebMail when inserting an email address or weblink, the text no longer turns blue and underlines, and I can't change font colors. IE Works.

    Whenever I try to insert an email address or a link to a website, I no longer get the automatic hyperlink (turning blue and underlining). Also if I try to change the font color on some text it either doesn't change from black or it changes to a different color. (If I try to change to red, I get dark green; change to a bright green, I get dark red; change to blue or yellow, I get black).
    I tried removing and reinstalling Firefox to no avail. Earthlink is clueless.
    This all works properly using Internet Explorer.

    When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    (1) Bypass Firefox's Cache
    Use Ctrl+Shift+r to reload the page fresh from the server.
    (You also can clear Firefox's cache completely using:
    orange Firefox button ''or'' Tools menu > Options > Advanced
    On the Network mini-tab > Cached Web Content : "Clear Now")
    (2) Remove the site's cookies (save any pending work first) using either of these. While viewing a page on the site:
    * right-click and choose View Page Info > Security > "View Cookies"
    * Alt+t (open the classic Tools menu) > Page Info > Security > "View Cookies"
    Then try reloading the page. Does that help?
    These features rely on JavaScript, and it sounds as though you have scripting enabled if you get (the wrong) color changes. Some add-ons might alter the way scripts operate, so a standard diagnostic to bypass interference by extensions (and some custom settings) is to try Firefox's Safe Mode.
    First, I recommend backing up your Firefox settings in case something goes wrong. See [[Backing up your information]]. (You can copy your entire Firefox profile folder somewhere outside of the Mozilla folder.)
    Next, restart Firefox in Firefox's Safe Mode ([[Safe Mode]]) using
    Help > Restart with Add-ons Disabled
    In the dialog, click "Start in Safe Mode."
    If those features work correctly, this points to one of your extensions or custom settings as the problem.
    To also disable plugins, you can use this page:
    orange Firefox button ''or'' classic Tools menu > Add-ons > Plugins category
    Any change?

  • Cannot change font size when highlighted. All font changes. How do I correct this?

    Frustrated as to why when I highlight a single word to change font size or style every word on the page follows the adjustment. I need to be able to change words individually with font, size and color.

    I have stopped using Text Edit as I find it flaky. Instead I prefer Bean:
    http://www.bean-osx.com/Bean.html
    which does not have that problem!

  • Changing Font color

    Simple question: How do I change the color of lifetype font to anything but black/white??? This isn't animation color, just simple text. I see the ability to change the color for everything like shadow and outline, but not the text itself. where is this??? Thanks

    Highlight the track that has your font on it.
    Go to the Inspector and click the Attributes tab. Click the color swatch in the lower 1/3 of the window.
    Choose your color.

  • Changing font color site-wide??

    Hi,
    I am trying to change the color of my font and my links
    site-wide. Is there any easy way to do this?
    Thanks,
    David

    You would need to add those to a stylesheet that was linked
    to all the
    pages, not just in the head of a single document.... 8)
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Virginia Carter" <[email protected]>
    wrote in message
    news:g2ui3m$sml$[email protected]..
    > Yep -- you can do this with CSS...
    >
    > If you want all your text to be red, then just add this
    to the head of the
    > document:
    >
    > <style type="text/css>
    >
    > body {color: #F00;}
    >
    > </style>
    >
    > Likewise, if you want all of your links to be white, you
    would add the
    > following:
    >
    > a {color: #FFFFFF;}
    >
    > Those will globally change your font color and link (a
    href) color
    > throughout your entire site, assuming you don't have any
    other CSS
    > anywhere...
    >
    > --
    > Virginia Carter
    > Carolina Web Creations
    > ======================
    > www.carolinawebcreations.biz
    >
    > David Way wrote:
    >> Hi,
    >>
    >> I am trying to change the color of my font and my
    links site-wide. Is
    >> there any easy way to do this?
    >>
    >> Thanks,
    >>
    >> David

  • Changing font color in a report using SQL query for APEX 5.0

    Hello,
    I am testing APEX 5.0 in my testing environment to see if I can migrate my internal apps from 4.2 to 5.0.
    How can I change the font color in a field based in the SQL query? I know how to do it in 4.2 but I can't find the same in 5.0.
    Thanks,

    Well, I used to put the html tags in the select as text getting the color value depending a CASE , then I had to change the Display attribute for the column in the report as "Display as text (espace special characters...)".
    I found an old post here: https://tylermuth.wordpress.com/2007/12/01/conditional-column-formatting-in-apex/ and  this method still worked for me in APEX 5.0
    Thanks anyways

Maybe you are looking for

  • Bridge freezes - Building Criteria

    This problem just began two days ago using Bridge CC. No hardware changes - nothing except accepting whatever CC updates have come up. I open Bridge, navigate to a folder, and everything seems fine. Click on any other folder, and Bridge locks up with

  • Execute a command from servlet

    Hello, How can I execute this command from a servlet ? example: I want execute "java -cp /root/:/root/log/api/:/root/log/apps/ Transmitter" when I lunch servlet1.java so which class in JAVA can do this ? Thanks ?

  • Firefox is locked in top-left corner of my screen, missing Title bar

    FF 11.0 The menu bar is displayed but disabled (greyed-out), and I can't Min or Max FF (no buttons). Presumably I could Alt-F4 it, but I don't want to, I just want to be able to move it again. This seems to have happened as a result of accidentally d

  • How do I export smaller sized files?

    Some web sites have very small file sized limits for uploaded photos.  I can see on the export dialogue box the option to limit file sizes when exporting a photo.  However, when I select a smaller file size, say 200k or 500k, almost always Lightroom

  • After Efftect to FCP color Shift

    I am compositing video from FCP in After Effects out put back to FCP matching formats and get the RGB to YUV color shift. I understand why but not how to correct the problem. I have tried the sequence setting and selected render in RGB but the releat