About the Text in HTML Viewer

Does SAP scripting engine expose any API by which we get the text in a GuiCtrlHTMLViewer. The GuiCtrlHTMLViewer seems to be extending  GuiShell object which is supposed to return Classid for the .Text property. What do the AccText/AccTextOnRequest property return? Everytime I try to get these properties (I am coding in C#) , I end up getting System.Runtime.InteropServices.COMException even after enabling the Accessibility mode. Am I missing something here?

i have some text in a TextArea and I was wondering if
it is possible to write some on it with an specific
font and color, impact in red, and following to it
another one with other font and color,The simple answer is no. JTextArea and TextArea do not support rendering more than one font or colour for their text.
You need to use a JTextPane or JEditorPane.

Similar Messages

  • How can i see the text of one view?

    I want to see the text of one view stored in my Oracle DB, then i run the next query:
    SELECT TEXT FROM ALL_VIEWS WHERE VIEW_NAME = view_name;
    The problem is that the information return me truncated.
    How can i see the text of one view?
    Sorry, my English is terrible.
    I'm from Argentina.

    Use 'set long 100000000' at sql prompt. Run your query again.

  • Help needed in formating the text using HTML tags in reports 10g

    Hi all,
    I have a situation here. We have an application which prints out Reports with a few lines of text in it. This text is entered by the user through our forms application in a field. That particular text is stored in each row of a particular long column. Here I want to modify the text, while printing, on the report like underline, bold, italics etc,.
    As of now I am using the HTML tags, in the forms, to do so as most the times the text in the report is same.
    I want to know if this can be done by the user itself while he is entering the data in the field through the form.
    Thanks in advance . I will explain you more clearly if you need.

    Hi,
    The code did work. But I am not sucessfully able to display the values entered in 2nd page in the 3rd page.Please find the code below:
    <html>
    <head>
    <script language="LiveScript">
    function WinOpen() {
    if (document.form1.cap.value == "")
    alert("Enter value in text box");
    return;
    msg=open("","DisplayWindow","toolbar=no,directories=no,menubar=no, scrollbars=yes");
    msg.document.write("<HTML><HEAD><TITLE>Yo!</TITLE></HEAD>");
    msg.document.write("<CENTER><h1><B>This is really cool!</B></h1></CENTER>");
    msg.document.write('<BODY><form name="form2">');
    for(var i =0; i < document.form1.cap.value; i++)
    msg.document.write("<INPUT type=text name=tbAlphaNumeric>");
    msg.document.write("<br>");
    msg.document.write('<input type="button" name="Button2" value="Steal" onClick="javascript:window.opener.WinShow();">');
    msg.document.write('</form></BODY></HTML>');
    function WinShow() {
    msg=open("","DisplayWindow","toolbar=no,directories=no,menubar=no, scrollbars=yes");
    msg.document.write("<HTML><HEAD><TITLE>Great!</TITLE></HEAD>");
    msg.document.write("<CENTER><h1><B>Display of second page text elements!</B></h1></CENTER>");
    msg.document.write('<BODY><form name="form3">');
    for(var j =0; j < document.form1.cap.value; j++)
    msg.document.write(document.form2.tbAlphaNumeric[j].value);
    msg.document.write("<br>");
    msg.document.write('</form></BODY></HTML>');
    </script>
    </head>
    <body>
    <form name="form1">
    <INPUT type= "text" name=cap>
    <input type="button" name="Button1" value="Push me" onClick="WinOpen()">
    </form>
    </body>
    </html>

  • Remove/Hide the text in S3 View of HCM_TS_APV

    Hi Folks,
    Client requirement is they wanted to remove the Overtime hours and text, here am attaching pics to give a clear idea.
    Actual App Functionality:
    Client Requirement:
    Kindly suggest me how to remove/hide the Overtime entries.
    Regards,
    Kiran.

    Hello
    I think you have to remove the following code from view view/S3.view.xml, that belongs to BSP Application HCM_TS_APV:
    <Label
                                             class="tsaOvertime"
                                             text="{path:'DetailModel>Overtime', formatter:'hcm.mgr.approve.timesheet.utility.Parser.parseOverTime'}"></Label>
    In order to remove fields from a Fiori app, there are a lot of documents in the web, that you can find by performing a Google search. For me, the best one is this one:
    How to Guide: SAP Fiori Extensibility - Addind Custom Fields in UI
    Once in the guide, go to page 9, where you will find a clear explanation of what you need to do.
    Regards
    Joaquin

  • I Am New To The Andriod Bionic With A Question About The Texting Interface

    I fracking HATE the texting interface. Ima used to the Incredible. I liked being able to look at past conversations with out having to go to an entirely different program. I liked seeing the last conversation i had with a friend on my home screen. I looked at the options and there is no option for that. I think it's kinda stupid that once a conversation is viewed it disappears, and while I realize it's in the message box I find it annoying to see that stupid little message of "no unviewed messages" on my screen.
    Is there a way to make it so that my messages are still viewable on my home screen? Is there an app or a viewer that I just am not aware of?
    Any help would be appreciated. I like my new phone, now that it's working, I just wish it would let me see my texts on the home screen.

    ps, is it showing my real name... cause I really don't want my real name out there

  • About the delete of joined view

    if create a view refering to a single table, then the delete operation to the view will delete the corresponding row in the refered table, but when i create a view by joining two tables, the result seems to be confused.
    create view ev select e.ename,d.loc from emp e,dept d where e.deptno=d.deptno;
    delete from ev where loc like 'N%';
    then 3 row was deleted from the view with 3 rows deleted in the emp table, but nothing happened in the table dept which supposed to be also delete;
    Why, or is these any principles dealing with the deleting this kinds of view. and I tried, the insert of this view is forbidden.

    nothing happened in the table dept which supposed to be also delete
    Sorry, according to who exactly? According to your opinion of how this ought to work without actually reading the documentation?
    DELETE from a join view requires that the view contains one (and only one) key-preserved table and that is the table that is DELETEd from.
    If you wanted to modify this behaviour (e.g. to DELETE from both tables) you could consider using an INSTEAD-OF trigger.

  • About the text displayed onto any component

    when I am using setForeground() method it changes color of all the previously appended text. I would like to display text in different colors simultenously can any body suggest me how can I do it. if no then please give me the reason.
    If you have any answer please mail me at
    [email protected]
    Thanks,

    Hi,
    Here's an example which displays text in different colors onto a JEditorPane and a JTextPane.
    import javax.swing.*;
    import javax.swing.text.*;
    import java.awt.*;
    import java.awt.event.*;
    public class ColorDemo extends JFrame {
         public ColorDemo() {
              super("ColorDemo");
              // coloured JEditorPane
              JEditorPane editorPane = new JEditorPane("text/html",
                   "<FONT color=red> This </FONT>"+
                   "<FONT color=blue> is </FONT>"+
                   "<FONT color=green> a </FONT>"+
                   "<B> JEditorPane </B>");
              editorPane.setPreferredSize(new Dimension(250, 150));
              // coloured JTextPane
              JTextPane textPane = new JTextPane();
              textPane.setPreferredSize(new Dimension(250, 150));
              Document doc = textPane.getDocument();
              Style def = StyleContext.getDefaultStyleContext().
                   getStyle(StyleContext.DEFAULT_STYLE);
              try {
                   StyleConstants.setForeground(def, Color.blue);
                   doc.insertString (0, "This ", def);
                   StyleConstants.setForeground(def, Color.red);
                   doc.insertString (5, "is ", def);
                   StyleConstants.setForeground(def, Color.green);
                   doc.insertString (8, "a ", def);
                   StyleConstants.setBold(def, true);
                   StyleConstants.setForeground(def, Color.black);
                   doc.insertString (10, "JTextPane", def);
              } catch (Exception e) {}
              JPanel contentPane = new JPanel();
              contentPane.add(textPane);
              contentPane.add(editorPane);
              setContentPane(contentPane);
         public static void main(String[] args) {
              JFrame frame = new ColorDemo();
              frame.addWindowListener(new WindowAdapter() {
                   public void windowClosing(WindowEvent e) {
                        System.exit(0);
              frame.pack();
              frame.setVisible(true);
    }Hope this helps,
    Kurt.

  • Print the text into html file

    Dear all,
    How i will print the result directly to the html file instead of print output in the console.
    Give the sample code.
    Thanks & Regards,
    kumar

    Hi kumar :)
    I'm not sure if this is what you mean but Jakarta has an Element Construction
    Set (ECS) API that can generate elements for HTML and XML mark-up
    languages.
    Please checkout their site: http://jakarta.apache.org/ecs/

  • About the Text Mining

    Hi Friends
    please tell me about
    What is text mining? how it is used in BioMedical ?
    & how it should be implemented for dignosis of Cancer
    also tell me how we used Java for this

    What is text mining? how it is used in BioMedical ?
    & how it should be implemented for dignosis of Cancersearch in google
    also tell me how we used Java for thiscomputer are used for computation and java is a programming language. You can program what you want to compute.
    Edited by: shashi_rajak on 11 Oct, 2009 5:27 PM

  • About the text to speech voices in iMac, not so good

    Does anyone else think that the voice Alex and the other voices in the imac dont speak that good? when i used my previous windows computer, there were 2 voices that i liked called Mike and Mary. In my opinion, Mike speaks more better then Alex. Alex talks like he is bored and running out of air to breathe. Mike talks like he is serious and will read for me no matter what. Is this normal? Is there a way to make Alex speak better? or is that just how it is? Is there a way to get Mike for the Mac?

    There probably are other voices available; no doubt someone will tell us where to find them.
    Meanwhile, in System Preferences > Universal Access click the button to go to Voice Over Utility and select the speech tab. There you can play about with the pitch, speed and intonation of the voices. I found a setting for Alex that I find acceptable; you may be able to find something to suit you.

  • Question about the text datatype in SQL server 2008 r2

    How do I read/write this datatype to/from the database using C#? (visual studio 2010) I am not sure how to handle it.

    Go to Tools/Designers and uncheck this option (see the image). Also, instead of executing the change right away, click on the script option and examine the proposed change. SSMS often makes changes script more difficult than it needs to be.
    For every expert, there is an equal and opposite expert. - Becker's Law
    My blog
    My TechNet articles

  • How do I change the formatting of the section text in portrait view?

    I'm attempting to write my first book using iBooks Author.  I've got everything looking pretty good so far in landscape view, but when it changes to portrait view, I don't like the automatic formatting and I can't figure out how to change it.  I chose the "Contemporary" template.  In landscape view, I changed the section title and the default formatting (white over an image) looks fine.  When I change to portrait mode, the section title turns to red, which I would like to change to another color.  However, I can't even select the text in this view.  I can see the style in the paragraph styles drawer, but I don't know how to change it there either.  Is it possible to change the color, and if so, how?  Thanks.

    Already advised....
    Basically,  after each chapter or section is finished in LS, use the Orientation icon, top menu bar to change to portrait and edit content.  Images are automatically reduced in size etc,.
    Fig 1 - I used this to demonstarte  Bookmarks ( in red)  but take this as your start point in LS
    Fig 2
    As you can see  from the Orientation icon shaded in Blue at top - this is Portrait mode.
    The image has  changed to the tempate default - so you need to change the template or drop the same image in.  I had changed the background and removed the top embellisment in LS  so again, you  may need to change your template - that aside the  section title and text are white in both examples.
    Fig 3.
    I have changed the section and text colour.   Apps is in  white intentionally and the bookmark stays in the link colour red
    Fig 4     Back in LS mode - see icon  top menu
    The section colour stayed white,  but the text changed to  yellow
    Fig 5 
    I changed the section colour to red.
    OK thats how changing things affects each mode including the image sizes.
    IF the red section  title ( in LS) is selected - in the styles drawer you can see it - switch to portrait, select the section title and apply the  same style.  Essentially, think you are creating two separate books  and edit the potrait to match - where possible the LS version.
    Apple have deemed some things, like TOC page images cannot  be changed individually in Portrait mode.

  • A few tips about using the Text Panel

    A recent question about the text panel set me to working with it and I thought I'd share some tips I discovered, since the help files don't explain the text panel at all.
    At one time I called the text panel "useless", but I've changed my mind -- it's a nice thing to have.  Essentially it's a quick way to instantaneously
    Create a new layer with a semi-transparent layer style.
    Create a rectangular shape on that layer.
    Add a drop shadow effect to that shape.
    All with a double-click!
    You access the text panel from the "Effects" panel and its "Photo Effects" icon, choosing the "Frame" effect:
    Double-clicking on it creates the layer and the shape.  By default, the text panel layer has a semi-transparent layer style applied to it and this has caused great grief for those who want a completely opaque background behind some text.  Not to worry, that's easily done.  To whet your appetite, here are a few effects that can be achieved with the text panel:
    Let's start with the "Big text" box:
    Create the text panel.
    Because we want an opaque panel, right-click on the shape in the Editor and select "Clear layer style".  POOF!  Instantly you've got an opaque white shape with no drop shadow.
    Move and resize the panel.  (It's still horizontal at this point.)
    Add some text (which will come in on its own layer).
    Size and position the text relative to the shape, and when you're satisfied, select both the shape layer and the text layer (using the Ctrl key) in the Layers panel and click on the "Link layers" icon at the bottom of the Layers panel.  This links the shape and text so they can be moved and rotated as one.  The layers wind up looking like this:
    Now, let's look at the "small text" box:
    Create the text panel.
    Position the panel and add and position some text as before.
    Because we want the text panel to be a dark grey (instead of the default white), with the text panel layer selected, select the "Create new fill or adjustment layer" icon at the bottom of the Layers panel and select "Hue/Saturation...".  Be sure to use the "Clip to layer" icon, and lower the "Lightness" value:
    This gives the nice transparent grey background so the white text shows up very well, even against the bright white of the clouds.
    Select all three of the layers and link them together:
    Finally, you can have some fun with the "Fancy" effects:
    Create the text panel.
    Position the panel, add some text, and set their positions.
    Add a "Hue/Saturation" adjustment layer as before (clipping it to the text panel shape layer).
    Colorize the text panel by using these settings:
    5.  Don't forget to link the layers together:
    6.  Double-click on the "fx" icon to the right of the text panel shape layer, which will bring up the "Layer effects" dialog box.  Here you can create the bevel and adjust the size and transparency of the drop shadow.
    You can also get this nice faded effect on the text panel:
    After following the steps listed above, add a mask layer to the text panel shape layer and draw a gradient fill on that mask layer to fade the layer.  I used a linear fill going from white to a dark gray because I wanted some of the text panel to always be showing:
    N.B.: Make sure you always clip the "Hue/Saturation" adjustment layer to the text panel shape layer so that the H/S adjustments only affect the text panel.
    That's it!  Enjoy!
    Ken

    Yes nice job.
    Thanks for posting this.
    MTSTUNER

  • Text type 'HTML' for the Channel 'Mail (Letter)'

    Dear Experts,
    I'm unable to use the text type 'HTML' for the Channel 'Mail (Letter)' in mail forms, as a result of which fonts like arial and images like jpeg could not be used in mail forms created for letters.
    Is there a way to use HTML type or to have more font options, insert JPEG images, tables etc in mail forms for letters?
    Regards,
    Kathir

    In case, if you are using custom excel export functionality, you should use fileDownloadActionListener with in a button.
    Here, you could specify the content type.
    <af:commandButton text="Say Hello">
                  <af:fileDownloadActionListener filename="hello_txt"
                                            contentType="text/plain; charset=utf-8"
                                            method="#{bean.sayHello}"/>
                </af:commandButton>For more details, check here:
    http://docs.oracle.com/cd/E16162_01/apirefs.1112/e17491/tagdoc/af_fileDownloadActionListener.html

  • Read Text from HTML-Pages and want to solve "ChangedCharSetException"

    Hello,
    I have an app that connect via threads with pages and parse them an gives me only the Text-version of a HTML-page. Works fine, but if it found a page, where the text is within images, than the whole app stopps and gave me the message:
    javax.swing.text.ChangedCharSetException
            at javax.swing.text.html.parser.DocumentParser.handleEmptyTag(DocumentParser.java:169)
            at javax.swing.text.html.parser.Parser.startTag(Parser.java:372)
            at javax.swing.text.html.parser.Parser.parseTag(Parser.java:1846)
            at javax.swing.text.html.parser.Parser.parseContent(Parser.java:1881)
            at javax.swing.text.html.parser.Parser.parse(Parser.java:2047)
            at javax.swing.text.html.parser.DocumentParser.parse(DocumentParser.java:106)
            at javax.swing.text.html.parser.ParserDelegator.parse(ParserDelegator.java:78)
            at aufruf.main(aufruf.java:33)So I tried to catch them with "getCharSetSpec()" and "keyEqualsCharSet( )" from the class "javax.swing.text.ChangedCharSetException" and hoped that this solved the problem. But still doesen't work...
    Then I looked at the web and found, that I have to add the line:
    doc.putProperty("IgnoreCharsetDirective", new Boolean(true));"doc." is a new HTML Dokument, created with the HTMLEditorKit. I do not have much knowledge about that and so I hope, that someone can explain me, how I can solve that problem, within my code.
    Here we go:
    import javax.swing.text.*;
    import java.lang.*;
    import java.util.*;
    import java.net.*;
    import java.io.*;
    import javax.swing.text.html.*;
    import javax.swing.text.html.parser.*;
    public class myParser extends Thread
            private String name;
            public void run()
                    try
                            URL viele = new URL(name);                       // "name" ia a variable with a lot of links
                    URLConnection hs = viele.openConnection();
                    hs.connect();
                    if (hs.getContentType().startsWith("text/html"))
                            InputStream is = hs.getInputStream();
                            InputStreamReader isr = new InputStreamReader(is);
                            BufferedReader br = new BufferedReader(isr);
                            Lesen los = new Lesen();
                            ParserDelegator parser = new ParserDelegator();
                            parser.parse(br,los, false);
            catch (MalformedURLException e)
                    System.err.print("Doesn't work");
            catch (ChangedCharSetException e)
                    e.getCharSetSpec();
                    e.keyEqualsCharSet();
                    e.printStackTrace();
            catch (Exception o)
            public void vowi(String n)
                    name = n;
    }and for the case that it is important here is the class "Lesen"
    import java.net.*;
    import java.io.*;
    import javax.swing.text.*;
    import javax.swing.text.html.*;
    import javax.swing.text.html.parser.*;
    class Lesen extends HTMLEditorKit.ParserCallback
            public void handleStartTag(HTML.Tag t, MutableAttributeSet a, int pos)
                    try
                            if ((t==HTML.Tag.P) || (t==HTML.Tag.H1) || (t==HTML.Tag.H2) || (t==HTML.Tag.H3) || (t==HTML.Tag.H4) || (t==HTML.Tag.H5) || (t==HTML.Tag.H6))
                                    System.out.println();
                    catch (Exception q)
                            System.out.println(q.getMessage());
            public void handleSimpleTag(HTML.Tag t,MutableAttributeSet a, int pos)
                    try
                            if (t==HTML.Tag.BR)
                                    System.out.println(); // Neue Zeile
                                    System.out.println();
                    catch (Exception qw)
                            System.out.println(qw.getMessage());
            public void handleText(char[] data, int pos)
                    try
                            System.out.print(data);                                           // prints the text from HTML-pages
                    catch (Exception ab)
                            System.out.println(ab.getMessage());
    }Thanks a lot for helping...
    Stephan

    parser.parse(br,los, false);
    parser.parse(br,los, true);

Maybe you are looking for