Plain Text Control in Form - Add carriage return in text

Hi, I'm trying to output a carriage in a Plain Text Control.  I've tried several combinations like CHR('13'), but can't get it to work.   Anyone know how to do this?
Thanks,
Ken Murray

Hi Kenneth,
did you try "\n" ? Like:
"Entering a \n new line"
HTH,
Carsten

Similar Messages

  • Add carriage return in XML file

    Hi,
    I found a topic that correspond to my requirement :
    [Add carriage return in XML file|https://wiki.sdn.sap.com/wiki/display/XI/HowtoappendCarriageReturnintheendofeachtagofxml+file]
    But i don't know where created this udf, which input parameter pass?
    Thank you for your help.

    Hi Frantzy,
    The link does not give enough explanation. What I am assuming is if you have xml string in one field then if you need to add new line after each tag then you can follow that.
    If you want a udf where you want to insert a new line use this udf:
    Create a Value UDF with one input argument 'a' and name the udf as addnewline. Then add this code:
    Imports: java.*;
    String lines;
    lines = "";
    lines = lines.concat(a + '\n' );
    return lines;
    Then where ever you want a new line just add this udf in your mapping. If you want a new line for 10 fields then you can put in all the 10 fields.
    Example:
    Source field --> logic --> udf (addnewline) --> target.
    So after logic if you have the value as 123 then in the target you will see 123 followed by a carriage return.
    Regards,
    ---Satish

  • Address Book Adds Carriage Return to Street Field on Import

    I've been having some fun and games trying to import a large list of addresses in a tab delimited file into the Address Book. After finally managing to sort out all the issues with importing the file, I have now discovered that the value for the Street in all of the imported addresses has a carriage return (\r) character appended to them. There was not a carriage return present in the tab delimited file.
    I doublechecked the Address Book entries using Applescript to inspect the final character of the Street field and it was indeed a carriage return.
    I presume that this is due to the mapping of fields in the Address Book to the columns in my file. The Address Book allows you to enter 2 values for the Street, yet I am only using the first one with the second one being set to be ignored.
    However, the import still adds the carriage return character despite the second Street field not being required. It's not obvious that this is happening when viewing entries in the Address Book, yet when it comes to printing the imported addresses onto labels, a blank line is left due to the empty second Street field.
    If I edit the card and amend the Street field to, say, add a comma to the end of the Street or, take it away, the problem disappears. I don't want to manually edit all the imported address of which I have 275. Is there a workaround for this, or some Applescript that will automatically edit all the Street entries to remove the carriage return?
    Is anyone else experiencing this? Could this be classified as a bug?
    Before someone suggests I use the thirdparty Address Book Importer, I have tried that too and it also results in the same problem.
    Stuart
    Mac mini   Mac OS X (10.4.6)  

    The blank line appears when looking at the addresses through applications like SOHO Labels and Envelopes or Imprint. The problem is that the carriage return is added by the Address Book as it is being imported, rather than the carriage return being there already, so loading the tab delimited file into a spreadsheet will not show any carriage return characters.
    In the end I cooked up some Applescript to go through the Address Book and strip out any trailing carriage returns from the Street field for all addresses. I'm no Applescript guru, but the following seemed to do the trick:
    tell application "Address Book"
    set thePeople to every person
    repeat with thePerson in thePeople
    set theAddresses to every address of thePerson
    repeat with theAddress in theAddresses
    set streetinfo to street of theAddress
    if streetinfo ends with "\r" then
    set streetinfo2 to (text of characters 1 thru -2 of (streetinfo as string) as string)
    set street of theAddress to streetinfo2
    end if
    end repeat
    end repeat
    save addressbook
    end tell
    The other alternative was to write a script to parse my file in something like Ruby and then use Applescript to add the records rather than use the Address Book import feature. That would probably have given me some flexibility with being able to add multi-line notes, but the above was quicker to hack together.
    Stuart
    Mac mini (PPC)   Mac OS X (10.4.6)  

  • Converting Frame files to PDF adds carriage return in code snippets

    Our writing group is using FrameMaker 7.2 with Acrobat 9. The documentation we write includes code snippets. Conversion from Frame to PDF adds a carriage return to the end of any line of code. This causes any snippet containing a wrapped line to be incorrect if it is copied and pasted directly from the PDF.  Does anyone knopw if there's a fix for this?
    Thanks,
    George

    Dear Alexander,
    Thanks for the reply.
    In this I am using the FM 'CONVERT_ABAPSPOOLJOB_2_PDF'. I have checked the settings from SPAD that is also same in both servers for particular output device. But the patches are diffrennt in both the servers, the server from which layout is not coming properly having the high level patches in compare to the other server(which is working fine).

  • Write to spreadsheet adds carriage return

    I am using build array function to put together a number of strings and build an array of strings.  The build array is in a while loop.  A new line is added to the array every loop.  I am using write to spread sheet function to save the spreadsheet to a file with xls extension.  For some reason, a carriage return is inserted within the array.  The array has 9 columns and a carriage return is put after the fourth column.  I have not added this carriage return.  Does anyone know why write to spreadsheet might automatically add a carriage return and how to remove it?  
    Thank you!
    Solved!
    Go to Solution.

    Hi,
    I took your posted VI and compiled it to an exe.  I do not see the carriage return problem you are describing?
    If you compile the VI you attached, do you see the problem or is it only in the original main application (that you cannot share)?
    If the compiled exe works on your PC, does it also work on the 'different' computer where you see the issue with your original code?  
    -If it does work, then the issue must be in the source code for your original code.  Sometimes, if you re-size string constants, for example, it can be hard to see carriage return's.
    Another thing it could be perhaps, is if you are calling the "write spreadsheet" in two different places in your main code, then the way it works is it will write your two (different) input arrays to separate lines.  If it is as in your example VI though, there should be no carriage return in the "middle" of the array.
    For debug purposes, you could consider making a VI that takes a 1D string array input, iterates over each element in the array and searches for the carriage return character and gives an error/message on what iteration it found it, then you can back-track from there to see in the code responsible for making the string that went into that index.
    QFang
    CLD LabVIEW 7.1 to 2013

  • How to add carriage returns

    Greetings all
    I often download lyrics to songs and often they copy into MS Word without hard carriage returns-so they look as one huge paragraph.
    I think the solution is that I must first find out what escape characters are in there, then search and replace with maybe 0A, 0D hex, or something like this.
    Can you tell me first, how to view the actual characters in Terminal or any other program, then how to search and replace.
    can this be done in Text Edit, or Ms Word?
    Thanks much.

    Check out the thread at
    http://hints.macworld.com/article.php?story=20031018164326986
    Or: from http://sed.sourceforge.net/sed1line.txt :
    Using the Unix stream editor sed (type man sed in Terminal for usage):
    # IN UNIX ENVIRONMENT: convert DOS newlines (CR/LF) to Unix format.
    sed 's/.$//' # assumes that all lines end with CR/LF
    sed 's/^M$//' # in bash/tcsh, press Ctrl-V then Ctrl-M
    sed 's/\x0D$//' # works on ssed, gsed 3.02.80 or higher
    # IN UNIX ENVIRONMENT: convert Unix newlines (LF) to DOS format.
    sed "s/$/`echo -e \\\r`/" # command line under ksh
    sed 's/$'"/`echo \\\r`/" # command line under bash
    sed "s/$/`echo \\\r`/" # command line under zsh
    sed 's/$/\r/' # gsed 3.02.80 or higher
    # IN DOS ENVIRONMENT: convert Unix newlines (LF) to DOS format.
    sed "s/$//" # method 1
    sed -n p # method 2
    # IN DOS ENVIRONMENT: convert DOS newlines (CR/LF) to Unix format.
    # Can only be done with UnxUtils sed, version 4.0.7 or higher. The
    # UnxUtils version can be identified by the custom "--text" switch
    # which appears when you use the "--help" switch. Otherwise, changing
    # DOS newlines to Unix newlines cannot be done with sed in a DOS
    # environment. Use "tr" instead.
    sed "s/\r//" infile >outfile # UnxUtils sed v4.0.7 or higher
    tr -d \r <infile >outfile # GNU tr version 1.22 or higher

  • How to Add Carriage Return After PageBreak using XSL code?

    Hi,
    I have created one RTF Template for Check printing. My requirement is to print check on next page if total number of invoices exceeds certain value.
    I achieved this and used below condition in my RTF Template.
    <xsl:if xdofo:ctx="inblock" test="count($invLines)>=$lpp"><xsl:attribute name="break-after">page</xsl:attribute></xsl:if>
    "lpp" is global variable whose value is set at the start of template. Now i also want to add some space after pagebreak in my Template.
    Like presently, check prints at the top of page, so i want to print it after leaving 9-10 lines blank.
    Can anyone please help me to achieve this?
    Thanks
    Amit

    Hi,
    I tried below syntax but its working only for first page, its not giving space for second page
    <xsl:if xdofo:ctx="inblock" test="count($invLines)>$lpp"><xsl:attribute name='space-after'>700pt</xsl:attribute></xsl:if>
    I want to combine it with page-break. Like i need specific space only after page break. I tried to combine both, but its not working. Any inputs on these?
    <xsl:if xdofo:ctx="inblock" test="count($invLines)>$lpp"><xsl:attribute name='space-after'>100pt</xsl:attribute>
    <xsl:attribute name="break-after">page</xsl:attribute></xsl:if>
    Thanks
    Amit
    Edited by: user11982820 on Apr 14, 2010 5:52 AM

  • Need to add a carriage return in Paragraph styles

    Hi. I am in a muddle. I have a large amount of data from an xml source. I need to quickly add carriage returns appropriately throughout it so that the paragraph styles can be differentiated.I am using tags manually mapped to styles to do this.
    In order to carriage returns am I right in thinking that I can add a GREP style to each para style, and that it will sense the end of the para through the end marker position of each tag? If this is so, what would the GREP expressionlook like to that I can automate locating the end of a tag/para style so that I can add ~b to it?
    Gratefully!

    Hi @chantal_diva arts,
    It seems to be difficult, because you have much more invinsible character than only the xml markers in your document.
    I think one good way could be @obi-wan Kenobis way.
    Perhaps you can upload an example idml on a file hoster of your choise (e.g. xup.in).
    Regardless, you can try the following:
    1. text search:
    <FEFF>
    replace with:
    2. grep search:
    (?<=\b##)(.)
    replace with:
    \r$1
    3. clean document
    grep search:
    #+
    replace with:
    (nothing)  an empty replace field
    Have fun

  • Carriage return... mail

    Hi,
    I did a function to send mail but I want to know how to include a carriage return.
    My code is
    public boolean fxSendMail(String msgFrom,String msgTo, String cc,String msgSubject, String msgText)
              String host     = "mail.pils.com";
              boolean debug = true;
              // create some properties and get the default Session
              Properties props = new Properties();
              props.put("mail.smtp.host", host);
              Session session2 = Session.getDefaultInstance(props, null);     
              session2.setDebug(debug);                                                  
              try
                   // create a message
                   Message msg = new MimeMessage(session2);
                   //CC mail     
                   msg.setRecipient(Message.RecipientType.CC, new InternetAddress(cc));
                   //TO
                   msg.setFrom(new InternetAddress(msgFrom));
                   InternetAddress[] address = {new InternetAddress(msgTo)};               
                   msg.setRecipients(Message.RecipientType.TO, address);
                   //DATE
                   msg.setSentDate(new Date());
                   //SUBJECT
                   msg.setSubject(msgSubject);
                   // If the desired charset is known, you can use
                   // setText(text, charset)
                   //TEXT
                   msg.setText(msgText);
                   //send mail
                   Transport.send(msg);
              catch (MessagingException mex)
                   System.out.println("\n--Exception handling in email.jsp");
                   mex.printStackTrace();
                   System.out.println();
                   Exception ex = mex;
                   do
                        if (ex instanceof SendFailedException)
                             SendFailedException sfex = (SendFailedException)ex;
                             Address[] invalid = sfex.getInvalidAddresses();
                             if (invalid != null)
                                  System.out.println(" ** Invalid Addresses");
                                  if (invalid != null)
                                       for (int i = 0; i < invalid.length; i++)
                                       System.out.println(" " + invalid);
                             Address[] validUnsent = sfex.getValidUnsentAddresses();
                             if (validUnsent != null)
                                  System.out.println(" ** ValidUnsent Addresses");
                                  if (validUnsent != null)
                                       for (int i = 0; i < validUnsent.length; i++)
                                       System.out.println(" "+validUnsent[i]);
                             Address[] validSent = sfex.getValidSentAddresses();
                             if (validSent != null)
                                  System.out.println(" ** ValidSent Addresses");
                                  if (validSent != null)
                                       for (int i = 0; i < validSent.length; i++)
                                       System.out.println(" "+validSent[i]);
                        System.out.println();
                        if (ex instanceof MessagingException)
                             ex = ((MessagingException)ex).getNextException();
                        else
                             ex = null;
                   }while (ex != null);
              return true;
    } //end function
    %>
    but in my msgText I want to add carriage return manually
    example: msgText = "Project 123" + "carriage return" + "Form number 12"
    Thank you!
    Caroline

    I think you have to use:
    Carriage return : "\r"
    New Line: "\n"
    Either windows has to have both or unix has to have both (I don't remember). I think if you use "\n\r" you will be fine.
    Good Luck.
    Ylan.

  • Plain HTTP Adapter - How to add CR/LF into Prolog?

    Hi all!
    I have to do a multipart/formdata request to an external HTTP Server. This requires to set boundaries etc. AND
    to add Carriage Returns / Line Feeds into the HTTP-Body.
    I think I could solve the problem using the Prolog / Epilog functionality of the HTTP Plain adapter - the only
    thing that is missing now is <b>how to add Carriage Returns / Line Feeds into the Prolog / Epilog Field</b> within the communication channel configuration. It seems
    that there is no "escaping possibility" - the HTTP Adapter writes the prolog "as it is entered" into the htto-Body of the request.
    Any ideas?
    Many thanks in advance,
    Andy

    I recommend using Java Mapping.
    Stefan

  • Cl_gui_frontend_services= gui_download without carriage return

    Hi,
    Is there a way to get download a file to PC that way, that in the end of every lines there is a carriege return character except the last one? (Special format required by az external bank application)
    I tried to add carriage return to every lines, except the last one and use cl_gui_frontend_services=>gui_download.
    Although the "write_lf" parameter is set to space, the # is still inserted in the end of the last lines.
    Any suggestion, idea?
    Thanks in advance,
    Peter

    Hi
    When second time you call method just add the following
    CALL METHOD cl_gui_frontend_services=>gui_download
         EXPORTING
           filename                  = v_value
           append                    = 'X'        <------- Just add this line

  • How can labview update the string control (text-edit box) after we have pressed the carriage return key on the keyboard during text-editing within that box?

    Dear readers,
    I have been trying to work out how to get labview to detect the event when a 'string' control has been modified, where the user has finished editing the string either by 1) pressing the enter key on the keyboard, or by 2) taking the focus away from the string control again. For example.. if I use the mouse to click on the string control and then I type 1234 into the box, I would like to have a routine that does something once the user hits the Enter key of the keyboard, or when the user takes the focus away from the string control again by clicking on something else. I would like the routine to respond even when the user didn't change anything in the text box (such as when we mouse-click on the edit box to go into edit mode, and then mouse-click on something else to remove the focus with no changes to the contents in edit-box).
    The purpose of my routine is to have a edit-box for a user to change for example the centre-frequency of a vector network analyser, so that the centre-frequency of the network analyser can change once the user finishes entering a new value in the text-edit box by hitting Enter key after the number is keyed in. Even if the user has clicked on the edit box, but changes their mind by mouse-clicking on something else to remove focus from the edit box, I would still like labview to detect the event when the control loses focus, so that the centre frequency can be updated anyway (to the same value that was already in the edit box).
    So far, I've tried set the string control option to 'limit to single line', so that I can try to scan for a carriage return .. '\n' ... pattern in the string. Unfortunately this doesn't work because labview doesn't seem to attach the '\n' to the end of that single line.
    Could someone please suggest ways to set a flag when a user hits Enter during text-edit mode of a string control, or when focus has been removed from the string control?
    While I've only described my problem for controlling a single control parameter on the gpib device, I'd like to make this feature work so that I can do the same kind of thing with other control parameters as well.
    Thanks so much in advance.
    Kenny

    Hi Kenny,
    instead of using the event structure, you can directly achieve to what you want by the KeyFocus property of the string control.
    - Enable Limit to single line option
    - Create the property KeyFocus in read mode and connect an indicator
    Each time you click on the string to modify it KeyFocus is True; when you click away or hit Enter KeyFocus is False.
    You can toggle your settings when KeyFocus changes from True to False.
    Alberto

  • Cfmail missing carriage returns in plain text

    CF8
    Im sending plain text mail and when my email arrives I dont'
    see carriage returns, it's all joined together.
    Using utf8 encoding, but does the same in all encodings.
    Any ideas why?

    I'm not putting ascii codes on the lines i want to line
    feed...
    I simply put text between the cfmail tags and hit enter...it
    has always worked in the past.
    cfmail
    text here
    text here
    text here, etc...
    /cfmail
    that would show up like that in outlook express when i read
    the mail...with the CR in place.

  • Please explain me how I can use Form feed(\f) and Carriage return(\r)

    what is Form feed(\f) and Carriage return(\r)?
    Please explain to me.
    Thank you.

    These control characters aren't used much these days except that if you example a Windows or MSDOS text file in a binary editor you'll find each line ends with "\r\n". However when reading or writing text through classes these carriage returns will be added and removed automatically so your program doesn't see them.
    The controlls date back to teletype machines which operated rather like typewriters. Cariage return, as it's name implied, caused the print head to move back to the start of the line, line feed advanced a line (without, necessarilly, returning the carriage) and formfeed skipped to the next page.
    Newline on these machines was always "return, linefeed" because executing the carriage return on these machine could take too long. The early machines had only a single character buffer so that they had to executed the characters as quickly as they arrived. So doing the linefeed after the carriage return gave the carriage more time to return. On some teletypes if you did "linefeed, return" then the first character of the new line would often be printed somewhere in the middle of the line.
    This is the origin of the MSDOS/Windows end of line sequence.
    Many printers will still respect formfeed if printing is direct. Some will take carriage return without linefeed to allow you to start again overprinting the same line.
    However printing, these days, is seldom direct but done in bitmap form.

  • How to fix width of plain text content control in Microsoft Word 2010?

    I try to make the simplest solution for my custom to modify current Word template without hard code anything except field name.
    As you can see above image, normally text field in Word is not fixed width control. So, it may affect document layout. Moreover, I want to add dotted line below all text fields in document template.
    Is there any possible solution that end-user can do in normal Microsoft Word 2010 application?
    PS. I will fill all controls with data from Microsoft Access.

    In PDF file, I can easily create fix-size absolute position field inside document template like the following document. In Microsoft Word, I cannot fix even the size of plain text field.
    PS. Nobody use table with fixed cell size as normal form (hard copy). I think Microsoft Word is really bad choice for creating any document template by end-user.
    Criticizing Word for not doing the same as some other application is hardly relevant. Have you tried word-processing with Adobe Acrobat?
    As for your PS, Word tables are ideal for the kind of thing you describe. Your assertion that 'nobody' does so is plain ignorance - it is a common practice. In my previous employment,
    many forms were created using Word tables. Before complaining Word is a 'really bad choice', you should learn how to use it.
    Cheers
    Paul Edstein
    [MS MVP - Word]

