Plz help me.....How to write rtf text in a file

Hi all,
i m creating a rtftextEditor.. with bold, italic ,underline, strikethroug features... i want to save the text with this attributes in a file but the strikethrough attribute does not save in the file.
the code for that i write is..
File file=new File(curFileName);
OutputStream fo=new FileOutputStream(file);
rtf.write(fo,doc,0,doc.getLength());
fo.close();
so wat can i do now.plz help me
Regards...

Sun's RTF package is old and I am not sure they have plan to update it. Many RTF keywords are not handled by the java RTF package. You might want to modify their rtf package. Most of the files in this package are protected, only the RTFEditorKit is public. Look into the src.zip file and check out the RTFGenerator.java file.

Similar Messages

  • Plz help me how to write generate this Report

    hello all,
           Can anybody tell me how to do report  to display the customeru2019s daily invoice, over due not paid Invoice. 
         atleast help me wht tables should be used and how should do coding for not paid invoice ..............
        waiting for ur answers,
                                                               thanking you in advance,
                                                                                    yours sinceraly,
                                                                                    venkatesh babu

    Hi,
    Customer's daily invoice - VBRK & VBRP tables.
    Invoice cleared not cleared: BSAD(Cleared) & BSID(Not cleared)
    Formulate your logic with this info.
    Please search SCN before posting generic questions & close this thread.
    Regards,
    Amit

  • Plz help.  How disable caching SQLJ statement  on WebLogic server 10.3?

    Plz help.
    How disable caching statement by SQLJ on WebLogic server?
    what the actual problem:
    1. create or replace view vtest as select object_name from dba_objects where rownum<200
    2. test.sqlj
      #sql dx testIterator = {
         select object_name from vtest
       int cnt=0;
       while( testIterator.next() ){
         cnt++;
       System.out.println("Count: "+cnt);
    3. Restart WebLogic and deploy project
    4. Run test on server, in log file
    "*Count: 199*"
    5. create or replace view vtest as select object_name from dba_objects where rownum<10
    6. Run test on server, in log file
    "*Count: 199*"
    7. Restart WebLogic
    8. Run test on server, in log file
    "*Count: 9*"

    Hi bud,
    Have you tried using WLST for what you are trying to achieve?
    Please take a look at the following links:
    http://docs.oracle.com/cd/E11035_01/wls100/config_scripting/domains.html
    http://docs.oracle.com/cd/E13222_01/wls/docs91/config_scripting/domains.html
    http://docs.oracle.com/cd/E13179_01/common/docs21/interm/config.html
    Hope this helps.
    Thanks,
    Cris

  • Need help on how to handle zip & text/csv as a resposne payload from Concur RestWebservice

    Hi All,
    We are getting zip(if there are multiple files) and test/csv(single file) as a response payload from the concur rest API and need your help on how to handle in NWBPM and SAP PO.
    Zip response coming in response looks like below -
    PKÀ˜F7extract_attendee_detail_p0600908soav_20150424022159.txts� rt©1204Õ50Ñ52©1¨áåPKzà@ÆPKÀ˜F2extract_CES_SAE_v3_p0600908soav_20150424022148.txts� rt©1204Õ50Ñ52©1¨©1ãåPKå늟PKÀ˜Fzà
    Text/csv response looks like below -
    Extract|2015-24-40|20|0
    Need you help on how to handle the zip content response.
    Also need help on how to handle when text/csv response comes and when zip response comes.
    As per the scenario, there are 4 calls to be made and we are using NWBPM and in the last call the actual respons (text/csv or zip) will come.
    Please provide your inputs.
    Thanks
    Narayanareddy B

    Hi Aaron,
    Thanks for your reply.
    I tried with Payload zip bean and the java mapping as mentioned in the response mapping of OM.
    Payload zip bean - Zip  zip.mode  unzip
    I am getting the error below in the receiver rest channel -
    "Transmitting the message using connection JPR failed, due to: com.sap.aii.af.lib.mp.module.ModuleException: Zip: error occured during processing: java.util.zip.ZipException: invalid stored block lengths"
    Java Mapping - used the java mapping in the response of Operation mapping
    Here also i am seeing the same error in the channel log as it is synchronous step and the message got cancelled.
    "Transmitting the message using connection JPR failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error encountered while executing mapping: com.sap.aii.af.service.mapping.MappingException: Mapping failed in runtimeApplication mapping program com/equalize/xpi/esr/mapping/java/UnzipAndAttach throws a stream transformation exception: Exception: invalid stored block lengths"
    The below is the response i am seeing and is it proper zip response payload(any encryption) , kindly advise.
    PKâE�F:ws_extract_attendee_detail_p0600908soav_20150424083413.txts� rt©1204Õ50Ñ52©1¨áåPKzà@ÆPKâE�F5ws_extract_CES_SAE_v3_p0600908soav_20150424084014.txtíTß��@~oÒÿ�÷Fº»ìV}ëòCÏz Qljß8ÜöL�`N�ùão8�Ò«�´M�Ü@�awvçûfgÇùâϤå#Ttï0Ø�B�²·olÇ�£[4Ï](L�]«�ÑbÀôÁÒc�0ÀÏdAªÙТ¨Ìû�Êv¡�b¤eJA%��=Þ7Í>PÚ=í2��7ò[�¼¡=q/°¶�*ø)
    K|<`BgÉÔºÜWs[§J�&Ñ:Ìá:´�ç«�RÐv�ÚÅAD'\�ÁtR²*DP3gî:B@JëhU�Ò'¬�ùQ\�È\D{·O×±JS\ï�-ò�¸�Þ²êó�{Å¡2®â,MmÉù XAzßüBn&®Sl-§�l¶A�×ú½³ÙFI®0¿©Ú¯¤�oT�iV²RÀJ��¼«`õ»�í Ûéwa#�àpY�««óq)U°JaøÁA�ûì>Ù³üHåÒe¾�7��Ð/§£u°Nzã÷ç4×·èãþ�¾}õ0ÙµYÄ�+J��eX\�E±ïsR%®yÜÕðsªáÚ$qÚÎÇ�Û$^%1¸AF*ý¶VÑêxÏZÏ¢U½T~Ñ®ØkW5ç×®õ¿w5¬zò:oN»�ô���íø÷úÛÙ=¬å�[ôÚ�þmczPKhÏ��i PKâE�Fzà@Æ:ws_extract_attendee_detail_p0600908soav_20150424083413.txtPKâE�FhÏ��i 5�ws_extract_CES_SAE_v3_p0600908soav_20150424084014.txtPKËö
    Thanks
    Narayanareddy B

  • HT204411 i want a itunes account to Release my songs plz help me how ?

    i want a itunes account to Release my songs plz help me how

    A possible cause on this is that you have an outstanding balance. Might be an unpaid purchase, Credit Card issue or what not. Contact them via expresslane.apple.com

  • Can you plz tell m how to write Design Strategy in the scenario IDoc-- File

    Hi,
    can any body plz tell me how to write Design strategy, Preprocessing logic and post processing logic in the scenario IDoc-->File.
        My idoc is:
                Message Type: ZMMIPORDCHG
                Basic Type  : ORDERS05.
    lookup's are available.

    Hi,
    take a look at this document for an IDOC to IDOC Scenario,
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cdded790-0201-0010-6db8-beb9bb2b2660
    Use it as a template to design one side of the Interface and also take a look at this blog,
    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters
    Regards,
    Bhavesh

  • I have lost my iphone 5 and after sometime I find it in my office but some one has lock it by Icoloud plz help me how to recover my phone

    Dear Friends
    I have lost my iphone 5 in my office  and after sometime I find it in my office in my back drawer but some one has lock it by ICloud plz help me how to recover my phone U have all details of my phone.

    The only way to locate/disable/erase any lost/stolen iPhone/iPod Touch is through Find My Phone or a similar app. However, this requires that Find My Phone be setup/activated, on your phone, before it was lost/stolen. You would then login at iCloud.com & try to locate it. This requires the phone be turned on & have an Internet connection. There is no other way to locate a lost/stolen iPhone. Apple can't/won't help you, nor will your carrier. Report the loss to the Police, your carrier & Insurance company. Change all of your passwords, especially your Apple ID/iCloud password NOW!
    If your carrier offers Blacklisting & they Blacklist the phone, it will be unusable as a phone.
    If locked with a passcode, and running iOS 7.0, then phone cannot be re-activated or the passcode removed without knowing your Apple iD/Password. It will be nothing but a useless paperweight.
    If not running iOS 7.0, the phone can be forced into recovery mode & restored.

  • Plz help me how to turn 3G on in iphone 4S???

    My iphone no show to "turn 3G on/off" in iphone 4S!!!
    plz help me,how to turn 3G on in iphone 4S???

    E indicates you are connected to an EDGE (2G) data network. Whether or not the 3G slider appears is up to the carrier. if it does not appear, as in your case, then 3G is turned on at all times. If the phone can not detect a 3G network, or if your account is not provisioned to allow 3G data service, the phone will automatically drop back to an EDGE network if one is detected.
    Contact your carrier. make sure that you are in a 3G coverage area, and that there is not a problem with the 3G service in your area, and that your account is properly provisioned for 3G data.
    Try Settings>General>Resets>Reset Network Settings.

  • Plz help me how to debug workflow

    hi one and all,
    plz help me how to debug workflow .
    thanking u every body.

    Hi
    first save and activate then press ctrl+shift F9 then goto F8 and press F5 and F6(function) and output for F7......
    Rewards If useful,
    Thanks & regards,
    S.Suresh

  • Plz help me how i remove previous id that is stuck in activation process and me not know password and id  plzzzz help m,

    plz help me how i remove previous id that is stuck in activation process and me not know password and id  plzzzz help m

    Read this: http://support.apple.com/kb/PH13695
    If it is locked with your ID, then re-set the password at https://iforgot.apple.com

  • Hi, plz help me how to assign my PO to output types

    plz help me how to assign my PO to output types through Nace t-code.what form routine?

    Murli,
    the settings in MN05 for PO.
    NACE is the Tcode used to link the Application type, Output Types and its processing Routines like ( Driver programs and attached Script forms or Smartforms).
    You should know the Application of a document first Like:
    for PO it is EF, for sales Doc's it is V1, for Delivery docs it is V2, for billing Doc's it is V3 etc.
    so first select the Application type (ex: EF) for PO and press OUtput types
    then a list will come in that you should know the related output type for PO.
    select any outtype and click on the processing Routines button on the left side
    it will display the Medium, Driver Program and the Script form or smartform related to that document..
    Reward points if it is helpful..
    Amit.

  • HT4407 i have hp laptop 64bit  , now i would like to install mac os on my laptop so plz help me how to install mac os in my laptop and how do i get mac os ?

    i have hp laptop 64bit  , now i would like to install mac os on my laptop so plz help me how to install mac os in my laptop and how do i get mac os ?

    There is no way to accomplish that.
    Buy a Mac.

  • I recently updated my iPhone 5 with new ios 6.1 and i realize that my 3g is gone can u plz help me how to turn it back?

    i recently updated my iPhone 5 with new ios 6.1 and i realize that my 3g is gone can u plz help me how to turn it back?

    im using wifi, but before setting it was like ---> General--->Cellular---->Cellular Data on/off & 3g on/off. but now i cannot find 3g on/off its gone

  • I updated my iphone4 when i updated it require the previous owner of iclouds email and password but i didn't know him because i purchased it as second hand plz help me how i can rid from it :((((((((((((((((((((

    i updated my iphone4 when i updated it require the previous owner of iclouds email and password but i didn't know him because i purchased it as second hand plz help me how i can rid from it :((((((((((((((((((((

    Welcome to the Apple community Fazypk.
    Unfortunately, you cannot do very much with your phone unless you get assistance from the previous owner, they should either provide you with the password to unlock it or remove their account from the phone entirely remotely through iCloud.com > Find My Phone.

  • Hello sir, Hello sir.    Plz clarify me... My frnd have iphone 5s sealed pack. He purchased it from uk..he told me the phone is unlocked..but i have doubt phone is locked or unlocked..plz help me how can i know phn is locked or unlock???

    Hello sir, Hello sir.    Plz clarify me... My frnd have iphone 5s sealed pack. He purchased it from uk..he told me the phone is unlocked..but i have doubt phone is locked or unlocked..plz help me how can i know phn is locked or unlock???

    hellow sir i have iphone 3gs but its unofficely unlock .
    can i update my iphone ?

Maybe you are looking for

  • Acrobat 9 Pro Crashes after upgrading to 10.6.7

    I used to be on 10.4.11 and then bought a new iMac with 10.6.7. Acrobat now crashes on me in very random situations. See the crash report below: Process:         AdobeAcrobat [2569] Path:            /Applications/Adobe Acrobat 9 Pro/Adobe Acrobat Pro

  • How can I retrieve my songs that I have paid for. I am paying for again because my iPod froze and needed to be serviced.

    How can I get my songs back that have been lost due to my IPod freezing up. I took it to best buy they restored everything said I would be able to just go back and retrieve my songs and not have to pay for them, but so for ITunes is charging again fo

  • Lexmark p707 installer crach report

    Hi, I can't install Lexmark p707 on Leopard Mac OS X 10.5.5 Here is crash log: Process: Z700-P700 Series Installer [3706] Path: /Volumes/Lexmark Z700-P700 Series CD/OS X/Z700-P700 Series Installer Identifier: Z700-P700 Series Installer Version: ??? (

  • Process Flow in OWB

    I understand that in OWB 9.0.4, available in Feb 2003, process flow diagrams can be drawn within the OWB design UI elegantly. Does this also mean that we can schedule jobs to run from within OWB 9.0.4 instead of using another scheduling tool (e.g. OE

  • Labview 8 executable​s: Random toggling through controls

    Hi, Using Labview 8 pro I found that you can toggle through the controls with the tab key. However, the sequence of the toggling appears to be random. Does anybody know how to get that toggling into a certain sequence, i.e. setting the cursor with th