How to wrap JTable cell like EXCEL sheet??

Hi All,
I am using JTable and i want to wrap cell of that table like excel sheet whtn text length is more .
i m using jdk 1.4.2 & jre 1.4
can any body help me on that??
== gavin

Search this forum on "wrap text in table cell" I got a ton of hits.
Cheers
DB

Similar Messages

  • How save data from the one row of db to the one cell of excel sheet

    hi
    how to save data from one row of db to the one cell of excel sheet and so on..............

    hi,
    see this link
    http://poi.apache.org/hssf/quick-guide.html
    Regards,
    Ram

  • How to read the data in excel sheet

    Dear sir,
    How to read the data in excel sheet when i recieve a data serial communication... ie i have store a data in excel such that
    Cell A       Cell B
       A           Apple 
       B           Ball
       C           Cat
       D           Doll
    when i recieve A from serial communication i have to display Apple, and when i recieve B i have to display Ball and so on.. 

    Hi, 
    I would recommend you to have a look at the VI attached. It makes use of a VI named 'Read from Spreadsheet' to read the row and column data from the tab delimited excel file. The read data is then searched for the Alphabet specified and finally returns you the corresponding string. The test file used to validate the operation of the VI is also attached. 
    Trust this would help you solve the issue. 
    Regards, 
    Sagar G Yadav | Application Engineer | National Instruments
    Attachments:
    read_from_excel.vi ‏10 KB
    Book1.txt ‏1 KB

  • How to know the total string length of a range of cell in excel sheets

    Hi,
           I am working on Excel automation. I want to read data of collection of cells from excel for that i need to know the total string length in one shot.
    Can anyone suggest me the answer for this

    Still not sure about your requirements, but how about this
    SQL> CREATE OR REPLACE FUNCTION get_max_length(p_table in varchar2, p_col in varchar2) return pls_integer
      2  is
      3    v_cnt pls_integer;
      4  begin
      5    execute immediate 'select max(length('||p_col||')) from '||p_table into v_cnt;
      6    return v_cnt;
      7  end get_max_length;
      8  /
    Function created.
    SQL>
    SQL> SELECT COLUMN_NAME,
      2         DATA_LENGTH,
      3         get_max_length(TABLE_NAME, COLUMN_NAME) max_length
      4  FROM USER_TAB_COLUMNS
      5  WHERE TABLE_NAME='EMP'
      6  AND DATA_TYPE like '%CHAR%'
      7  ;
    COLUMN_NAME                    DATA_LENGTH MAX_LENGTH
    ENAME                                   10          6
    JOB                                      9          9
    SQL>

  • How to set the Border of a cell in excel sheet

    dear all,
    using OLE2 i want to set the cell's border in an excel sheet
    so whats the property for that?
    ole2.set_property(WorkCell,???, ???);
    thanks and best regards,
    very urgent plz
    thanks in advance

    Could you, please, definitly remove the "urgent" word from your vocabulary when you post on this forum. We are all volonteers and not paid at all to answer the qestions. I repeat one more time that there is no post more urgent than another.
    If you are so in a hury, as said Gerd, contact the Oracle support.
    Francois

  • How to move to the next cell in excel sheet

    hi,
    i am working with excel sheet using cvi. i need to put data in cells for that i have function ExcelRpt_WriteData();
    but with this i can give fixed cell range , instead of that is there any function in cvi to point next cell automatically instead of giving cell range we will give intially starting cell range then it has to point to next cell in the sheet. is there any function to do that what i amn expecting.
    Thanks & Regards

    Hello,
    Excel Report Generation instrument is built on top of excel2000.fp, the complete ActiveX interface to Excel. excel2000.fp is loaded together with ExcelReport.fp when you run your project, and you should be able to use functions from both instruments in your app (I have not tested it but since ExcelReport is a wrapper of calls to excel2000 instrument, I'm confident it is true).
    Given this, you can look at excel2000dem example project that you can find on your disk in samples\activex\excel folder together with excelreportdemo which you may have already studied. In this example there are functions to write to a range of cells addressed by row and col indexes, specifically Excel_RangeSetItem (). This can be a good starting point: there is not the automatic cell advance, but you can address cells individually so you can develop your function according to your needs. Excel2000.fp is a low level interface to Excel: in this respect it is a bit more obscure and requires more effort in use but includes more functions than ExcelReport.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • How can i download data in excel sheet .

    Hi all
    My Requirement : In a selection screen after giving a VBELN,It will show all the related data from VBRP table through alv  . There are a customize icon ,after clicking the icon it will download all fetched data .
    Can any one help me .how can i download the fetched data through excel ?
    Regards
    Rajesh .

    Hi Rajesh,
    I understood your requirement as from ALV you want to download the data to an Excel sheet.
    In standard ALVs, you need to do this
    In other cases like Z programs etc, often Icon is provided  (as you said) like this
    You need to select Local File option here as shown below
    In both case you will get this pop-up
    Now when you continue you will get SAVE dialog-box, where you can give a name to your excel file and Save.
    Hope this is your query.
    Jogeswara Rao K

  • How to wrap a cell in a xls file created from SQLplus

    Hi,
    I have the following sql script in Unix which creates a xls file for me -
    set pagesize 9999 lines 130                                                    
    set echo off                                                                   
    set termout off                                                                
    set markup HTML on                                                             
    set enpmap off                                                                 
    spool $test/userxyz/testfile.xls;                                   
    -- BEGIN:  Data exctraction from REFINTEG                             
    ttitle ' REPORT FOR DATABASE x1111y0'                                          
    select ' ' || error_message as ERROR, ' ' || error_type as TYPE, '&nbs
    p;' || data_selection as DATA_SELECTION, ' ' || description as DESCRIPTION,
    ' ' || npp as NPP, ' ' || item as item                    
    from   refinteg;                                                       
    spool off;          
    set markup HTML off;
    EXIT;               
    /                    The xls file I am getting needs to have the DESCRIPTION column as wrapped. i.e the contents will sizing the cell.
    Could you provide any leads as to how to include this formatting in my sql script.
    Thanks.

    I am trying to give a snapshot of how my csv is looking like currently and how I want it to be -
    Error      Type      Data_Selection    Description                      NPP      Item
    AAA         new       nsdancsjjsjqs      abc=123 xy=12 pq=34      john       12345678
    BBB         old         dsiuhfdcndhjd      mno=345 cd=56 ij=89      kate       23456667
    How I want it to look like (pls. note the Description column) -
    Error      Type      Data_Selection    Description                      NPP      Item
    AAA          new       nsdancsjjsjqs      abc=123                          john      12345678
                                                        xy=12
                                                        pq=34
    BBB         old        dsiuhfdcndhjd      mno=345                         kate       23456667
                                                     cd=56
                                                     ij=89
    i.e each of the new values in the description column of my spreadsheet would occupy a newline inside the same cell.I do not know how this can be achieved in the SQLplus. Do we need to add any formatting parameters in the sql file.
    Thanks.

  • How to download internal table to excel sheet

    I have a requirement to download nearly 8 to 10 internal tables to excel sheets(for each internal table one excel sheet) without displaying the diolog box showing open and save buttons.
    scenario :
      I will enter the path name like this -   C:\myfolder\Custom_programs.xls.
                                                            C:\myfolder\Custom_tables.xls.
                                                            (File name does not exit..it has to created inside the    
                                                                specified folder)
      in submit button I populate 2 internal tables say it1 and it2. then I need to move the tables contents to the path I have specified above.
    attach_file_to_response method is not working for the above reqt since it is showing the dialog box.
    Please provide a suitable solution...

    Please ignore all the responders that are stating that you can use GUI_DOWNLOAD from Web Dynpro ABAP.  As you found out, this absolutely will not work, since this function module and other download logic like it depends upon a connection to the SAPGUI. People posting to use the GUI_DOWNLOAD from WDA need to learn a little more about the architecture of WDA before they go posting incorrect repsonses in the forum. I have little tollerance for people posting outright incorrect information in the WDA Forum.
    What you want to do - download silent - is not easily done from WDA.  There are rules about how web applications must behave in a browser.  Normal HTML/JavaScript does not allow silent downloads for security reasons.  Obviously there are many untrustworthy websites on the internet that you wouldn't want to allow to directly access your local machine.  WDA must live within these same browser limitations.
    SAP has done some work using a Java Applet to get around some of these security issues.  This funcitonality comes in NetWeaver 7.01.  It is the AcfUpDownload UI element:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/b9157c878a2d67e10000000a42189c/frameset.htm
    However it is designer for usage with the Content or KPro server - so even it might not meet your needs.

  • Colored Cells in Excel sheet

    hi
    we have a excel sheet with values which we created based on a tutorial spreadsheet. We tried the exactly the same steps provided in the PDF but it did not work. however when we used the original file we got the same output that was shown in the PDF screenshot. Here is what we tried.
    we created a spreadsheet similar to the one given below
    City     JAN     FEB     MAR     APR     MAY     JUN     JUL     AUG     SEP     OCT     NOV     DEC     Low     High
    ABILENE, TX     44     49     56     65     73     80     84     83     76     66     54     45     44     84
    AMARILLO, TX     36     41     48     56     65     74     78     76     69     58     45     37     36     78
    AUSTIN/BERGSTROM, TX     48     53     60     67     75     80     83     82     78     69     58     50     48     83
    In the canvas we placed a spreadsheet table control which contained the city names , a line chart and 2 gauges for HIGH and LOW values.
    Now the problem we faced was when we click on the city name in the table control nothing changed in the chart even though it was mapped to the correct cells.
    In the original file that came with the PDF there were YELLOW and RED blank cells to which it asked to map but those cells didnot contain any hidden data also. We would like to know is there any significance of those colored cells. whenever we download some sample excel file from the internet for a dashboard creation it has some colored cells, we would like to know does those cells contain any hidden info to make the dashboard work.
    Thanks
    GURU

    Most of the times, colored cells are used by the dashboard's designer to represent cells that are used at run time as origin/destination cells. This means that although at design time they are empty (they indeed are - there is no "hidden" data there), they contain data when the dashboard is executed.
    Some suggestions:
    - Check the component's properties to see which cells it uses.
    - Also, when in Preview, go to File -> Snapshot -> Current Excel Data to see what the Excel file actually looks like at run time. There you should see data in the colored cells.
    HTH,
    JK

  • ODI : how to publish data in an excel sheet

    hello every one!
    need your suggestions.
    On executing a procedure or a package in ODI ,i want to publish the output on an excel sheet .
    how do i do that?
    kindly suggest.

    Dear sutirtha thanks for your fast response .
    i was looking for the method that is to be followed for a job run in ODI through a procedure or may be through a package which can give us the output of that particular job run on an excel sheet.
    for eg:
    suppose i have a package named 'scheduled_1' which run on daily basis @ 5 AM and after its successfull execution it sends an email to a particular email id.
    now it is expected to send the whole of the output of the executed table/job to an excel sheet to an emailid.
    it would be like redirecting the output to an excel sheet .
    the emailing thing is known to me but how do i carry out the capturing of records in an excel sheet & then emailg it to the emailid.
    thanks
    sonia.

  • How to modify data in the excel sheet.

    Hi,
    I have a requirement like ,
    i have a excel file which contains only one column (all the data in the single colume )so now i have to modify that excel sheet and have to make some more columns based on my requirement.
    eg:
    column1
    mumbaikolkata
    delhichennai
    mumbaikolkata
    this shud be converted like this
    column1     column2
    mumbai      kolkata
    delhi           chennai
    mumbai      kolkata
    can i directly modify the excel sheet based on my requirement without using internal tables in between.
    like excel ->internal table-> modified internaltable-> excel.
    Edited by: Sravani Bellana on Dec 18, 2008 5:46 AM

    Hi sravani,
    true that we need to specify the rows and columns,
    I have worked on such applications i shall describe the possibilities and then you can find the necessary option,
    1)  Function module:SAP_CONVERT_TO_XLS_FORMAT .
    it needs
    file path p_file type rlgrap-filename and
    i_tab_sap_data  (the internal table name).
    2)  Function module : MS_EXCEL_OLE_STANDARD_DAT
    it needs
    file path p_file like RLGRAP-FILENAME
    data_tab (int_data "internal table with data)
    fieldnames (int_head "internal table with header)
    3) if the download application is a one time then go for the following option:
    write the program to display the data in the internal table on the screen.
    execute the program.
    type %pc on the command bar and try downloading using the options displayed.
    hope any one of these work out.
    get back if you till have any clarificatrion
    thanks
    srikanth

  • How can I download to one excel sheet from more than two table?

    Hi.
    as you know
    <SAP_BW_URL CMD='EXPORT' FORMAT='XLS' DATA_PROVIDER='DATAPROVIDER_T1' >
    this script can make download excel sheet which is same cotents of table or chart in web template.
    but if template has more than two tables how can we get excel sheet from tables?
    <SAP_BW_URL CMD='EXPORT' FORMAT='XLS' DATA_PROVIDER_1='DATAPROVIDER_T1' DATA_PROVIDER_2='DATAPROVIDER_T2'>
    I hope this gonna work but result was fail same as I expected.
    is there any way put two tables download one excel sheet?

    Welcome to SDN.
    Post this in Business Explorer forum for quicker resposne.
    SAP Business Explorer (SAP BEx)
    Regards
    Raja

  • How to convert PDF image to excel sheet

    Hi,
        I am trying to convert the PDF image /Text file to Excel sheet then I need to use that data for my reports
    Can you please let me know
    1) How I can convert the PDF into a excel sheet
    2) Which s/w i need to use for that(adobe s/w)
    3) do need to purchse any other 3rd pary s/w to use this
    s/w - software
    PDF Image - scanned document in the image format
    Regards
    Shrinivas

    You need Acrobat Standard or Pro to convert the scanned image to readable text (OCR) and then save it as a Excel file (if Acrobat recognizes that it's a table, which I doubt it will). Maybe there are some 3rd party plugins that can help you further.

  • How to manipulate jtable cell?

    Hi experts,
    I created a jtable with a BC4J related to the jtable.
    I do not know how to update a cell and how to insert a new row in the jtable.
    Would someone please tell me where I can find the document about manipulating a jtable?

    Have a look at the source code of JUNavigationBar. In that class, look for JUActionBinding(_buttons[BUTTON_FIRST]   , bind, JUActionBinding.ACTION_FIRST, false);As you can see you will need the JUActionBinding class.

Maybe you are looking for

  • Payment Performance Report

    Dear Experts,            Following is the scenario, Sales Person           Raj Customer Code       C1000 Payment Terms       15 days Invoice Date            01.02.2010 Invoice Value          20000 Payment Date          20.02.2010 Payment Amount     2

  • Help with Flash smooth transitions

    Can someone please tell me how I can make a Flash movie like this one here where it transitions smoothly from one image to another. I have been using Flash for a while at a basic level, but my attempts at such movies always seem to be jerky. When I c

  • Default db when login into a forms app

    Hi all, When I go to a forms app in my browser, I'd like the forms server uses a default database in case the end user leave such field in blank. I tried appending LOCAL=mydb in the env file defaults.env, but it not worked. mydb is corretly seted in

  • MRP Net Requirements calculation in External procurement Vs STO

    Hi gurus, Lets say I have a FG 1234 which has raw component 9999. Case1: Setting for 9999 is externally procured. I have a stock of 50 pc for 9999. I got order for 60 pc for FG 1234. so system will only create purchase reks for 10 pc of 9999 as it al

  • SOAP-- XI-- R/3

    Hello, I am working on a scenario which includes SOAP and IDOC. sri Message was edited by:         sri rao