Using cfform to update an Excel sheet

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Using cfform to update an excel sheet

    I am building a cfform to update a spread sheet, but am not sure how to indicate what column/row that the form field should update in the excel file.
    anyone have any ideas?


    tracjerian Guest

  2. Similar Questions and Discussions

    1. Using cfform to Update and Excel Sheet
      I am building a cfform to update a spread sheet, but am not sure how to indicate what column/row that the form field should update in the excel file....
    2. How to get the name of an Excel sheet?
      It's a COM call via CFObject but be warned - if there are External Links in the spreadsheet or VBA code, you could have issues. I'll post some code...
    3. exporting to an excel sheet
      Hey all, I've created a MySQL database with lots of names, addresses and other info in it and I'd like to write a little script that puts some...
    4. Excel Sheet Export
      Hi All, I have an Excel sheet which I recieve every week. Its not too much data and the present process is to manually load that data into a SQL...
    5. Export to Excel sheet
      You may refer to this KB article: http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q288130 Luke (This posting is provided "AS IS",...
  3. #2

    Default Using cfform to update an Excel sheet

    I am building a cfform to update a spread sheet, but am not sure how to indicate what column/row that the form field should update in the excel file.
    anyone have any ideas?


    tracjerian Guest

  4. #3

    Default Re: Using cfform to update an Excel sheet

    The easiest way is to store the Spreadsheet name, Sheetname and address of the
    cell - e.g. "Example.xls", "Sheet1" and "A1" then use these through either the
    COM Interface, Apache POI or even ODBC to update the spreadsheet.

    Step 1 - read the spreadsheet area desired - Sheet1!A1:C12
    Step 2 - display a form (ala CFGRID) to display the Excel data or a more
    simple approach is to have the user select a row and then have an edit form
    display the row's content for update
    Step 3 - update the spreadsheet

    simple example - setup a table with 3 columns and 2 rows. place a CFFORM
    before and after the table. Make the Spreadsheet name and the Sheetname a
    hidden attribute of the form. For each cell in your table, you will have a
    hidden field containing the field reference - e.g. A1, B1, C1 and an input
    field that contains the value of the cell.

    zz3top Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139