Maybe you are looking for

  • Result set too large

    Hi Experts,   When I run BI report on SAP portal, it shows me the message : Result set too large...., I had changed BICS_DA_RESULT_SET_LIMIT_MAX and BICS_DA_RESULT_SET_LIMIT_DEF, but I don't know how to(and where) config "safety belt", somebody can t

  • Org/apache/log4j/Category on OAS 10.1.3 and Jdev 10.1.3.5

    Hi, I am new to ADF and my company is also new to ADF. We are doing how it coudl help us in acclerating the development of custom screens on top of OTM 5.5 I am using OAS 10.1.3. I am getting org/apache/log4j/Category error at the time of deployment

  • Loading XML file

    Hi All,            How to load xml file from backend.           i have 5 xml files in databse. i need to get the xml files from database sequentially .means i need to get in a for loop. how can i do this. any one can help? thanks Raghu

  • Modelling Individuals and Organizations

    I'm developing an application where a user can either act as an individual, or as a member of an organization, and I'm having some trouble modelling this so support the various systems. To explain the rules, users log in and peform actions, but these

  • Business Website Question

    I created a website using iWeb and published it to a folder. Then, I went to a webhost and bought a desired domain and published my site using the webhost (uploaded using ftp). Someone else wants me to make them a website and I'm wondering if they wi