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

  1. #1

    Default Formatting problem

    I am having a problem with getting formatting. Users are uploading an excel
    spreadsheet, which I am trying to parse and insert the data into my database.
    I have tried about a million different ways of doing this including: COM,
    Apache POI, and custom excel2query tag. I managed to get the data all of these
    different ways, but I don't get any of the formatting that were in the cells.
    I have been pulling my hair out trying to figure this out. Any suggestions?

    JustinGates Guest

  2. Similar Questions and Discussions

    1. Problem with table formatting : auto-vertical expanding
      I have a problem that is driving me crazy. In trying to convert our site from Frontpage to Dreamweaver, I selected to use templates. I setup a...
    2. Mail formatting problem
      I'm using this code below. It sends the emails ok but none ofthe body isformatted. Any ideas? Thanks Andy <% Dim BodyString
    3. Problem formatting dynamic text
      I'm using ASP (VB) to display copy from a Microsoft Access DB. My problem is that the copy loses it formatting and all runs together. I've tried...
    4. exporting webpage to excel formatting problem
      Hi, I have a webpage that is taking input from a form and using it as criteria to select data out of an sql database. The page displays an html...
    5. [PHP] Retaining formatting problem[Scanned]
      ><input type="text"> cannot have multiple lines, use <textarea name=" This is true. Also, watch the line endings coming aout of that textarea -...
  3. #2

    Default Re: Formatting problem

    What kind of formatting are you looking to maintain? Have you ruled out the
    database fields as the cause of the loss or change of formatting? Could you
    post a sample Excel file and code that we could do some testing against?

    sdwebguy99 Guest

  4. #3

    Default Re: Formatting problem

    I am trying to maintain formatting like bold, italics, and underline. I
    haven't inserted the data into the database yet. I have just been printing it
    out on a web page to view it. I have also had some trouble getting individual
    cell data via COM object. I have been reading through the VB help for Excel to
    find the objects and methods. Some of the objects like a range have properties
    that take parameters. For instance, objWorksheet.UsedRange.Cells(1,1).Value.
    Cells(1,1) is actually a property not a method. When I try to use it I get
    an error that the method was not found. I have also used a tag that I found on
    the web excel2query. Its a great tag that is really easy to use, but it also
    does not give you formatting. I'm working with one of my co-workers now with
    the POI to see if we can get it. As far as the spreadsheet goes, it is a very
    simple spreadsheet with three columns. There are no formulas, just text with
    the occasional bold, italic and underline.

    JustinGates Guest

  5. #4

    Default Re: Formatting problem

    After looking ove the APache POI Documentation I came across this: Rich Text
    HSSF does not support rich text cells. Rich text cells are cells that have
    multiple fonts and styles in the once cell. Any attempt to read a spreadsheet
    that has rich text cells will throw an exception. This feature may be supported
    in the future but it is not currently planned. Patches are welcome. I guess
    I'm right back at the drawing board where I started. I was going to use XML,
    but only Excel 2003 and maybe 2002 support XML and I don't want to be limited
    to that software because my clients don't all have that version. I'm pretty
    much open to any option now.

    JustinGates 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