Add CRLF after a string reaches a certain length (in inches)

I have this function to calculate the length of the string in inches.
I would like to know how can I add a line break or CRLF right after X length and not to break any words in the string.?
Thank you in advance,
apexsan

Hi,
SQL knows nothing about what font you're using. I don't know of anything built into Oracle SQL where you can specify font information.
There may be something specific to your front end, such as Apex. If that's what you're using, then mark this thread as "Answered", and then open a new thread in the Oracle Application Express (APEX).
This wouldn't be a hard thing to do in PL/SQL if you knew the width of each character. If you had a flat file or a spereadsheet that listed each character and its width, you could load that into a table, and write a function (perhaps a pipelined function) that, given a string, a scale and a field width, split the split into the longest possible pieces no longer than the field width.

Similar Messages

  • UTL_MAIL.send_attach_varchar2 add CrLf in attachment

    I'm having problems with UTL_MAIL... I need to send a RTF document attached to an email. But UTL_MAIL seems to add CrLf first in the attachement!
    If I try to send a realy simple file, just contailing 'Test' then the attachment will be chr(13)||chr(10)||Test. !!
    What ever is wrong, is wrong in this code snip...
    UTL_MAIL.send_attach_varchar2
    sender => '[email protected]',
    recipients => '[email protected]',
    subject => 'Log',
    MESSAGE => 'The attached file is the logfile. Please do not reply or respond to this e-mail, as it has been automatically generated.',
    attachment => 'Test',
    att_inline => FALSE,
    att_mime_type => 'application/octet',
    att_filename => 'log.txt'
    I have tried differnet Mime types and file names.... But nothing seems to help...
    I'm using a Oracle Xe 10.2.0.1.0.
    Can anybody explain whats failing???

    I don't know if this is the cause but why would anyone be on 10.2.0.1 this many years after so many patches have been released?
    Also consider attaching your file as raw rather than text. Does that solve the problem?

  • How to go back to frame 1 when the timeline reaches a certain frame?

    I have a timeline that has some label frames at the very end of the timeline. During the timeline a user will hit a button on a frame and will jump to one of the label frames. On the label frame is another button that when clicked - returns the user to the previous frame. How do I make the movie return to frame 1 - without a button - but before it reaches the label frames? In other words, by simply reaching a certain frame in the movie, I want the timeline to go back to frame 1.
    I am using Action Script 3 on a PC
    Thank you.

    Thanks from me as well. I'm trying to make an interactive house simulation game (basic) and hit this issue where the timeline needs to skip to the next segment as several options are available per room (listed one after the other in the timeline). Flash isn't particularly easy to use when it comes to this kind of thing. Is Flash Catalyst CS5 more suited to this?

  • How can I add dots after text to fill the remaining space in a table cell?

    What is the most efficient way to add dots after text to fill the remaining space in a table cell? I know it is possible using tabs but is this possible using a table?

    You can put a tab inside a table cell using Option+Tab
    Then just set the right-aligned tab stop and the right edge of the table cell and add the leader.

  • Is it possible to pin my navigation to the top of the browser until I reach a certain point on the page and then let it continue to scroll normally?

    I'm trying to get my navigation to pin to the top of the browser while other scroll effects are taking place, then when it reaches a certain point on the page, I want the navigation to continue moving up and off the screen to allow for the footer to come in.  Is this possible?

    Merci Éric de me revenir en français, je l'apprécie beaucoup. Je ne veux conserver que le mouvement de haut en bas et de bas en haut. Je ne vois pas l'utilité du mouvement horizontale (gauche-droite, droite-gauche) et pire encore, par mégarde je fais trop souvent bouger ainsi mon texte et cela m'embête, même me dérange  beaucoup. Même que cela me donne même mal au coeur hahahahahaha!
    Par contre, ma souris précédente avait le mouvement de défilement du haut en bas et bas en haut et cela par contre m'est très utile. Je voudrais donc savoir s'il existe un moyen de stopper le mouvement de côté mais conserver tout de même la fonction du mouvement haut-bas et bas-haut avec le simple toucher de la souris. Suis-je plus clair? Disons que c'est plus aisé pour moi en français. merci à toi
    Danielle

  • Word experienced a serious problem with the 'acrobat pdfmaker office com addin' add-in. after Office Updates.

    I cant cant use mail merge feature in Winword in conjunction with Abobe Acrobat 10 (pdfmaker add-in) after the recent Office April Windows and Office Updates.
    Here is a quick note from the event viewer:
    The program WINWORD.EXE version 14.0.7134.5000 stopped interacting with Windows and was closed. To see if more information about the problem is available, check the problem history in the Action Center control panel. 
     Process ID: 1138 
     Start Time: 01d07dcede19c458 
     Termination Time: 15 
     Application Path: C:\Program (file:///C:/Program) Files (x86)\Microsoft Office\Office14\WINWORD.EXE 
     Report Id: 
    Microsoft Word: Accepted Safe Mode action : Word experienced a serious problem with the 'acrobat pdfmaker office com addin' add-in. If you have seen this message multiple times, you should disable
    this add-in and check to see if an update is available. Do you want to disable this add-in?.
    I do not wish to disable the pdfmaker add-in as I use it to run mail merge on WORD and send 10s and 1000s of pdfs via email to external users. I am not sure what are my options here and I wish
    someone could help me get to the root cause of the matter.
    My environment is as follows:
    Windows 7 x64 SP1
    Office 2010 v 14.0.7128.5000
    Adobe Reader MUI X and Adobe Acrobat X
    Feroze

    Hi,
    As the event log indicated, this is due to acrobat pdfmaker office com addin doesn't work well with Microsoft Word.
    I would suggest you go ahead and try to upgrade your Adobe product to the latest version and see if issue persists.
    Or contact the support of Adobe and see if there is a known compatibility issue or not.
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Can you take a photo on an iPad 2 with a filter or do you have to add one after?

    Can you take a photo with a filter or can you only add it after?

    I guess you could tape a filter over the camera lens.
     Cheers, Tom

  • Text border wont reduce after a certain length

    Right now I'm working on a border that will expand as the text width gets larger. and to have the border have a maxium size yet still be able to enter text.
    What i'm having trouble with: Once I reach a certain width, backspace dosent reduce the border anymore.
    // border code
    if (inputTxt.width <= 160)
              inputTxt.border = true;
    inputTxt.autoSize = TextFieldAutoSize.LEFT
    } else{
              inputTxt.border = true;
              trace("working");
              inputTxt.autoSize = TextFieldAutoSize.NONE
    // backspace code
    key_bksp.addEventListener(MouseEvent.CLICK, bkspClickListener);
    function bkspClickListener(e:MouseEvent):void{
              inputTxt.replaceText(inputTxt.text.length-1, inputTxt.text.length,'');
              inputTxt.border =true;
    any help would be appericated

    unless that border code is in some function or otherwise repeatedly executes, it doens't look like anything would dynamically change the autosizing of inputTxt.

  • How do I open a add on after it is installed?

    I need to know how to open a add in after it is installed

    Both of those are Desktop Firefox answers.
    On Firefox for Android many addons add to the application menu. This can be access by pressing your phone's hardware menu button. If your phone does not have a menu button then Firefox displays a 3 dot button to the right of the address bar.
    If you still can't find the extension settings then please mention which extension you are trying to use.

  • Add one column of string to columns of integer

    Hi there,
    Could someone help please. 
    I would like to add one column of strings to a few columns of integer. 
                                                           --------- Added elements ------ 
    20C=           100     101    102           20C=100     20C=101    20C=102
    15C=           200     201    202          15C=200     15C=201    15C=202
    10C=           300     301    302          10C=300     10C=301    10C=302
    Thanks for help. 

    Hoverman wrote:
    I had a look at the tutorial link you sent. They are not particularly relevant to my question. 
    Why do you think I am posting a question? I have already spent a few hours searching forum and looking at examples. It would be more helpful to have a relevant example or a solution.
    Thanks for your time.  
    What is your problem here? RavensFan gave you information quite relevant to your task, but you had not (and still have not) answered his questions, so he could not (nor anyone else) tell where in your task you are having trouble. Do you know how for loops work, with respect to outputs? Your questions imply that you need to spend some real time learning LabVIEW, not just "having a look at the tutorials."
    Hmm, it looks like you had a similar problem with your last question, and you still have not indicated that you understood how to solve it.
    Cameron
    To err is human, but to really foul it up requires a computer.
    The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
    Profanity is the one language all programmers know best.
    An expert is someone who has made all the possible mistakes.
    To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):
    LabVIEW Unit 1 - Getting Started
    Learn to Use LabVIEW with MyDAQ

  • When time line reaches a certain frame load swf into movieclip.

    Hi,
    I need some help with some actionsscript. When the timeline reaches a certain frame, I want an swf to load into a movieclip in that particular frame. I need this to occur on level 1 as the root of the site is pre loader. Any help would be much appreciated. Cheers

    In that frame, on an actions layer, use either the loadMovie method or the MovieClipLoader.loadClip method to load the swf into the movieclip.  There should be examples of using either in the help documents and via Google.

  • How do i stop a software update to the ipad after it has reached the stage of asking for itunes connection?, as i didn't sync my data to the laptop.

    How do I stop a software update of the ipad after it has reached the stage of asking for itunes connection?
    i didn't sycn my data, and itunes mentioned it will restore the ipad.
    thanks

    How do I stop a software update of the ipad after it has reached the stage of asking for itunes connection?
    i didn't sycn my data, and itunes mentioned it will restore the ipad.
    thanks

  • HT1414 after restore i reached in the "choose a network" than i trying to connect to itunes but it could not work forword ..what to do..please tell??

    after restore i reached in the "choose a network" than i trying to connect to itunes but it could not work forword ..what to do..please tell??

    after restore i reached in the "choose a network" than i trying to connect to itunes but it could not work forword ..what to do..please tell??
    iPhone 4

  • Add menu after the plug-in has started

    Hello,
    I want to added a menu under 'File' menu after the plug-in has started.
    Through the shell example in SDK, i am able to add menus on plug-in startup but cant figure out how to add menus after the plug-in has started.
    Is it possible to do so? If yes, then how to do it?
    Thanks,
    Hitesh

    The suites should be the same, namely AIMenu.h's AIMenuSuite. The calls are fairly self-explanatory I think, though if you have questions fire away & hopefully I can help.
    The only thing that might be tricky is that it wants a reference to your plugin. Typically you'd do that in response to a selector/caller combination that included a message -- the message always has such a reference. If that's the only thing you're missing, the simple answer is to grab that from one of the early messages and stow it in a static variable somewhere so you can use it later; it won't change, so that's perfectly acceptable.

  • Add an array of strings into ArrayList

    Hi Guys
    I would like to add an array of strings into an ArrayList, which i have implemented by using the following code:-
    String[] strReturnWords = getInput2(line);
    List.add(strReturnWords);strReturnWords returns an array of Strings.
    How do i retrieve the array of strings from the ArrayList. I have tried
    String[i] strString = List.toString();Am i doing this correctly, are their any other ways??
    Many thanks
    Jason

    That should work.NO. That wont work AT ALL.
    This:
    String[] arrayOfString = new String[listName.size()];Is not right. The number of elements in the list is MUCH different
    then the size of the array which is an element in the list.
    This:
    arrayOfStrings[ i] = (String)listName.get(i);Will fail. The list contains an Object of StringArray not an Object of String.
    import java.util.*;
    public class StringList{
    public static void main(String[] args){
         String text = "this is some text";
         String[] words = text.split("\\s+");
         ArrayList list = new ArrayList();
         list.add(words);
         String[] array = (String[])list.get(0);
         for(int i = 0; i < array.length; i++){
         System.out.println("Word: " + array);

Maybe you are looking for

  • OBIEE 11g + OBIEE 11g Samples (rel.825)

    Hi all. I'm quite new in OBIEE 11g. I used to have some experiences with version 10g but 11g seems to be more advanced. Generally I've installed DB11g then OBIEE 11g and started configuring samples according to documentation regarding release 825. Ev

  • [SOLVED] Font Unreadable after XOrg 1.5 HELP!!!

    Previoulsy on mi PC: All work right, including COMPIZ with all Effects Enabled. One Day: pacman -Syu cause update to xorg1.5 and BOOM all Fonts on Title bar of all windows became unreadable and the problem will be extended on all rendering windows of

  • Any way to import a chart made in keynote into Numbers?

    I've built an expense chart in Keynote over the past year and would love to export the chart data from Keynote into the new Numbers so I can really manipuate the data. But haven't found a way yet to pull the data from the keynote chart and place in N

  • Overwrote tons of files with pacsave - used pacmatic improperly

    I did something incredibly dumb.  I overwrote tons of files with pacmatic.  Never used it before and completely misunderstood the pacsave handling. All of these are system files with no backups.  I have an ext4 system.  Is there any special way to un

  • Restricting Transaction Keys while calling SAP Movement Types via MIGO

    Hi Experts I have a requirement which is stated below: When ever I will call movement type 561 via MIGO, system will check if PRD transaction key is going to be hit & throw an error.How to achieve this.Plz advice. Regards Soumick