Text format problem

hi all ! I have this problem I need to save a string like this
DATE NAME
NOTE
NOTE 2
The thing is that i have to keep this format, save it in a DB and save it.
This is how I have it now. But I cant make it work. I know how ot would be in C but not in java.
String nota1=(fecha+" "+fisio+" "
salida"" +
+"--------------------------" +
""+
""+entrada);
Thanks!

Then the first method I used should be close, though i missed it a little:
    String newLine = System.getProperty("line.separator");
     String nota1= fecha+" "+fisio+newLine+newLine+salida
        +newLine+newLine+"--------------------------" +newLine+newLine+entrada;An example I wrote up was like this:
<html>
  <body>
    <%
    String fecha="Date"; String fisio="Name";
    String salida="Note1"; String entrada="Note2";
    String newLine = System.getProperty("line.separator");
     String nota1= fecha+" "+fisio+newLine+newLine+salida
        +newLine+newLine+"--------------------------" +newLine+newLine+entrada;
    %>
    <textarea cols="76" rows="8"><%=nota1%></textarea>
  </body>
</html>The HTML output was like this:
<html>
  <body>
    <textarea cols="76" rows="8">Date Name
Note1
Note2</textarea>
  </body>
</html>

Similar Messages

  • Certificate Widget - Text formatting problem

    Hello:
    (FYI: This question is also posted in the Action Script 3 forum)
    I have been modifying the AS3 Certificate Widget that ships with Captivate 4 -- adding backgrounds, re-sizing, etc. However, I don't know how to modify the text format of the variable values when they display. Regardless of what I try, the displayed text seems to be 8pt. Arial. Keeping in mind that I am a complete novice with Action Script, please let me know how you think I might affect the text attributes.
    Here is code around line 35:
    var y_fmt:TextFormat = new TextFormat();
    y_fmt.font = "Arial";
    y_fmt.size = 30;
    y_fmt.bold = true;
    y_fmt.align = "left";
    It would seem that modifying the assignment for y_fmt.size would have some effect, but it does not. It does, however, change the font size of data in the widget parameters. So, I think my problem is that I don't know how to apply my custom TextFormat class to text that appears in these variables:
    v_Name1.visible = true;
    v_Course.visible = true;
    v_Grade.visible = true;
    v_Date.visible = true;
    v_Score.visible = true;
    I would be happy to provide all the code if that is appropriate (and helpful.)
    Any guidance would be greatly appreciated.
    Thanks!
    Charlie

    Hi Charlie,
    There is a little bit of junk in the current Captivate widgets. The AS3 certificate uses a label component to display the text. The TextFormat you're customizing is for the Widget Parameters in the Widget Dialog. The text is then copied over to the label and displayed on the certificate.
    What you have to do is to create a new text format say:
    var course_fmt:TextFormat = new TextFormat();
    course_fmt.font = "Arial";
    course_fmt.size = 30;
    course_fmt.align ="center";
    course_fmt.bold = true;
    course_fmt.color = 0xFF0000;
    and then assign it to the label such as
    v_Course.setStyle("textFormat", course_fmt);
    You can then apply the same recipe to the other labels: v_Name1, v_Score, v_Grade and v_Date.
    That should do the trick!
    Whyves
    www.flash-factor.com

  • Text format problem when sending mails

    Hi all,
    I am using the FM SO_DOCUMENT_SEND_API1 to send mail in text format, but the problem now is iam getting the space between each characters and also for each lines the alignment differs. can any one tel me how to solve this issue ?
    D o c u m e n t   N o       L o g   D e s c r i p t i o n                                                                               
    4 5 0 0 0 0 1 4 1 0       PO  d o n e   f o r   G o o d s   r e c e i p t   o f   P O   4 5 0 0 0 0 1 4 1 0                                                                               
    4 5 0 0 0 0 1 4 1 1                   PO   d o n e   f o r   G o o d s   r e c e i p t   o f   I n t e r C o P O   4 5 0 0 0 0 1 4 1 1                                                                               
    4 5 0 0 0 0 1 4 1 2          PO   d o n e   f o r   G o o d s   r e c e i p t   o f   I n t e r C o P O   4 5 0 0 0 0 1 4 1 2 .
    Thanks.

    Hi Siva,
    Seems problem with the types.Define following paramaters as shown below.
      DATA: DOCDATA    LIKE SODOCCHGI1 OCCURS 0,
           OBJPACK    LIKE SOPCKLSTI1 OCCURS 0,
            OBJHEAD    LIKE SOLISTI1   OCCURS 0,
            L_OBJTXT1     TYPE SOLISTI1,
            RECLIST    TYPE SOMLRECI1,
            DOC_CHNG TYPE  SODOCCHGI1,
            OBJPACK  TYPE SOPCKLSTI1.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
          EXPORTING
            DOCUMENT_DATA                    = DOC_CHNG
         PUT_IN_OUTBOX                    = 'X'
         COMMIT_WORK                      = 'X'
    IMPORTING
      SENT_TO_ALL                      =
      NEW_OBJECT_ID                    =
          TABLES
          PACKING_LIST                     = L_OBJPACK
         OBJECT_HEADER                    = L_OBJHEAD
      CONTENTS_BIN                     =
           CONTENTS_TXT                     = L_OBJTXT
      CONTENTS_HEX                     =
      OBJECT_PARA                      =
      OBJECT_PARB                      =
            RECEIVERS                        = L_RECLIST
       EXCEPTIONS
         TOO_MANY_RECEIVERS               = 1
         DOCUMENT_NOT_SENT                = 2
         DOCUMENT_TYPE_NOT_EXIST          = 3
         OPERATION_NO_AUTHORIZATION       = 4
         PARAMETER_ERROR                  = 5
         X_ERROR                          = 6
         ENQUEUE_ERROR                    = 7
         OTHERS                           = 8
        IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    Regards,
    Ravinder

  • Text Format problem in Online Discussion Forum app

    Hello,
    I want to use the Online Discussion Forum app to host forums for DBAs to post information and discussion of database problems. I would like to be able to cut and paste material from log files, config files and other sources into the posted messages along with original text. When I paste a block of text from a terminal window into the message window of ODF the text appears okay. However when I click Preview (or Post the message and later view it), the text appears to run together and the line breaks appear as the string "br" embedded in angle brackets in the run on text rather than being honored as actual line breaks.
    I am using Firefox 2 on a Sun Solaris workstation as my browser. The text is being cut from xterm type terminal windows on Solaris. Anyone know why this is happening and whether there is anything I can do about it.?

    I forgot to mention that I am using Online Discussion Forum v0.92 using Apex v3.0.1 on Oracle 10.2.0.3 running on a Sun Solaris 8 server.
    Don
    Message was edited by:
    g8rdba

  • Text formatting problems when exporting to Epub

    During my fixed layout export to epub, some of the text on  my pages is messed up (see image).  Anyone know how to fix this?
    FWIW: 1) I export with spreads disabled to keep the layout as i have it in ID. 2) I am using 3-4 fonts from  typekit.

    yes, you are correct about what i am trying to accomplish.  I will take your advice for testing the iBooks.  that said, I'm trying to get the kindle version to work correctly.  I don't know much about the process of preparing for Kindle and the documentation I've seen isn't much help to me (I'm not that technical). Any guidance for how i might resolve the issue described above?  It's reallly unfortunate I can't just design in ID and  then publish everywhere with the click of a button.
    Thanks in advance for any help!

  • Problem with text formatting

    I am new to RoboHelp and I am trying to write some more text in an existing project in design view. I use Track Changes and have set the text to be Times New Roman 12pt. When I made a line italic it turned into Arial. I tried to change it to Times once again by selecting the text to format and then choose Format/ Font/ Times New Roman but it won´t change, it is still Arial. Earlier in the text I managed to make a line italic and Times New Roman.
    Anyone who knows what to do?
    (I use RoboHelp 10 with Windows 7 Professional.)

    Thanks for input!
    Yes, I think it was an inline style I made.
    I managed to get the text as I wanted to by deleting it, then I choose a style from the ‘Styles and Formatting’ pod that matched and retyped the text. (To me it seems strange to have to do this. I thought that I could change an inline style by highlighting the text and choose the font I want it to bee from the ‘Formatting’ toolbar.)
    Now I have another (but similar) text formatting problem:
    I copy a text that has style set to Normal. When I insert the text (on a line with style Normal) the font changes from Times New Roman to Arial. The inserted text still has the style Normal. I have in the ‘Styles and Formatting’ pod checked that Normal still has Times New Roman by opening the ‘Styles’ window. (I still have ‘Track Changes’ turned on.)

  • How do I fix the problems with text formating functions in hotmail and other text based sites?

    In a Mailing list provider site it disables the text formating functions, instead only showing a 'loading' message. The functions never appear. In Hotmail the scroll arrows on the right hand side does not work. Sometimes the email toolbar becomes 'grey' and the buttons do not work. When forwarding an email sometimes the email does not show in the new email message.
    == This happened ==
    Every time Firefox opened
    == Firefox was reinstalled March 2010.

    The only possible fix was turning the phone off immediately and burying it in a bag of dry rice for a week at least. That might...just might...have worked.  But you're way beyond that and I see no fixes.  In fact the phone is probably going to get more problems before finally gving up the ghost.  Continued use is just shorting out more and more of the circuitry.  For that reason I don't think repair is much of an option. Go to an Apple Store and buy an out-of-warranty replacement.

  • Copying text from InDesign to Word: formatting problems

    Hi all,
    I have copied a large amount of text from an InDesign CS4 document into Word. I am now having formatting problems. The main problem is that where long words run over two lines, they are not appearing as hyphenated, and I am not able to stop them running over two lines. Inserting the cursor at the start of the second part of such a word and deleting simply deletes the preceding letter on the line above, as if there were no line break.
    Any help much appreciated.
    Jon Cope

    Instead of Copy/Paste, try selecting the text and exporting to .rtf (or if you have an active cursor, but no selection, theentire story will be exported). Open the .rtf in Word.

  • DECODING MAIL FROM WEB SERVER IN PLAIN TEXT FORMAT(THE MAIL BEING SENT BY LABVIEW APPLICATION)

    Hi All
    I have a labview application that send mail every hour automatically.
    But actually the mail has to be decoded from the web server(by another application).But now when that application decode the data in the mail(that is send by labview application)its getting some funny characters inside that can not be detected by the decoding application
    (When open the mail no problem.)But actually our goal is to decode the mail from the web server.
    Why the extra characters are appearing when decoding from the server?Is it because of the HTML format?
    Is there option to send the mail in plain text format(not like attachment)?
    In outlook we can change the setting (tools->options->send->mail sending format->....here we can set as HTML format/Plain Text format)
    Like that at the sending time can i chenge the sending option as plain text format in my labview application?
    Thanks...

    smercurio_fc wrote:
    Then it sounds to me like this other application is not decoding the attachment correctly, especially if you looked at the attachment yourself after you received it and verified it's correct.
    No, no, smercurio. This is charcter encoding here. In older versions of LabVIEW you could specify what character encoding to use when sending an email through the SMTP VIs. But that gave problems since people in certain locales used certain characters that where not transfered right when the wrong encoding was specified, and that encoding stuff is not understood by most people at all, so the wrong selected encoding was rather the rule than the exception. In newer versions of LabVIEW do the SMTP VIs handle the encoding automatically based on the currently used locale on the system.
    This change is documented in the Upgrade Notes of LabVIEW and probably happened around LabVIEW 7.1 or 8.0.
    A decent mail client will recognize the encoding and convert it back to whatever is necessary before presenting it to the user. The OPs posters server application obviously isn't a smart mail client but probably just some crude text file parser that has no notion of proper mail character encoding and how to deal with it.
    I would suppose that there is a chance to dig into the SMTP VIs itself and try to manipulate or disable that encoding altogether in there but that may open a whole can of worms somewhere else. The proper way would be to process the incoming mail by a character encoding aware mail client before passing it to the text parser. On Unix setting up something like this would be fairly trivial.
    Rolf Kalbermatter
    Message Edited by rolfk on 01-23-2008 10:21 AM
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Text formatting

    With the recent update adding text formatting, one would think that I would be glad about it...but I'm not. Why? Well, allow me to explain. I am a roleplayer, and in roleplay, asterisks are used to signify a character's actions. Now, whenever I have my character do something, it's all in bold and looks awful. And yes, I am aware of the "two at symbols" thing, but that is just absolutely backwards and unnecessary. Is it really so hard to put an extra checkbox under options that says "disable text formatting" or something like that?

    Claudius has posted a solution to the autoformatting problem. It's not discoverable, even by accident, and it shows that the option actually exists, but that Skype have decided not to show it to us users.
    http://community.skype.com/t5/iOS-iPhone-and-iPad/Bolded-text/m-p/3802566#M31604
    Sean Ellis - uses Skype chat for serious work
    Click here to read my blog post on Skype 7 and basic principles of GUI design

  • How to apply text formatting immediately?

    Hello!
    I apply text formatting to the empty newly created text flow. It seems to be strange that the formatting is not applied immediately, but when I start editing.
    The small sample demonstrates the problem.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application 
    xmlns:mx="http://www.adobe.com/2006/mxml"layout="
    vertical"creationComplete="onCreationComplete()"
    >
    <mx:Script>
    <![CDATA[
    import flashx.textLayout.events.FlowOperationEvent; 
    import flashx.textLayout.formats.ITextLayoutFormat; 
    import flash.text.engine.RenderingMode; 
    import flash.text.engine.FontLookup; 
    import flashx.textLayout.formats.TextLayoutFormat; 
    import mx.controls.SWFLoader; 
    import flashx.textLayout.edit.EditManager; 
    import flashx.textLayout.container.ContainerController; 
    import flashx.textLayout.elements.TextFlow; 
    private var textFlow:TextFlow; 
    private function onCreationComplete():void { 
    var container:Sprite = new Sprite();canvas.rawChildren.addChild(container);
    var containerController:ContainerController = new ContainerController(container, canvas.width, canvas.height);textFlow=
    new TextFlow();textFlow.flowComposer.addController(containerController);
    textFlow.interactionManager=
    new EditManager();textFlow.flowComposer.updateAllControllers();
    private function onClick():void { 
    var charFormat:TextLayoutFormat = new TextLayoutFormat(); 
    var containerFormat:TextLayoutFormat = new TextLayoutFormat(); 
    var paragraphFormat:TextLayoutFormat = new TextLayoutFormat();charFormat.fontSize=36;
    textFlow.interactionManager.selectAll();
    (textFlow.interactionManager
    as EditManager).applyFormat(charFormat, paragraphFormat, containerFormat);textFlow.interactionManager.refreshSelection();
    textFlow.flowComposer.updateAllControllers();
    ]]>
    </mx:Script>
    <mx:Canvas id="canvas"width="
    200"height="
    200" borderStyle="solid"/>
    <mx:Button id="button"label="
    Push me"click="onClick()"
    />
    </mx:Application>
    When you click the button new font size is set. But the cursor in text field is not changed to a bigger one until I start editing. Also if to look at the textFlow internals in debugger you can see that new font size is not set...
    How can I force this?
    Kind Regards

    This is arguably a bug with a few things conspiring to cause the problem.  The general idea is that each paragraph ends with a paragraph terminator and the final terminator isn't selectable - that seems to be the core of the problem.  The other conspirator is that with a point selection character level format changes aren't applied until the next character is entered.  So with an empty document you always have a point selection. I could see character level format changes applying instantly to empty paragraphs.  I'll file a bug for more investigation.
    As for workarounds - well there's always direction model calls - just set the format directly on the span.  Another possibility would be to detected exactly this case and insert a character and then undo it.
    Note in your sample code the refreshSelection and updateAllControllers calls after applyFormat are redundant and can be safely removed.  Also any of the formats passed to applyFormat can be null.
    Hope that helps,
    Richard

  • Text formatting in Numbers is not working correctly.

    In Numbers on Chrome text formatting is not working correctly, it's almost as if a CSS file is not being loaded. To be precise, when I try to make a cell Bold there is no bolding. I am using Arial as a font. This has been an issue on Mac and Windows. Any ideas?

    Do you have the same problem with Safari or Firefox?

  • Can Pages 4.3 maintain defined text formatting for at a given list level?

    I'm hoping the answer to this question is a simple 'duh' solution that I some how over looked. I'm using Pages 4.3 and I am trying to create a tiered list to organize ideas into different sublevels. I want to be able to write at a particular level, then create sub levels (return -> tab) with different formatting so the levels are easily distinguished at a glance. When I move back to the higher levels (return -> shift + tab), Pages maintaines the text formatting I used at the lower level, rather than returning to the previously used format at the higher level. For example, what I want is ....
    Main 1             --- (Return -> Tab)
    Sub 1             --- (Return -> Shift +Tab)
    Main 2
    What I get is...
    Main 1             --- (Return -> Tab)
    Sub 1             --- (Return -> Shift +Tab)
    Main 2
    This means that anytime I move up or down in the tiers of a list, I need to redefine the formatting for each new bullet. I tried creating my own list styles, but that does not appear to preserve changes made to fonts or sizes. This seems like such a simple function and time saver that I feel like I must be doing something wrong. It has been a while since I used pages, but I don't remember having these problems before. Does pages really require one to reset the formatting everytime the move between list levels?

    Thanks Michael!
    So your suggestion is to create the pricing in ECC and then download it in CRM...
    Now tat would mean that first the mapping has to be performed in ECC for the existing paroducts and product category..then create pricing for those mapped prod. cat. in ECC and then download it to CR M..plz correct me if I am wrong...
    regards,
    Aneesh

  • Help with text format

    I am attempting to emulate an example in shown in:
    http://developer.java.sun.com/developer/Books/gui/swing2/swing2_chap11.pdf
    With the following code
    fieldFormat = new NameFormat();
    JFormattedTextField rField = new JFormattedTextField(fieldFormat);
    rField.setColumns(15);
    rField.setValue(initialValue);
    class NameFormat extends Format {
         public StringBuffer format(Object obj, StringBuffer toAppendTo, FieldPosition fieldPosition) {
              fieldPosition.setBeginIndex(toAppendTo.length());
              String str = obj.toString();
              char prevCh = ' ';
              for (int k=0; k<str.length(); k++) {
                   char nextCh = str.charAt(k);
                   if (Character.isLetter(nextCh) && prevCh == ' ')
                        nextCh = Character.toTitleCase(nextCh);
                   toApendTo.append(nextCh);
                   prevCh = nextCh;
              fieldPosition.setEndIndex(toAppendTo.length());
              return toAppendTo;
    }I get the following error:
    FormattedField.NameFormat should be declared abstract; it does not define parseObject(java.lang.String,java.text.ParsePosition) in java.text.Format
    Therefore I determined there must be methods missing. Upon looking I find the following two other methods defines for Format .
    formatToCharacterIterator(Object obj) {}
    parseObject(String source, ParsePosition pos) {}
    The problem is I am unable to determine what the methods should do or look like if added to NameFormat.
    Any suggestions or help would be appreciated.
    Thanks
    rykk

    Forget it I can't chew gum and walk at the same time.
    rykk

  • Attempt to process file failed with Exception in XML Parser-format problem

    Hi all,
    Iam getting an unusual error in the J2EE stack in XI.
    And the message is:
    006-11-30 17:31:07 Error Attempt to process file failed with Exception in XML Parser (format problem?):'com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Invalid char #0xf(:main:, row:1, col:1044002)(:main:, row=1, col=1044002) -> com.sap.engine.lib.xml.parser.ParserException: Invalid char #0xf(:main:, row:1, col:1044002)' 2006-11-30 17:31:07 Error Exception caught by adapter framework: null 2006-11-30 17:31:07 Error Delivery of the message to the application using connection AFW failed, due to: RecoverableException.
    My scenerio iam posting IDOC to a flat file with content conversion in the receiver side,the mapping got executed successfully and in the audit log i found that the error was after the 'Start converting XML document content to plain text'.
    This means that error occured during content conversion of XML to the prescribed file format.
    Can anyone suggest any better approach using which we may trace the junk data in IDoc. Manual adhoc approach could take time and is error prone.
    Thanks in advance...
    karun

    Hi Bhavesh,
    Thanks for the early reply. I checked the mapping and everything is fine and the output is also in valid XML format.
    The audit log shows that the mapping got executed successfully and the error is after the step 'Start converting XML document content to plain text '. Is there any constraint in the file adapter regarding the message size for parsing.
    2006-11-30 17:30:50 Success Transfer: "BIN" mode, size 2912595 bytes, character encoding -
    2006-11-30 17:30:50 Success Start converting XML document content to plain text
    2006-11-30 17:31:07 Error Attempt to process file failed with Exception in XML Parser (format problem?):'com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Invalid char #0xf(:main:, row:1, col:1044002)(:main:, row=1, col=1044002) -> com.sap.engine.lib.xml.parser.ParserException: Invalid char #0xf(:main:, row:1, col:1044002)'
    2006-11-30 17:31:07 Error Exception caught by adapter framework: null
    2006-11-30 17:31:07 Error Delivery of the message to the application using connection AFW failed, due to: RecoverableException.
    2006-11-30 17:31:07 Success The asynchronous message was successfully scheduled to be delivered at Thu Nov 30 17:36:07 GMT 2006.
    2006-11-30 17:31:07 Success The message status set to WAIT.
    2006-11-30 17:31:08 Success Acknowledgement creation triggered for type: SystemErrorAck
    2006-11-30 17:31:08 Success Acknowledgement sent successfully for type: SystemErrorAck
    2006-11-30 17:36:08 Success Retrying to deliver message to the application. Retry: 1

Maybe you are looking for

  • Unlock ipad mini

    Hey Guys, I recently purchased an iPad mini (wifi+cellular) from an online portal in the UAE to be used in India. One of my friends in Dubai received it yesterday (July 10) from the portal. When she opened the box, she realised that a Verizon sim car

  • I'm moving from Canada to the US with an iPhone 4S

    So, I'm going to need to pay out my contract with Fido and am going to need to find a company in the states. My question is can I keep my iPhone 4S and get a new chip with an American company? I'm not entirely sure how this works but I assume you hav

  • Unble to code to find a file path

    i just started using flex beta3 and i tried to developed an application in which i used an image control and a button-control.The thing is that i can provide the source path of the picture during design time and it get loaded but when i provided a co

  • SETTLEMENT QUESTION

    Hi guru's, please accept my greetings!!!! my question is related with selttlement of PP production orders, is it necessary to do settlement procedure. and what if one is using discrete manufacturing Production order scenario and not using settlement

  • Training and event managment

    Hello Experts, I am configuring Training and event managment.i want to upload a document about training feedback for a particular training event in the training catalog. Is it possible and where can i do that.plz help me. Regards, Shilpa