Text and Attributes

Hi.
I've got a JTextPane and its formatted Document (with plain, bold or underlined words). Now I want to save this Document in someways, letting every word keep its own style.
Can I save it in .doc format or .htm format????
if I try to save it with PrintWriter out.println(); I lose all the attributes.
or is there a method like this: Document.getText(0, 5).getStyle(), so I know what style is associated to that segment????
thank you

Hi.
I've got a JTextPane and its formatted Document (with plain, bold or underlined words). Now I want to save this Document in someways, letting every word keep its own style.
Can I save it in .doc format or .htm format????
if I try to save it with PrintWriter out.println(); I lose all the attributes.
or is there a method like this: Document.getText(0, 5).getStyle(), so I know what style is associated to that segment????
thank you

Similar Messages

  • Open hub destination of text and attribute for Functional Area

    Hi Expert
    I have a requirement to accommodate both attribute ( 0FUNCT_LOC_ATTR)  and text ( 0FUNCT_LOC_TEXT ) for functional area in open hub destination .For this a DSO has been created from both 0FUNCT_LOC_ATTR, 0FUNCT_LOC_TEXT data sources .Problem is that DSO has 0FUNCT_AREA ( Functional Area ) as only key fields . So text for both english ( EN ) and Dutch ( NL) for particular 0FUNCT_AREA not getting loaded .If we assign both 0LANGU and 0FUNCT_AREA as composite key of dso , data from attribute transformation is loaded as blank as there is no language filed in attribute data source ( 0FUNCT_LOC_ATTR ).   Please let me know how can I design to accommodate both text for different language and functional area for open hub destination  .
    I know that I can create separate open hub destination for master data TEXT and Attribute.
    Any help is highly appreciated.
    Regards
    Saikat

    HI Saikat,
    You can create an additional characteristics counter and make it a key field in the DSO.After that we can populate this characteristics in the end routine .It value would increase by 1 everytime  different text comes for the same functional area.
    Sample code
    data: counter type n,
             w_farea type /bio/oifunc_area.
    Sort result_package by func_area.
    count =0.
    *checking whether we have the same functional area or we have a different functional area.
    Loop at result_package assigning <Result_fields>.
    if w_farea is initial or w_farea = <result_fields>-func_area.
    count = count +1.
    else
    count =1.
    endif.
    w_farea= <result_fields>-func_area.
    <Result_fields>-zcount = count.
    ENDLOOP.
    Clear w_farea.
    This way the value of counter would get increased by one everytime a new text comes for the same functional area.We can have any number of texts for the same functional area by this method.
    The only issue would be when some delta update comes for the existing text in this method.If you are doing a full load to the DSO from the datasource, then there would be no issue with this method.

  • Error message uploading 0material text and attributes.

    Dear all,
    i have received an error message when uploading 0material text and attributes.
    Error message is as follows:
    RSDMD 194
    Data record 512 & with the key '000000000000000081T &' is invalid in
    value '000000000000000081 &' of the attribute/characteristic 0MATERIAL
    The system has recognized that the value mentioned above is invalid, and
    has processed this general error message. A subsequent message may give
    you more information on the error. This message refers to the same
    value, even though it does not state this explicitly.
    any help?
    thanks

    Hi john mcquade,
    Your error message says it all!
    You have your 0material with wrong info to be loaded, check your PSA the records with error (should begin in record 512) and see what is inserted as 0material (probably you're missing some zeros before the number).
    You could compare that record with another one (less than the record 512) to see an example of a material that has the right input and this one that exists here with errors.
    Diogo.

  • Master Data Text and Attributes

    Guys,
               I read some posts on sdn regarding differences between master data texts and attributes and now I am a little confused.  I thought attributes define a char.  then what does text do?  Does it not define or describe the char as well?  If both are doing the same thing then why do we need both ?  I am not sure if my understanding is correct.  Please help me.
    Thanks,
    RG

    Hi Ram,
    To understand in a better way little bit of R/3 work would have been helpful.
    In R/3 Every entity has master data maintained like customer, material, plant etc.
    If you would see a customer in R/3 you can see it has lots of information..like address,telephone number,street company name, etc.
    And along with it we have customer name...i.e. description..(text)
    Now in R/3...text tables are generally maintained separately then master data tables...it can be together as well.
    Something like for you Ram Goswami is descrption(text) for the user ID XXXXXXX in SDN.
    Email ID and company name is the master data stored here for him.
    BW has used the same modelling concept to keep the text table separate from the msater data table.
    It creates to separate data target for master data and text so that two seperate tables can be maintained in BW and you have to load the data in both to see the master as well as text.
    Since we have separate master data table and text table in R/3 therefore we have separate data sources as well based on them.
    You would like to have you master data table exactly as the master data table of R/3 so you will add attributes in the infoobject 0customer and it will create a P table for 0customer...keep adding attributes to make the columns in the table and to make the exact copy of R/3 table i.e. to bring all the information from R/3 about customer master you add attributes in the 0customer.The data soiurce based on this table in R/3 will contain the fields from the table.
    Now you do the mappings with fields between infoobject and data source and load the data ...so master data is loaded.
    For text...once you check the text option in infoobject..SAP creates a new table Tcustomer in the background..
    Now you have to do the mappings for this as well through the data source based on the text table in R/3.
    In some cases the master data table contains text as well and in that case you use the same data source based on this table to create two separate update rules one for master data object and another one for text object and do the mappings accordingly.
    In this case you schedule the load to both the target at the same time and data gets loaded.
    but for different data sources you will have to schedule the load separately.
    Once data loaded for this...now you can use it in the report and see the text as well as master data attributes in the reports and there values.
    I hope that was more then enough
    Thanks
    Ajeet

  • Load Text and Attribute using same DataSource

    Hi,
    Is it possible to load text and attributes using same datasource? If yes than how can this be done?
    Thank you,
    CD

    Yes you are right in that case it will be an attribute , and in the report show it as display attribute. If you want to apply the text at Infoobject level,
    (1) In the change mode of Iinfoobject , check both with Master data and Text boxes , in the Master data /text tab
    (2) Make Flexible or direct update
    (3) Create 2 Infopackages one loading from ATTR data source and the other from TEXT data source respectively.
    hope it helps,

  • Extract InfoObject data, Text and attributes

    Hi guys,
    I have a need to extract InfoObjects data for 3rd-party use
    I mean the whole snow flakes schema including the 'P' table and all accompanied 'T' tables,
    I can do it with database view through SE11, but it is a lot of "dirty" job.
    I also know that I can export infoobect data through openhub but it gives me either text or attributes only, I cannot combine them.
    Does anyone have an idea on how to accomplish that?
    Regards
    Shlomi

    Hi Sven and Vikram
    As I wrote in my first post,
    I know that I can create a view in SE11 but my problem was that it is a long process as I have over 30 tables and that's only to 1 Infoobject, I will need to do the same to many Infoobjects.
    I was looking for a faster way.
    Maybe there is already database view that is created automatically or there is another way without having to analyze all tables and join them manually.
    Regards
    Shlomi

  • How to preserve encoded characters at text and attributes node?

    <greeting>hello, <World> </greeting>
    When I run a SAX parser, it automatically decodes the characters
    and make the document ill-formed after the round trip.
    <greeting>hello, <world> </greeting> --- ERROR
    Q: How do I preserve those special characters at text node and attribute nodes?
    Thanks

    Thanks for you guys' help.
    It's great to get a real-time help from this online community.
    Yue,
    What I attempted to do was
    0. I have 6G <database> document having 1.4 M <entry>s.
    1. Read one <entry> at a time using SAX
    2. Save each <entry> to a buffer
    3. Pass the buffer to a Unmarshaller ( JAXB ) and create a JavaObject
    Repeat above moving to next <entry> until reaches to the end.
    At step 1, unescape happens
    becomes >< becomes <
    and & &
    making my doc malformed (which is legal) :(
    At step 2, I did the following to perserve <, >, and &
    str = str.replaceAll( ">", "&gt;");
    str = str.replaceAll( "<", "&lt;");
    str = str.replaceAll( "&", "&amp;");At step 3, JAXB is now happy to get a healthy XML input
    <greeting>hello, <World></greeting>
    It turned out to be nobody's fault but myself.
    It was a good lesson, though.
    Thanks, buddies

  • Can't get master data text and attributes

    Hi,
    I have a BEx query report which is reading data from a virtual infocube in BI7.0 environment. In this query report I need to display the company code and also its long text and 3 of the company code master data's attributes.
    My company code master data has been loaded and its data activated. However when I ran this BEx query report, I could not see the long text and 3 of the company code master data's attributes.
    I know this is not a problem for a basic infocube but will this query report able to do the same when reading data straight from a virtual infocube?
    Please let me know.

    Hi
    I had tried all sorts - attribute change run and manually activating the master data.  Still doesnt work.
    Anthony

  • Difference between text data and attributes in master data?

    Hello,
    a charcteristic in BW maintains texts, hierarchies and attributes.
    What exactly is the difference between texts and attributes?
    Attributes describe master data like a customer. The country where the customer resides, the industry etc. describe and classify the customer. Attributes are not just the structure/metadata of the characteristics. They are also the content. The following table should visualize what i mean:
    customer-no. | name
    112          | mcpherson inc.
    113          | donalds inc.
    Texts contain contain the description of a characteristic. Texts define a characteristic. An example is the customers name. It does not describe the customer but defines him/her.
    Is my understanding about these two parts of master data right?
    What else except the customer's name belongs to the texts?
    If I set up a characteristic like the customer in SAP BW, do I have to create an attribute "name". The name belongs to texts, not to attributes?? If I upload master data then, how does it work?
    Thanks in advance.

    Hi,
    If your analysis includes country and region then country  and region should be included in the Infocube.This is required because only if you include these characteristics then you can restrict your queries for country and region.You may need to select some particular countires/region and show the report.Then you have to restrict your queries to only those countries/region.This is possible only if you have these  characteristic in your infocube.
    I am just envisaging your model like this.
    Characteristic in the Infocube
    Customer
    Country
    Region
    Customer Attributes
    Customer Number (SID which is self generated)
    Customer Address1,2 ,3
    Registration No
    Date of Registration
    Deposit Amount
    etc ...
    Region Attributes
    Region Number (SID)
    Total Customers
    Sale Office Address
    Number of Sales Persons
    Customer Attributes
    Customer Number (SID)
    Total Customers
    Head Office Address
    Number of Sales Persons
    GDP
    Total Population
    So the conclusion is whichever entity you want to restrict or analyse should be a part of Infocube.It is very difficult to do analysis based on attributes as I mentioned in my earlier post that they are only "Display attributes" (u can just show that's it).
    Yes!! there are  methods available for analysis based on characteristics in attributes table and you have to do either with virtual characteristic or replacement path or with writing code in customer exits.But a good design and earlier study of all possible report combination and having a good design will avoid good amount of development time and changes.
    I have suffered  when I had only 0CALDAY in my cube and when I want to take a monthly analysis, I was unable to do it and then I have to redesign my whole cube.
    Please anyone, correct me if I am wrong.
    Regs
    Gopi.

  • What is exactly meant by text and hierarchy??

    what is exactly meant by text and hierarchy??
    if i have cust_id as characteristic and cust name,address etc as its attributes what will be text and hierarchy in this case??

    Hi
    There are three different types of master data in BI:
    1.       Attributes
    Attributes are InfoObjects that are logically subordinate to a characteristic. You cannot select attributes in the query.
    You assign the attributes Person responsible for the cost center and Telephone number of the person responsible for the cost center (characteristics as attributes), as well as Size of the cost center in square meters (key figure as attribute) to a Cost Center.
    2.       Texts
    You can create text descriptions for master data or load text descriptions for master data into BI. Texts are stored in a text table.
    In the text table, the Name of the person responsible for the cost center is assigned to the master data Person responsible for the cost center.
    3.       Hierarchies
    A hierarchy serves as a context and structure for a characteristic according to individual sort criteria. For more detailed information, see Hierarchies.
    Features
    Time-dependent attributes:
    If the characteristic has at least one time-dependent attribute, a time interval is specified for this attribute. Since the time frame for master data on the database must always be between 01.01.1000 and 12.31.1000, the gaps are filled automatically (see Maintaining Time-Dependent Master Data).
    Time-dependent texts:
    If you create time-dependent texts, the system always displays the text for the key date in the query.
    Time-dependent texts and attributes:
    If texts and attributes are time dependent, the time intervals do not have to agree.
    Language-dependent texts:
    In Characteristic InfoObject Maintenance, you specify whether texts are language specific (for example, with product names: German ® Auto, English ® car) or are not language specific (for example, customer names). The system only displays texts in the selected language.
    If texts are language dependent, you have to load all texts with a language indicator.
    custid as characteristic and cust name,address etc as its attributes what will be text and hierarchy_
    Cust name will be text
    address will be text
    custid will be hirerchy_
    Only texts exist:
    You can also create texts only for a characteristic, without maintaining attributes. When you load texts, the system automatically generates the entries in the SID table.
    Hope it helps
    Regards
    gaurav

  • Master data text and ods

    can i load the master data text and ods parallely?

    Hi Abby,
    If your ODS contains a characteristic value of an infoobject and you want to load master data (texts and attributes) of this IO, you'd better load master data first (not in parallel), then transaction data.
    You can do it in a process chain.
    Such a sequence will prevent the possible ODS activation failure.
    Best regards,
    Eugene

  • Bullets and Numbering "Text After" attribute

    Hi Everyone,
    I need to grab "Text After" attribute of and existing bullet list in InDesign document and change it to my text. I think, I need to get access to "kBNBulletTextAfterBoss", but I don't know which boss agregates it.
    Thanks

    I've found it a much better practice, especially in heavily numbered documents, to look for a paragraph style that can be set to start at zero. I usually apply it to any headings or subheadings where the numbering below remains consistent. But that's just my experience.
    You can also right click and restrat or continue numbering.

  • How can I apply text position attributes (e.g. lower third) to more than one title at a time?

    How can I apply text position attributes (e.g. lower third) to more than one title at a time?

    jhb3243
    What version of Premiere Elements are you using and on what computer operating system is it running?
    In the case of this theoretical lower third to be applied to more than one title at a time
    a. Is there text in the lower third besides a graphic of some kind?
    b. Are all the titles to which this lower third is to be applied all together on the Timeline or scattered?
    If no text in lower third and titles all together, then, with text titles on Video 1 and lower third on Video 2, drag out the lower third to cover the length of the text titles on Video 1.
    I do not find "lower third" title files to be in the same category as certain effects where the Copy and "Paste Attributes" or "Paste Effects and Adjustments" lend themselves so well.
    Let us see what others have to say about all this. I will continue to experiment with what you seek and how you would prefer to get there. I am not optimistic but I will try.
    Thanks.
    ATR

  • How to send a plain text and HTML email at once?

    Hi all,
    I'm attempting to use cfmailpart to send a HTML and plain text email all in the same cfmail script.  I'm using Outlook and Gmail to test.  I temporarily changed my Outlook settings to "read all standard mail in plain text," but it does not read the plain text cfmailpart of the email, it just attempts to format the text from the HTML email and display the links.  If I remove the HTML cfmailpart from my cfmail script, the plain text version is delivered, but Outlook removes extra line breaks that I actually want to keep intact, and some of the other formatting is improperly rendered.  Is there a better way to make sure email clients hold the plain text formatting (even though there really isn't any formatting with plain text) and a better way to test?  The HTML version looks great in both Gmail and Outlook.
    Thanks!

    Use the wraptext attribute of the cfmailpart tag to add line breaks.

  • Read field of TextInmput text and to execute referring condition to the informed text

    Post Read field of TextInmput text and to execute referring condition to the informed text, AS3.0 To depend the inserted text for the user, flash will be read by the compiler to player, and a connective if goes to define for which picture will be directed or which page web will be linkada with the URLRequest function, or the function gotoAndPlay () for the pictures of timeline. Ultiliza object of field of dinãmico text or textInput? input I find. ---------------------------------------------------------
    OBJECTS: Object of text entrance: textoEntrada
    button for verification: button link
    All the code is stored in picture 1. we have the function:
    Code:
    stop ();
    function loads (event: MouseEvent): void {
    to var textoEntrada: String;
    if (textoEntrada == " sim"){
          to var link: URLRequest = new URLRequest (" HTTP: \ \ google.com");
          navigateToURL (link);
          } else { gotoAndPlay (2); \ \ the picture where 2ª option is located in timeline }
    to botaolink.addEventListener (MouseEvent: CLICK, loads);
    THIS CODE AND DID NOT FUNCTION!

    made the sujeridas modifications, but it appears the following error: Scene 1, Layer ' Layer 2' , Picture 1, Line 18 1086: Error of syntax: waiting semicolon before port. My objective is when clicar in the button will be verified what he was inserted in the text field, if to contain the word “yes program” it goes to open a URL senão goes for frame 2 of the line of the time.
    where " textE" it is the object of entrance text that this in palco, as well as the button is located in palco, with a name of occurrence of " boto".
    the two elements had been attributed to the name of occurrence through the menu properties of the flash.
    import flash.events.MouseEvent;
    import flash.net.URLRequest;
    function port(event:MouseEvent):void{
                    var textE:String;
                    if(textE.text == "yes"){
                                   trace("primary portfolio to Author");
                                   var indic:URLRequest = new URLRequest ("http://google.com");
                                   navigateToURL(indic);
                    }else{
                                   trace("second page to author");
                                   gotoAndPlay(2);
              boto.addEventListener(MouseEvent.CLICK)port;
    stop();

Maybe you are looking for

  • Error in Sysn-Async with out bpm

    Hi folks, I have a scnario  JDBC-PROXY-file..with out BPM. File - RFC - File without a BPM - Possible from SP 19. by using this blog Now for this i used sync JDBC sender here it is repetely taking data from jdbc and it is not updating in the tables w

  • Java Plug-In1.3.1_03 and downloading applets

    hey, Following is the detail of my problem with Java 1.3.1_03 Plug-In: I have a java applet written using Microsoft SDK 4.0 in Java 1.1. This applet is downloadable from the browser. When I have the Java Plug-In enabled to load applets (in my Browser

  • Possible Fix for Printing Problems in Leopard

    I got this information from Mac OS X Leopard Edition book by David Pogue. Here's his possible fix for printing problems in Leopard...Open web browser and enter this address http://127.0.0.1:631. You'll find youself at a secret "front end" for CUPS (C

  • FRM-10043: Cannot open file after converting SQL*Form 2.3 INP to 4.5 FMB

    After running the f45gen32.exe on a version SQL*Form 2.3 INP file, it generates the version 4.5 FMB adn the .err file (that does not indicate that any errors have occurred). When I attempt to open the converted module using Developer 2000 v.1.3, it c

  • Open 5 error.  Is my hard drive toast?

    My Mac Mini 1.66 Intel locked up last night. I had to use the power button toshut it down. Now I get a greay screen and the Apple logo when I try to boot. I booted from my external drive and was able to pull some of my files from the internal drive,