Need to Set Text to Fixed Lengeth

I need to create a display of text data with fixed width.
This is what I would like to have:
TOM       XYZ21     13
LARRY     X21354    25
JILL      M22990    21I use this:
select
    rpad(PATIENT_NAME,(50 - length(PATIENT_NAME))) || ' ' ||
    rpad(LAB_TEST_NAME,(60 - length(LAB_TEST_NAME))) || ' ' ||
    to_char(PATIENT_ID) as DISPLAY_TEXT
from
    DATA_TABLEand get something like this:
TOM    XYZ21   13
LARRY     X21354  25
JILL M22990  21

Hi William;
If the lenght(patient_name) = 20 for row 1 and I add 11 " " to it then my total length for row 1 would by 31.
Now the lenght(patient_name) = 15 for row 2 and I add 11 " " to it then my total length for row 2 would by 26
And the lenght(patient_name) = 22 for row 3 and I add 11 " " to it then my total length for row 3 would by 33
I want the total length off all rows to be fixed at , lets say 30.

Similar Messages

  • CS2 Need to set text bounding box to snap to exact measurement, not em size and without leading

    I am currently using CS2 working in a sign shop designing signs, banners and vehicle lettering.
    When working with text I need to know the exact letter height, not the em and without the leading. I need it exactly the way it would measure if converting the text to outlines. The reason I need this information is that when I output the lettering to a cutter/plotter to cut vinyl media I need to know the exact measurement so I can nest my lettering on my media size. The media is typically 24" wide which gives me 22.5" of available space once the pinch rollers on the machine are considered. Pinch rollers are rollers that engage a knurled driving wheel and "pinches" the media between them and thus guides the media through the plotter. Of course, when using any media one must make the best use of it to avoid making scrap or using more than is needed for the job at hand. Converting text to outlines gives me that measurement.
    One time awhile back I did a google search on this and found a one or two button fix that made the bounding box snap to the exact "ruler" height of the text. It worked great. But I got away from design work for a short period. When I returned I'd forgotten the process. Back when I did find it I never bookmarked or made a text file explaining the process and I'm ost in finding it again.
    I don't know exactly how I worded the google search but the answer I was looking for came up on the first page. That's probably why I didn't feel the need to bookmark it or write it down. Now, I've googled dozens of different wordings for my question and get nothing. It's likely a nomenclature/jargon issue and I've yet to stumble on it again.
    If anyone could help out I would so greatly appreciate it. As it is, when I get to the point that I need to know the exact ruler height of my lettering I convert my text to outlines. But then, as sometimes happens, I'll desire to change the font or try someting different but the text is not live so I'll have to start over with that line of lettering.
    I sincerely hope my explanation of my questions makes sense to anyone who might be reading this.

    Jacob Bugge, you are a blessing. This effect not only saves me time but avoids a lot of frustration when a client wants to change some copy or I commit a spelling error or have some other brain malfunction. Not to mention the sometimes hundreds of single words or number groups I must fit onto an artboard set to my available media space.
    Option 2 is exactly what I was looking for and I'll remember it forever now as I've spent parts of the past week searching that answer only to hear over and over again, "You can't do that in Illustrator".
    Thank you so much for your quick response!

  • Need help with Set Text behavior

    In Dreamweaver CS3/Mac, I am creating a disjointed rollover
    that is initiated by rolling over an image. I need it to swap two
    images and hopefully set text in two divs. I want this to happen on
    rollover and not on click. I don't want it to restore on mouse out.
    The images are no problem but I can't seem to make this happen for
    the text. Is this possible? Any help? Thanks.

    http://murraytestsite.com/carneros.html
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "LB:Monroe" <[email protected]> wrote in
    message
    news:fsp2da$l1$[email protected]..
    > Thanks for your response. You can view the page under
    construction at:
    >
    http://www.monroest.com/tlcd/
    >
    > As one rolls over a square (image file) in the top bar,
    the following is
    > to
    > occur:
    > the large image swaps (simple swap image)
    > the caption text changes (text, not an image)
    > the text to the right of the image changes (text, not an
    image)
    > the background color of the text div (currently light
    gray) changes
    > (property
    > change?)
    > on some of them, the text color of the long text block
    changes (property
    > change?)
    http://www.monroest.com/tlcd
    >

  • APPLE SAID MY PHONE NEEDED A SETTING UPDATE DID THIS TODAY AND NOW i'VE LOST INTERNET CONNECTION WITH CARIER WHAT DO i DO TO FIX ?

    This morning woke up and my ipone 4 said it needed a setting update and to plug the mains cable in as it would use a lot of power to do the update ? anyway it updated and thought nothing of it... came to use safari in afternoon and it come up with "you are not subscirbed to a cellular data service" my phone is on contract my hubbys phone has done the same thing ... we are both on contract but with different suppliers/carriers..  so it has to be a Apple problem ? whats the fix please ??

    If you are unable to get 3g/4g service than that is an issue with your phone carrier not apple problem, they don't do those service.  have you contacted your phone carrier?  Have you check in settings to see if your cellular data is turned on?

  • How do I GET the 'set text of container' behavior in DW CS3 if it's missing?

    I'm building a site using CSS in DW CS3 (bought in May 2006) that has some photo gallery pages where a large image changes per thumbnails to its right that are clicked. The thumbnails are in their divs and the wished-for big image should appear in a larger div to the left. I've read in other postings here that I can use Behaviors panel > Set Text > Set text to container to do this, but this behavior is missing in my Set Text submenu. How do I add this behavior there?
    Also, how do I not only create this 'on click' behavior, but have the thumbnail image change to a 'HIT' state like a rollover would?
    (P.S. - posted this yesterday, slightly different heading, but it didn't appear today)
    Thanks for your help --

    Check this location in windows C:\Program Files\Adobe\Adobe Dreamweaver CS5\configuration\Behaviors\Actions\Set Text
    If this Set Text folder is not there it means that the behavior did not get installed. So you might need to reinstall DW CS3.

  • Set text of container in DW CS3

    I'm building a site using CSS in DW CS3 (bought in May 2006) that has some photo gallery pages where a large image changes per thumbnails to its right that are clicked. The thumbnails are in their divs and the wished-for big image should appear in a larger div to the left. I've read in other postings here that I can use Behaviors panel > Set Text > Set text to container to do this, but this behavior doesn't appear in my Set Text submenu. How do I add this behavior there?
    Also, how do I not only create this 'on click' behavior, but have the thumbnail image change to a 'HIT' state like a rollover would?
    Thanks for your help --

    Check this location in windows C:\Program Files\Adobe\Adobe Dreamweaver CS5\configuration\Behaviors\Actions\Set Text
    If this Set Text folder is not there it means that the behavior did not get installed. So you might need to reinstall DW CS3.

  • Setting Text over an Icon which is on a JLabel - Urgent

    Can someone help me. I need to set some text over an Image/Icon which is placed over a JLabel.

    You should simply change the iconTextGap value (according to the string width and the icon width if you want it centered) :
              JFrame frame = new JFrame("Centered label");
              JLabel label = new JLabel("centered label",new ImageIcon("im1.gif"),SwingConstants.LEFT);
              frame.getContentPane().add(label, BorderLayout.CENTER);
              frame.pack();
              frame.setVisible(true);
              int iconWidth = label.getIcon().getIconWidth();
              Font font = label.getFont();
              Graphics g = label.getGraphics();
              FontMetrics fm = g.getFontMetrics();
              int stringWidth = fm.stringWidth(label.getText());
              label.setIconTextGap(-stringWidth+((stringWidth-iconWidth)/2) );
    I have made the frame visible before setting the texticongap because you can't get the graphic context of a component if this component is invisible.
    Now the label is perfectly centered on the icon.
    I hope this helps,
    Denis

  • CR 9 - Need HELP Setting Line Graph colors in the Chart Expert

    Post Author: desselle
    CA Forum: Charts and Graphs
    Hello,
    I created a Crystal Report (CR) based off an existing Trend Analysis report. I have created a VB6 application that calls the .RPT file I created for the report in CR.  The VB6 app sets the report recordset via code that corresponds to the .TTX file, and the parameters .  The report contains a Line graph that plots five pieces of data.  The report & graph work good.  The Problem: CR determines the color of each line on the graph.  However, I need to set the color for each line to correspond to the colors used on our existing reports.  The users are accustom to a certain color representing a certain set of data on the existing reports.   I have tried everything I can think of and from all documentation I can find, and nothing changes the line colors.   I have tried all of the following:
    1.) From the Chart Expert, Option tab, I click the Format button next to Color and setup conditional color settings per each piece of data.   However, when I run the report these conditional color settings are not reflected on the CR graph.     I am using formula fields (based off database fields in the recordset) to produce the report.  However, I only see the database fields to use in the conditional color formatting screen and not the formula fields.    I thought this would possibly be the cause why the colors wonu2019t change on the CR, but I canu2019t find a way to make the formula fields show up in the list.
    2.)Also, I tried right clicking the individual lines of the graph and change the selected item color, but this didnu2019t change the color either.  I do this in Design mode and Preview mode and neither one changes the color of the lines on the graph.
    3.)I have also looked into the CR object model to see if I can change the line colors of the graph via code and it doesn't look like I am given this flexibility.
    Do you know what I am doing wrong here?   I just want to be able to set the color of each line on the CR graph to the color I want instead of using the default colors.  Are there some Hot Fixes that I need to apply to my copy of CR?
    Thanks

    Post Author: desselle
    CA Forum: Charts and Graphs
    Hello,
    I got the problem fixed w/ the line graph not making the data lines the same color on the report as on the frmPlot graph.   Compare the two screen shots below.   The problem was as follows:  When I created the graph (in the Chart Expert) the field u201CReadingDateu201D was not one of the Report Fields, and all the other fields were Report Fields (Reading, LowAlarm, UpperAlarm, LowerLimit, & UpperLimit). See the 3rd screen shot below.  ReadingDate does show up as a Report Field now but it wasnu2019t at first.   Originally, this field was only available in the Chart Expert as a recordset field.  When I changed this field to be a Report Field, the graph then allowed me to change the data series line colors.   This was not obvious at all.   From the beginning when I setup the graph and passed in the recordset from VB it graphed all of the data series fine.   The colors that the Chart Expert chose for each line just didnu2019t match what was on the frmPlot graph.   Anyway, it is working now.     I can at least say I learned (somethingu2019s to-do and somethingu2019s not to-do) a good bit about Crystal Reports in the process.
    Thanks

  • In InDesign, how does one determine the pixel size of a text box? Specifically, we need to write text to specifications of 600 pixel width, and have no idea a) how to scale a text box to specific pixel width, b) how to

    This may be a basic question... but in InDesign, how does one determine the pixel size of a text box? Specifically, we need to write text to specifications of 600 pixel width, and have no idea a) how to scale a text box to specific pixel width, b) how to determine what word count we can fit in, and c) how to do it in a table? Thanks!

    Set your ruler increments to pixels Preferences>Units & Increments. You can fill the text box with placeholder text Type>Fill with Placeholder text and get a word count from the Info panel with Show Options turned on from the flyout.
    From the Transform panel you can set a text box's width and height

  • Set text of TextBox coming from Facebook API

    I developing an app in which I need to set some data of user from facebook. So using WebAuthentication broker I get the user to login and then fetch the information and set it to the textbox values. The information is fetched properly but the values are
    not set in Textbox. I can't figure out the reason. Can somebody help? This is my function for setting the data.
    async public void SignUpUsingFacebook(string response)
                if (Utility.isInternetAvailable())
                    try { MainPage.StartAnimation();
                    MainPage.loaderGrid.Visibility = Visibility.Visible;
                    catch
                        setAnimation();
                        StartAnimation();
                        loaderGrid.Visibility = Visibility.Visible;
                    string token = response.Substring(response.IndexOf('=') + 1);
                    string fbGetInfo = "https://graph.facebook.com/me?access_token=" + token;
                    HttpResponseMessage msg = await new HttpClient().GetAsync(new Uri(fbGetInfo), HttpCompletionOption.ResponseContentRead);
                    if (msg.IsSuccessStatusCode)
                        try
                            string fbData = await msg.Content.ReadAsStringAsync();
                            JObject j = JObject.Parse(fbData);
                            string fbId = j["id"].ToString();
                            txt_user_Name.Text = fbId;
                            txt_user_Name.Visibility = Visibility.Collapsed;
                            txt_first_Name.Text = j["first_name"].ToString();
                            txt_last_Name.Text = j["last_name"].ToString();
                            txt_email_Address.Text = j["email"].ToString();
                            txt_retype_email_Address.Text = j["email"].ToString();
                            gender = j["gender"].ToString();
                            if (gender.Equals("male", StringComparison.OrdinalIgnoreCase) || gender.Equals("boy", StringComparison.OrdinalIgnoreCase))
                                boy.Visibility = Visibility.Collapsed;
                                boySelected.Visibility = Visibility.Visible;
                                girlSelected.Visibility = Visibility.Collapsed;
                                girl.Visibility = Visibility.Visible;
                            else if (gender.Equals("female", StringComparison.OrdinalIgnoreCase) || gender.Equals("girl", StringComparison.OrdinalIgnoreCase))
                                girlSelected.Visibility = Visibility.Visible;
                                boySelected.Visibility = Visibility.Collapsed;
                                girl.Visibility = Visibility.Collapsed;
                                boy.Visibility = Visibility.Visible;
                        catch { }
                        try { MainPage.loaderGrid.Visibility = Visibility.Collapsed;
                        MainPage.StopAnimation();
                        catch
                            loaderGrid.Visibility = Visibility.Collapsed;
                            StopAnimation();
                    else
                        Utility.notifyUser("Your information from facebook could not be fetched", "");
                else
                    Utility.showMessage(Utility.msgType.InternetError);

    The WebAuthenticationBroker has nothing to do with the issue of your textboxes not showing the values they were set to show.
    You are basically just setting string values to textboxes on your page. This shouldn't fail unless you are doing something else that is invalidating the values. Are you setting the values on a different page and viewing the changes on another?
    Abdulwahab Suleiman

  • Set text of layer...again

    hi everybody
    any ideas as to why when i use the set text of layer
    behaviour i'm losing the hand cursor when you mouseover the link?
    the behaviour works fine, but i'm getting the text cursor, so it
    doesn't look like a link when you view the page, although it
    works...i've tried changing the cursor option in the css, but that
    still doesn't seem to make any difference...thanks in advance
    sara

    It would have nothing to do with the STOL behavior, but
    rather what you are
    pasting into it.
    Any event handler directly on an <img> tag will fail to
    produce the pointer.
    You need to make sure that when applying behaviors directly
    to <img> tags,
    you always use the <A> onMouse event. Try that....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "sara-jane.s" <[email protected]> wrote in
    message
    news:e7j97s$7co$[email protected]..
    > hi everybody
    >
    > any ideas as to why when i use the set text of layer
    behaviour i'm losing
    > the
    > hand cursor when you mouseover the link? the behaviour
    works fine, but
    > i'm
    > getting the text cursor, so it doesn't look like a link
    when you view the
    > page,
    > although it works...i've tried changing the cursor
    option in the css, but
    > that
    > still doesn't seem to make any difference...thanks in
    advance
    >
    > sara
    >

  • Can links inside "set text of container" behaviours open in a new page?

    I am using the set text of container behaviour to show different information within the same page, to keep things neat and simple to navigate. Some of the text needs to be external links, but they open in the current page, not a new page even though I have set the target to _blank.
    Is there another way to keep using the set text of container and have the links open in another page?
    thanks!
    Using CS6 on Macbook Pro 2.6Ghz OSX10.8

    gryffun wrote:
    Well, after some further google searches, I'll answer my own question...
    selecting the link inside the set text of container and adding a behaviour to it -  "open in browser" will make the link open in a new window.
    Or ading target="_blank" to each link will do the same

  • "Set text of container" behavior crashes Dreamweaver! (CS3)

    When I try to change pages which use the "Set text of
    container" behavior it
    crashes DW-CS3. The dialog which used to come up first shows
    a series of
    asterisks in the drop-down for the container selected, and
    the CPU does
    overtime for about a minute before the correct values appear.
    If I change
    any values and OK it, then CPU starts using over 90% on DW
    and nothing
    happens until I force a shut-down (I've left it running for
    over 15 mins!)
    I have tried setting up a new "Set text of container"
    behavior and the same
    thing happens.

    Oh it truly needs work...
    http://www.jackbooks.com/Wystan/Regional/Regionalism.htm
    Even on a simple new page with a couple of divs this
    behaviour is now very
    slow and the line of asterisks comes up while waiting for the
    dialog to
    load. What has changed? How can a simple behaviour be now so
    demanding?
    "Murray *ACE*" <[email protected]> wrote
    in message
    news:f4opvn$sod$[email protected]..
    > Can we see the page, please?
    >
    > --
    > Murray --- ICQ 71997575
    > Adobe Community Expert
    > (If you *MUST* email me, don't LAUGH when you do so!)
    > ==================
    >
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    > ==================
    >
    >
    > "Stephen C" <[email protected]>
    wrote in message
    > news:f4nd0t$8lq$[email protected]..
    >> When I try to change pages which use the "Set text
    of container" behavior
    >> it crashes DW-CS3. The dialog which used to come up
    first shows a series
    >> of asterisks in the drop-down for the container
    selected, and the CPU
    >> does overtime for about a minute before the correct
    values appear. If I
    >> change any values and OK it, then CPU starts using
    over 90% on DW and
    >> nothing happens until I force a shut-down (I've left
    it running for over
    >> 15 mins!)
    >>
    >> I have tried setting up a new "Set text of
    container" behavior and the
    >> same thing happens.
    >>
    >

  • Set text of container - javascript help, please!

    I have used Dreamweaver behaviours to "Set text of container" and make different writing appear inside a box when I click a hotspot. Now I want people to be able to click on the writing that just appeared and make more text appear in another box. Could someone tell me how to do this? I don't think I can use Dreamweaver's behaviours for this because there's no material trigger... in that the writing that is the trigger only appears when the first trigger is clicked, but I'm more than happy to be corrected!!
    So, I've been trawling through javascript libraries but I don't know what I'm doing, so if someone could either tell me how to do this in dreamweaver or really spell out what libraries etc. I need to download and what code I need to make a bit of text that's already a set text of a container into a trigger for a set text of another container, that would be great!
    Sorry for the complicated question, it's difficult to explain what I mean.
    All help very much appreciated ^^

    flozzle19262010 wrote:
    I... really don't see how that will help you, considering I'm just asking HOW to do something. It's not like there's a mistake in my CSS or whatever, I just want to know if such a thing as described above is possible...
    As I say, I'm reluctant to upload it as it's for someone else.
    Have a look here http://forums.adobe.com/message/2691056#2691056.
    Both Nancy (one of the best in the business) and I have been trying to help. It's your call.
    I wish you the best of luck.
    Ben

  • What do I need to set in order for each instance of the step type in the sequence to act individually?

    I'm not able to change parameters on one step without it changing the parameters on another instance of the step within the same sequence.  Is there something in the step type properties that I need to set to change this?
    For instance, I have created a custom step called "Battery PWR" that the user can insert into a sequence, hit the "edit" button, set a control in a GUI to 12V and hit an "Okay" button so that the post-step condition causes the power supply voltage to change.  Then, later in the sequence I want the user to be able to insert the same custom step, hit the edit button, set the control to 0V and hit an "Okay" button so that the post-step conditition causes the power supply to go to 0V.  The problem is, when the user edits one of the steps, it causes the other step to change to the same value.
    I know that this has a simple fix, just can't seem to find it.

    I answered my own question.  I was reading and writing to a file global instead of the step parameters, so I was basically overwriting my variables each time I edited the step.  I'm obviously a novice TestStand user.

Maybe you are looking for