Border for Excel Cells generated using HTML

Hi,
I am generating html at server side and writing the content with
content type application/xls, all the generated data downloads to
me in excel sheet. Here in this excel document, I dont have borders
for the cell where i dont have the data. But for the cells, where data
is placed, cell borders are available. How do i make the whole excel sheet
cells as bordered.
Thanks in advance.
Regards,
Rizwan.

If I have table border="1" they show up. I want
borders even in other parts of the excel sheet where
table is not there. Is it possible for that to get
the borders in entire excel sheet where data is
present and even if data is not present?IIRC, it would not be possible unless you paint all those borders on the HTML page. An alternate way is to generate the Excel sheet using Jakarta POI, but that would only make your work tougher.

Similar Messages

  • Program name for the query generated using sq0102-03

    Hi Folks,
    How can we know the proggram  name for the query generated using sq01 and all?
    K.Kiran.

    Hi Kiran,
    U can get program name of nay transaction code by following this procedure
    after entering tcode it will direct u to the related screen then on the tool bar select system then go for status there u can find program name
    Rewards if helpfull
    Regards,
    Pavan

  • In dreamweaver CS4, I can't make border for single cell

    Hi folks,
    Having given up trying to make a single cell border in the dreamweaver CS4 template, I reverted to an html page and put in my own header, 2 columns and footer as cells in the html table. I know there's html code for adding borders to single cell, but I can't find it. I hope someone can give me a sample line of html code for giving a cell a border on left side and on right side, including 1px solid color border. Anyone?

    Not sure if this is what you want, at least it will give you an example
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <style>
    body {width: 980px; margin: auto; background: #FEE49A;}
    #header {height: 120px; background: #060;}
    #article {height: 400px; width: 749px; float: right; background: #FFF; border-right: 1px solid #060;}
    #aside {height: 400px; width: 228px;    float: left; border-right: 1px solid #060; border-left: 1px solid #060; background: #CCC;}
    #footer {height: 50px; background: #060; clear: both;}
    </style>
    </head>
    <body>
    <div id="header"></div>
    <div id="aside"></div>
    <div id="article"></div>
    <div id="footer"></div>
    </body>
    </html>
    Gramps

  • How to set border of excel cell through ole ?

    How to set border either of left / right / top / bottom of excel cell through ole ?

    Click on the outside the line above header and select all the columns and rows and set the border horz and vert this will solve your problem. if you select current data alone then it will select the current data alone borders. if you runa diff criteria then for the new values borders wont be there. so better always try selecting the column top i.e above the column header and set the border.

  • Listen for excel cell data change

    I want to develop a program that listens when an excel cell value changes...

    snoopybad77 wrote:
    I use http://jdde.pretty-tools.com/ very simple but working.
    By the looks of it, you might want to start with [DDEClientEventListener.onItemChanged()|http://jdde.pretty-tools.com/javadoc/com/pretty_tools/dde/client/DDEClientEventListener.html#onItemChanged%28java.lang.String,%20java.lang.String,%20java.lang.String%29], but I've got absolutely no idea how it works, never having used the product before.
    Winston
    Edited by: YoungWinston on Jul 5, 2010 1:43 AM
    PS: It looks like there's something very similar to what you want on their examples page as well. You clearly haven't done much looking.

  • Opening event for Excel or Word using Web versions of Excel and Word

    Is there an event or other messaging that can be caught and handled when a Word, or Excel file is selected and open using the web version of Word or Excel? At that event I want to access the OOXML file for the selected Word or Excel file and get data from
    it.
    Thanks
    Jim

    Hi Jim,
    As far as I know, Opening event for Excel or Word is not exist in the Javascript API for Office.
    Unfortunately, I could not find such a document.
    >> At that event I want to access the OOXML file for the selected Word or Excel file and get data from it.
    For a workaround, I will recommend you add a function to get the data from the file in the Office.initialize event.​
    Best Regards,
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

  • Read large Excel cell content using ABAP class i_oi_spreadsheet

    Hello,
    I am trying to read an excel file using ABAP methods of interface i_oi_spreadsheet.
    Unfortunetly some of my cells contain data that exceeds the 256 characters size.
    To retrieve the content of the excel speadsheet, I am using method get_ranges_data.
    Unfortunetly as the returned structure is of type soi_generic_table, the content of the cell is truncated to the maximum limit of 256.
    Is there a way to read cells with large content ??
    Thanks
    Regards
    Jean-Pierre

    Same problem for me on ECC 6.0. Hope for a solution.

  • How to Format Microsoft Excel spreadsheet generated using RFC

    Hi Portal Experts,
    Currently, I've managed to generate a Microsoft Excel spreadsheet using a customized RFC. The spreadsheet was initiated when submitting data from Portal.
    But, the data generated in Microsoft Excel was not formatted according to my specification. How could I format the data, alignment and to inset image file in Microsoft Excel automatically when this RFC is being called?
    Cheers.
    Bryan

    Hi Jithu,
    If you tried to write the the template the proper (textual) datatypes and the column is and it does not work then
    I only can suggest to write a macro that does the Text Column conversion and have the macro triggered from within the package perhaps better off using a separate process (e.g. a console app that is done using Office interop libraries) as doing it right in
    the package is quite laborious. 
    Arthur
    MyBlog
    Twitter

  • Fine solid black border for table-cell

    Hi!
    I'm facing the following problem. I'd like to have a tableview where cells have a fine! black (not grey) border. The result should look like a typical Excel-Spreadsheet.
    When entering this in the css Stylesheet:
    .table-view {
        -fx-background-color: white;
        -fx-border-color: black;
        -fx-border-width: 0.8px;
    .table-cell {
        -fx-background-color: white;
        -fx-text-fill: black;
        -fx-border-color: black;
        -fx-border-width: 0.1px;
        -fx-border-style: solid;
    The border of the tablecells get grey are still are to width. How could I get my excel-like grid? When increading changing the width (i.e. to 0.5) the line gets "more black") but unfortunately also too wide.
    Thanks in advance,
    Michael

    Hi!
    I'm facing the following problem. I'd like to have a tableview where cells have a fine! black (not grey) border. The result should look like a typical Excel-Spreadsheet.
    When entering this in the css Stylesheet:
    .table-view {
        -fx-background-color: white;
        -fx-border-color: black;
        -fx-border-width: 0.8px;
    .table-cell {
        -fx-background-color: white;
        -fx-text-fill: black;
        -fx-border-color: black;
        -fx-border-width: 0.1px;
        -fx-border-style: solid;
    The border of the tablecells get grey are still are to width. How could I get my excel-like grid? When increading changing the width (i.e. to 0.5) the line gets "more black") but unfortunately also too wide.
    Thanks in advance,
    Michael

  • Higlighting a individual cell or placing border for individaul cell

    hi all,
    Please let me know is there any way to highlight individal cell in alv grid display
    or placing red border around cell in alv grid display.

    Yes , its possible try using CELLSTYLES.

  • Format for excel cell after downloading .....

    Hi all,
    yet another frustrating thing with excel.. kindly shed some light on this ...
    situation is : in one of our R/3 system i'm downloading the ALV report to excel  and one of the value fields are mis-aligned like few numbers are right-aligned and few others are left-aligned.... coincidentally all left-aligned numbers are < 1 (like 0.3 ....). user setting for point notation is 'DOT' for thousand separator.
    In other R/3 system (our test server) this situation is not happening...all 'values' are fine i.e. right-aligned....
    Should be to do some thing with system setting but not able to point out exactly.... spent lots of time in debugging standard xcel download thing...that's driving me crazy.....
    kindly help me out....
    Thanks in advance

    Use file type as <b>DAT</b>
    CALL FUNCTION 'WS_DOWNLOAD'
           EXPORTING
                filename                = v_fnam
                <b>filetype                = 'DAT'</b>
           IMPORTING
                filelength              = lv_size
           TABLES
                data_tab                = p_output
           EXCEPTIONS
                file_open_error         = 1
                file_write_error        = 2
                invalid_filesize        = 3
                invalid_type            = 4
                no_batch                = 5
                unknown_error           = 6
                invalid_table_width     = 7
                gui_refuse_filetransfer = 8
                customer_error          = 9
                OTHERS                  = 10.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.

  • Using javascript to dynamically generate the html for a  Spry table

    I have some javascript which generates html code for a Spry
    table which displays the content of a Spry data set. The problem is
    that after I generate the html, Spry never fills in the values for
    the table.
    Here's what I'm doing:
    Using a data set observer, check for onPostLoad and generate
    the html code
    Using innerHTML, stuff the code into the appropriate
    <div>
    Use regionName.updateContent() to update the region I just
    created with the html code I generated
    Interestingly, if I take the generated source for my page and
    remove the data set observer, the Spry table displays correctly
    with all the expected values. This suggests to me that my generated
    html code is correct, but that there is some sort of timing issue
    (i.e. Spry doesn't know about the new code I generated).
    Any suggestions?

    jalperin wrote:
    > Here's what I'm doing:
    >
    Using a data set observer, check for
    onPostLoad and generate the html
    > code
    >
    Using innerHTML, stuff the code into
    the appropriate <div>
    >
    Use regionName.updateContent() to
    update the region I just created
    > with the html code I generated
    >
    > Interestingly, if I take the generated source for my
    page and remove the data
    > set observer, the Spry table displays correctly with all
    the expected values.
    > This suggests to me that my generated html code is
    correct, but that there is
    > some sort of timing issue (i.e. Spry doesn't know about
    the new code I
    > generated).
    >
    > Any suggestions?
    I'd guess that it is a timing issue as well. I haven't looked
    much at the dataset capability in Spry, but it may be that the
    dataset "finds" all of the regions and code that it applies to
    before the onPostLoad event is triggered. If that is the case, then
    your generated code doesn't exist yet,and so the dataset thinks
    that there is nothing for it to apply to.
    Will the HTML that you generate change based upon the dataset
    that is actually returned? I guess I'm looking for the reason why
    the HTML is being generated when it could be in the page itself and
    avoid this issue completely.
    Danilo Celic
    |
    http://blog.extensioneering.com/
    | WebAssist Extensioneer
    | Adobe Community Expert

  • How to implement OData based BASIC Authentication using HTML, JavaScript for Mobile Apps using Apache Cordova/PhoneGap and datajs-1.1.1.js library

    Hello,
    I have an issue with OData based BASIC authentication for iOS App created using HTML, JavaScript, SAP UI5, OData and Apache Cordova/PhoneGap.
    Please check the post here http://scn.sap.com/thread/3527245
    Request you to kindly reply on the above given link.
    Thanks and Regards,
    Suraj Kumar

    Hello Prathik,
    The code which I am using for OData based BASIC Authentication, for my Mobile App is as below.
       var onSuccess = function(data) {
       alert("We are Through"); //Just to check that the OData request was sucessful
       var onError = function(err) {
       switch(err.response.statusCode) {  
       case 403 : {
       window.alert("Error Code - 403, Service unreachable ");
       break;
       case 401 : {
       window.alert("The credentials are incorrect or missing!");
       break;  
    // dataUserName and dataPassword are the two variables, in which I am storing my Username and Password, respectively.
       var connectionRequest = {
       requestUri: "ODATA SERVICE URL GOES HERE/",
       headers: { Authorization : 'Basic ' + Base64.encode(dataUsername + ":" + dataPassword) },
       method: "POST"
       OData.request( connectionRequest, onSuccess, onError);

  • Thin borderlines for JText cells

    Hi,
    The following example makes a table based on JTextFields.
    I would like to get thinner border lines as they are in a JTable.
    Who knows how?
    Thanks
    Michel
    package MTabProtoypes;
    import java.awt.Color;
    import java.awt.Container;
    import java.awt.HeadlessException;
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseListener;
    import javax.swing.BorderFactory;
    import javax.swing.JFrame;
    import javax.swing.JTextField;
    /* @author scm */
    public class TabJtextfieldsArray02 extends JFrame implements MouseListener {
         private JTextField[][] txt;     // View: 2D Array of textfields o=o 2D model array 
         private Container cp = getContentPane();
         public static void main(String[] args) {
              int totRows = 256; int totCols=64; int visRows = 16; int visCols=8; int x=10; int y=10; int h=20; int w=70; 
              TabJtextfieldsArray02 mTabTest = new TabJtextfieldsArray02(totRows,totCols,visRows,visCols,x,y,w,h);          // Neue Table
             mTabTest.setSize(600, 400);    
             mTabTest.setVisible( true );
         public TabJtextfieldsArray02(int totRows, int totCols, int visRows, int visCols, int xpos, int ypos, int width, int height) throws HeadlessException {
    //          super ("Tabellen - TabJtextfieldsArray02");
             cp.setLayout( null );
             txt = new JTextField[totRows][totCols]; // Table / Textfield-Array Params (rows/columns)
             for (int i = 0; i < visRows; i++) {appRow (i, visCols, xpos, ypos, width, height);}     // append row by row
                for (int i = 1; i <=visCols; i++) {insText (1,i,"ColHead "+i);}               // Index  Not 0/0, but 1/1, including header
                for (int i = 1; i <=visCols; i++) {setLineAttrib (1,i,1);}                    // Header (light gray)
                cp.addMouseListener((MouseListener) this);
         private void appRow (int row, int visCols, int x, int y, int w, int h) {     // build column row by row
              for (int j = 0; j < visCols; j++) {
                   txt[row][j] = new JTextField();     
                   txt[row][j].addMouseListener(this);
    //               txt[row][j].setBorder(BorderFactory.createEmptyBorder());               // no border
    //               if ((j+1)%2==0) {                                                                 // trial with only odd rows - forget it
    //                    txt[row][j].setBorder(BorderFactory.createRaisedBevelBorder()); // border
    //               } else {
    //                    txt[row][j].setBorder(BorderFactory.createEmptyBorder());          // no border
                   txt[row][j].setBorder(BorderFactory.createRaisedBevelBorder());
    //               txt[row][j].setBackground(Color.lightGray );
    //               txt[row][j].setForeground(Color.gray);
    //               txt[row][j].setBorder(BorderFactory.createLoweredBevelBorder());
    //               txt[row][j].setBorder(BorderFactory.createLineBorder(Color.black));          // Thickness = 1
    //               txt[row][j].setBorder(BorderFactory.createLineBorder(Color.black,1));       // Color, Thickness
    //               System.out.println(txt[row][j].getBorder());
    //               txt[row][j].setBorder(BorderFactory.createMatteBorder(1, 1, 1, 1, Color.black));
    //               txt[row][j].setBorder(BorderFactory.createEtchedBorder());
    //               txt[row][j].setBorder(BorderFactory.createEtchedBorder(EtchedBorder.LOWERED )); //
                   txt[row][j].setBounds(x+j*w,y+y*2*row,w,h);          
    //               txt[row][j].setBounds(x+j*(w-1),y+y*2*row,w,h);     
                   cp.add(txt[row][j]);
    //     Text in ein Tabellenfeld einf�gen
         private void insText (int row, int col, String tabField) {
              txt[row-1][col-1].setText(tabField);
    //     Eine Tabellenelement bekommt ein bestimmtes Aussehen
         public void setLineAttrib (int row, int col, int attrib) {
              switch (attrib) {
              case 1:          // Hintergrund grau
                   txt[row-1][col-1].setBackground(Color.lightGray);     
                   break;
              default:
                   break;
         public void mouseClicked(MouseEvent arg0) {
              System.out.println("mouseClicked: "+arg0);
         public void mouseEntered(MouseEvent arg0) {
              System.out.println("mouseEntered: "+arg0);
         public void mouseExited(MouseEvent arg0) {
              System.out.println("mouseExited: "+arg0);
         public void mousePressed(MouseEvent arg0) {
              System.out.println("mousePressed: "+arg0);
         public void mouseReleased(MouseEvent arg0) {
              System.out.println("mouseReleased: "+arg0);
    }

    but I don't know why.you had a border for each 'cell', meaning between adjacent 'cells' there were 2 borders,
    right side of one adjoining left side of adjacent
    likewise for bottom/top
    the matte border allows you to specify 0 pixels wide for top/left/bottom/right,
    meaning the overall 2 borders are 1 pixel wide
    http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/BorderFactory.html#createMatteBorder(int,%20int,%20int,%20int,%20java.awt.Color)

  • Eliminate printing Border for Text Field???

    Is it possible to display border on the PDF and not print on the output for Text Field??? What settings and/or scripting I need to get this working? A sample form is really appreciated.

    If you use the standard border (for example), you can use the JavaScript prePrint and postPrint for each field to make the border visible, and hidden. Here's how.
    1.) Highlight Text Field in Designer.
    2.) In the Script Editor, select the prePrint Event from the dropdown list on the top left. (This works in FormCalc or Javascript, although I tend to use JavaScript as the language in the right hand drop down)
    3.) Type in (or paste) the following code:
    this.border.presence = "hidden";
    4.) Select the postPrint Event.
    5.) Type in (or paste) the following code:
    this.border.presence = "visible";
    Now when you click print, it will make the outside border hidden, and when you cancel, the border will reappear. Now this will not make the 'Solid Box', or 'Sunken Box' of the text field hidden. The easy way to fix this, is set the 'Appearance' in the Object->Field palette to 'None'.
    Cheers!
    Jay

Maybe you are looking for