How to show 2 views of a HTML Document

Hello. I have 2 JEditorPanes. I want the first JEditorPane shows the document with colours, bold text... and the second JEditorPane shows the same document with tags. I have this code:
editor1.setContentType("text/html");
editor2.setContentType("text/plain");
editor2.setDocument(editor1.getDocument());So changes in editor1 are shown in editor2 and changes in editor1 are shown in editor1. It works fine, but editor2 shows me no tags.
Any idea? Thank you.

use these tables.
Gr :MKPF,MSEG.
Invoice :RBKP,RSEG.

Similar Messages

  • How to show all view tab (Main Report and all Sub Report) in Visual FoxPro 9

    I use ActiveX from Crystal Report Developer XI for viewer in Visual FoxPro 9 and I already know how to show Main Report by using command:
    oRptRun=createobject("CrystalRuntime.Application")
    oRptView=thisform.oleRptViewer
    oRptOpen=oRptRun.OpenReport('MyReport.rpt')
    oRptView.ReportSource=oRptOpen
    oRptView.ViewReport
    Inside the MyReport.rpt there is two subreport name :
    1. MySubReport1
    2. MySubReport2
    My Question is :
    How to show all view tab (Main Report and all Sub Report) at the 1st time we call ViewReport?
    I try to using command :
    oRptRun=createobject("CrystalRuntime.Application")
    oRptView=thisform.oleRptViewer
    oRptOpen=oRptRun.OpenReport('MyReport.rpt')
    oRptSub=oRptOpen.OpenSubreport("MySubReport1")
    oRptSub=oRptOpen.OpenSubreport("MySubReport2")
    oRptView.ReportSource=oRptOpen
    oRptView.ViewReport
    but only show Main Report (view tab name : Preview)?
    Did I miss any command before I call oRptView.ViewReport?

    Your right, there is only one tab to view the report.
    To open the subreports you will need to click on them in the main report. I don't know of a way to open them programmatically like you are doing here
    http://diamond.businessobjects.com/robhorne</a>

  • How have a list view of last published documents when you are a contributor ?

    Hello,
    thanks for your help.
    here is the problem :
    - A library is set with versionning (draft and published) documents.
    - the library contain this documents
    - DOC A : version 1.3 : version 1.0 is published
    - DOC B : version 2.4 : version 2.0 was unpublished
    - Adam is a contributor of this library. He can create, edit, delete, publish, unpublish a document. His list view display DOC A v1.3 and DOC B version 2.4.
    - John is a reader of this library. He can only read the published documents. His list view display DOC A v1.0 only.
    To manage this library, Adam want to have the same view of this library as John. He want to view only the published documents.
    How can I give a published document view to Adam ?
    My first reflexe was to do a view filtering the versions containing ".0". The problem is that DOC A not appear, because the visibility version of this document is 1.3 for Adam (and 1.0 for John)
    How can I give him a published document view? perhaps with programmation, SharePoint Designer,...
    thanks for every help and samples.

    Give Adam a test account with the same permissions as John. It's the only way to be sure.
    w: http://www.the-north.com/sharepoint | t: @JMcAllisterCH | YouTube: http://www.youtube.com/user/JamieMcAllisterMVP

  • How to get Safari to open an HTML document created in AIR on iOS

    We have an iOS app that creates a 3-page HTML document on the user's device and then prints it. We were using Darkredz ANE to do this, but the ANE is broken in iOS 8 and the Darkredz website is abandoned.
    As a workaround, we want to use Safari to launch the HTML document, then print from Safari. But Safari won't open a local document that belongs to another app, probably because of the security sandbox. We don't have a network connection, so we can't save the file remotely. Is there a way to get Safari to open a local document?
    If not, does anyone know of a FileManager app that can open files that are located in the "documents" folder of other apps on the device? I've tried several of them, but so far, they only load files from iCloud, Box, etc.
    Thanks for any tips.

    Sorry I didnt think about it needing to print as 3 separate pages at specific points. If you can't get the HTML printing to work then you could keep could this thought in mind. If the height of the, I presume, HTMLLoader object is the right value, you can draw the white-space of the page into the BitmapData and then it might still print at the right location. If it doesn't work immediately and you felt like putting in a little more effort, you might be able to tweak the height of the HTMLLoader objects so that each one represents a single page. Granted this approach would likely only work for one paper size format, such as 8.5x11. Sorry I don't have any easier ideas that work with what you already have done so far

  • How to show list view of pages?

    I want to show list of subsits on navigation. when clicking a subsite on navigation  to show corresponding pages in list view. on clicking a page in list view to open page. please share your view how it can be done. 

    Hi Magesh,
    According to your description, my understanding is that you want to show subsites on the navigation, and when the mouse hovers, the corresponding pages are shown in list view, click these pages, it will be opened. Is it right?
    To achieve it, you can use managed navigation. Go to Site Settings->Term store management, you can create a term set, create terms based on the names of the subistes, for each term, click Navigation, and under Navigation Node Type, select the URL of the
    subsite for “Simple Link or Header”. Then in each corresonding subsite term, create some sub-terms related to pages, and for each sub-term, click Navigation and under Navigation Node Type, select the URLs of the corresponding page for “Simple Link or Header”.
    After the above, go to Site Settings->Navigation, on the Global Navigation section, select “Managed Navagation:…”. On the Managed Navigation :Term Set section, select the term that you created.
    More information, please refer to the link:
    http://www.c-sharpcorner.com/UploadFile/anavijai/managed-metadata-navigation-in-sharepoint-2013/
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • How to show Quick View form on the Form's Header instead of in form body?

    Hi Experts,
    I am having requirement to show the Quick view form on the form's header in MS CRM 2013. Is it possible?
    If yes please help me out to achieve this.
    Thanks
    Baji Rahaman

    Thanks Andrii for quick response.
    I am having look up control on the form and I would like to show the related information in header.
    Is there any alternative way to achieve this.
    Thanks
    Baji Rahaman

  • How to show ParentComp view from ChildComp View

    Hi ,
    I have a DC in which i have 2 components - ParentComp and ChildComp
    ParentComp uses ChildComp.I am abe to pass data from parent to child via isInputType=true Node in Interface controller
    Also, i can fire plug to call ChildComp View from ParentCompView.
    But i am unable to call ParentView from Child View - i.e  in my childcomp view i have a button "go to parent".it should calll the parentcomp view and make it visible
    How can i achieve this?
    points assured for help
    Thanks and Regards

    Hi,
    Assuming that you navigate to ChildComp using ChildComp Interface View i.e
    // to navigate from from parent comp view to child comp view
    1. You embed the Interface view of your child component in the Window of the parent Comp
    2.Create a outbound plug (toChildCompViewOut) in the view of parent comp and create a navigation link from Outbound plug of parent view to InboundPlug of ChildComp Interface view
    3. On action in the parent view
        wdThis.wdFirePlugtoChildCompViewOut();
    // to naviagte from child comp view to parent comp view
    1. Create a outbound plug in the ChildComp Interface View say "toParentCompOut"
    2. Create a inbound plug in the parent comp view and link this with the outbound plug of your ChildComp Interface View.
    3. Add the interface view as required controller in the view of child comp
    4. On action in the child comp view
        wdThis.wdGetChildCompInterfaceView.wdFirePlugtoParentCompOut();

  • How to get the View for a particular Document position?

    Hi there,
    Does anyone know how to get the "deepest" View that is responsible for rendering a particular Document offset?
    I tried looking at modelToView() and some other methods, but I am lost.
    Can anyone please help me?
    Thanks,
    Swati

    Bart--
    To find the table cell of the insertion point, you could use something like:
    InterfacePtr<ITextStoryThread> storythreadp(txtModel->QueryStoryThread(startPos + 1));
    InterfacePtr<ICellContent> cellcontentp(storythreadp, UseDefaultIID());
    if (! cellcontentp) {
      // Not a table cell, so see if it's the primary thread (kTextStoryBoss/ITextModel).
      InterfacePtr<ITextModel> threadmodelp(storythreadp, UseDefaultIID());
      if (threadmodelp) {
        // It's the primary thread...
      else {
        // It's something else with an ITextStoryThread (note, footnote, etc.).
    else {
      // The insertion point's in a table cell (kTextCellContentBoss).
      InterfacePtr<ITableModel> tableModel(cellcontentp->GetTableModel(), UseDefaultIID());
      GridID gridID(cellcontentp->GetGridID());
      GridAddress gridLoc(cellcontentp->GetGridAddress());
      // ...and so on.
    Hope this helps get you where you want to go.
    Chris Roueche / Freelance Developer

  • When I convert a word document to a pdf, it shows up as a firefox html document

    Recently I reloaded my acrobat pro and ever since when I convert a word file to a pdf, it shows as a firefox html file.  Why?

    Hi chief grunt,
    It seems that the pdf ownership is taken over by Firefox.
    Right click on the generated file and select 'Open with' > Choose Default program.
    In the list of Programs that appear select Adobe Acrobat and click on 'Apply> Ok'
    You can also check the setting in Acrobat > Edit> Preferences> General> Defalult pdf handler
    Regards,
    Rave

  • Does anyone know how to remove read only status from html document header

    Greetings, I am trying to insert a slideshow widget inot a dreamweaver site using a dynamic web template (DWT). I get the error message unable to insert because header is read only. Any ideas of how to fix this?

    People hate it when I do this, but I'm going to get on my soap box again.
    If you are not an expert or at least highly proficient at modifying XHTML and CSS code, you should NOT be working with DWT files. Until you FULLY understand how to edit and modify nested, editable, parent and child regions, you will have nothing but trouble working with DWTs.
    I've been writing CSS, HTML and XHTML for seven years and I don't mess with DWTs because I'll admit I'm a control freak and I can't stand having any part of a web page locked up by another file.
    Use the pre-designed pages in DW, or download a layout from one of the many sites that have them, but until you are an expert at codework, stay away from templates (dwt). You'll save yourself a lot of headaches.

  • How to get 100% view centered when opening document?

    I work with my documents at 100%. Whenever I open a document the pages are placed rather randomly on my screen... Is there a way to have the pages centered by default? I have to press cmd-alt-0 (to center the spread) and then cmd-1 (to g to 100%) everytime... There MUST be a way to have my documents centered AND at 100% at ONCE when I opened them... right?

    That's exactly what I did, in March already. Thanks for the tip anyway because I see I didn't post my solution yet, which might be handy for future use. I did add (on my Mac) the command-shift-A shorcut to it (as the first in the row) to deselect everything: if you don't do that and you have something selected, an imagie or text, it will center that selected image or text onscreen, which is not what I want. So my script (I actually use Keyboard Maestro) looks like this:
    Shift-Command-A
    Option-Command-0
    Command-1
    And I actually assigned Command-1 to the 'script' because it's such an easy key combination. And when I want something 100% onscreen i almost always want the document to be centered too. Sometimes it's a pity my 'script' also deselects everything, but I've learned to live with it.
    I already made a habit of pressing Command-1 as soon as I open a document...

  • How to show view tab Main Report and all of Sub Report in one action through Visual FoxPro

    How to show all view tab (Main Report and all of Sub Report) in one action.
    I already know how to show Main Report with this code sample:
    oRptRun=createobject("CrystalRuntime.Application")
    oRptView=this.Parent.oleRptViewer
    oRptOpen=oRptRun.OpenReport('MyReport.rpt')
    oRptView.ReportSource=oRptOpen
    oRptView.ViewReport
    Inside the 'MyReport.rpt' it has 2 subreports:
    1. MySubReport_1
    2. MySubReport_2
    I try to show MySubReport_1 and MySubReport_2 together with their own Main Report with this code sample:
    oRptRun=createobject("CrystalRuntime.Application")
    oRptView=this.Parent.oleRptViewer
    oRptOpen=oRptRun.OpenReport('MyReport.rpt')
    oRptSub1=oRptOpen.OpenSubreport('MySubReport_1')
    oRptSub2=oRptOpen.OpenSubreport('MySubReport_2')
    oRptView.ReportSource=oRptOpen
    oRptView.ViewReport
    Did I miss something because there was only view tab 'Preview' (Main Report) shown without view tab MySubReport_1 and MySubReport_2.
    Thank you.

    Your right, there is only one tab to view the report.
    To open the subreports you will need to click on them in the main report. I don't know of a way to open them programmatically like you are doing here
    http://diamond.businessobjects.com/robhorne</a>

  • Viewing a HTML document in my Java program

    Hi,
    My Java program has a JTextPane that can display plain text or HTML documents. This program can mark up certain parts of the document to draw the user's attention.
    However, I am having problems when it comes to marking up some of the HTML documents. When they are first loaded onto the JTextPane, they appear fine. When I then run the method to apply the mark up styles, I notice that the text turns the same color as the background after a certain point - making it impossible to see the document or markup.
    The HTML (or text) document on display is made into a StyledDocument. And this is how the View for the HTML documents is created:
    HTMLEditorKit htmledkit = new HTMLEditorKit();
    ViewFactory myHTMLViewFactory = htmledkit.getViewFactory();
    return myHTMLViewFactory.create(elem);
    Note that elem is an Element -.-
    - I tried modifying the color tags in the HTML document, but even when I made the text black and the background white, the text still goes white. If it's a black background, the text goes black, etc. The markup style is actually trying to turn parts of the text red - and it works almost all of the time, apart from these certain documents.
    - I then tried applying my own style whenever a HTML document is loaded in, in the hope that I could force the background white and text black, regardless of the tags:
    MutableAttributeSet att = new SimpleAttributeSet();
    StyleConstants.setForeground(att,Color.black);
    StyleConstants.setBackground(att, Color.white);
    doc.setCharacterAttributes(0, doc.getLength(), att, false);
    The resulting document display kept the original HTML background color, but wherever there was text it looked like someone had run a highlighter over it to change the background white and text black. Kinda ugly! And it still didn't work - come markup time this style was ignored after a certain point.
    - This is one of the HTML documents that causes the problem:
    <html>
    <head>
         <link rel="STYLESHEET" type="text/css" href="mystyle.css">
         <title>My Document</title>
    </head>
    In the body tag:
    <table>
    table here... this displays fine
    </table>
    And here is the problem point:
    <table width=100% cellspacing=0 cellpadding=0>
    <tr>
    <td>
    <table width=100% cellspacing=0 cellpadding=0 style="padding: 3px; padding-top: 6px; padding-bottom: 6px;">
    <tr>
    <td width=100% style=" padding-left: 6px; padding-right: 6px;">
    <table class=pane cellpadding=0 cellspacing=0>
    <tr>
    <td width=100% class=panetitlebox align=Center >
    This is the last text that gets displayed! After this sentence, text goes same color as background.
    </td>
    </tr>
    <tr height=100% valign=top>
    <td class=panebox colspan=2 align=Left style="padding: 0px; border: solid 1px; border-top: none;">
    <table width=100% cellspacing=0 cellpadding=0>
    <tr>
    <td class=content align=Left style="padding: 4px; background: transparent;">
    <b>Bold text that doesn't show</b> More text that doesn't show
    And so on....
    In the header tag of another HTML document that has the same problem, it says it is HTML version 4.0. I have looked up the Java API and found that the javax.swing.text.html package is still 'migrating' towards HTML 4.0 and only supports HTML version 3.2. (Even in the API for Java 1.5 beta, although I use Java 1.4.2)
    So I assume that Java just can't handle my documents! I also think that most of these HTML documents were generated by a program (I think I saw Frontpage in one of the document's meta tags), because when I make my own HTML it doesn't have the problem.
    But it would be nice if my Java program can support these documents, so does anyone have any suggestions as to how I could get these documents to display properly once I apply mark up styles?
    If I haven't explained something properly, I will clarify as it is a complicated program, and I've been driving myself crazy with this problem for several days!

    I was looking through the HTML document removing pieces of code to see where the problem was. I removed all code relating to styles, alignment, width, padding etc, with no luck. The document has several tables, many of them nested, so I added some comments to see where each started and ended. After I added the comments, I checked the document in my Java program again, ran the mark up styles, and it suddenly worked! So I removed each comment one by one, checking each time, until I found the one that made it work. I then tried typing in the same spot, adding an extra space, moving the <tr> tag onto the same line, but only the HTML comment made it work. Here is the part of the document where I added the comment (it's in bold)
    This is the last text that gets displayed! After this
    sentence, text goes same color as background.
    </td>
    </tr>
    <tr height=100% valign=top>
    <td class=panebox colspan=2 align=Left style="padding:
    0px; border: solid 1px; border-top: none;">
    <table width=100% cellspacing=0 cellpadding=0> <!-- This comment makes the document display fine after markup -->
    <tr>
    <td class=content align=Left style="padding: 4px;
    background: transparent;">
    <b>Bold text that doesn't show</b> More text that
    doesn't showDoes anyone know WHY this is happening? It's so weird. I thought if it was something more obvious, like styles, I could just get my program to remove them when reading in the document. But added HTML comments????
    Thank you ^_^

  • XML forms show content of HTML document

    Hi all,
    I want to show the content of a html document stored on portal KM in the SHOW form. Can this be done? The user can browse in the EDIT form to this html document and store its path. By using a label I can only show the document path or make a link to the document. I'm unable to show the docs content.
    How can this be done?
    Thanks,
    Frederik

    I think this could be done by directly editing the XSL.  Unfortunately making changes this ways renders the forms unmanagable because you'll lose your changes when you try to use the forms builder after making your changes.
    As for how you can actually do this in XSL, you'll probably have to research that more to be sure.  I think you can use a document() function, but I'm not really an XSL pro. 

  • Parse HTML document embedded in IFRAME

    Dear fellows:
    How can I access contents of an HTML document embedded in an IFRAME tag, by using java class HTMLEditorKit.Parser?
    It is well known that the contents of such embedded HTML document can be accessed by javascript at front end. However, I am more interested on processing it at backend, using HTMLEditorKit.Parser, or any java swing API.
    Thanks for help.

    The javax.swing.text.html framework barely supports HTML 3.2.

Maybe you are looking for