Prev | Current Page 385 | Next

David Berube

"Practical Reporting with Ruby and Rails"

ms-excel). Since it??™s an HTML file containing tabular data,
both Excel and OpenOffice.org will import the document seamlessly. You can see the
results of opening the Excel document in Microsoft Excel in Figure 13-5 and in
OpenOffice.org in Figure 13-6. But note that although this application??™s tables are
imported neatly in both applications, there??™s no guarantee that more complex HTML
layouts will work well. (Of course, if you have HTML that??™s not in tabular form, you
probably shouldn??™t be trying to import it into a spreadsheet.)
If you??™re thinking that this trick is counterintuitive and does not sound like it would
work, you??™re correct: it is counterintuitive and does not sound like it would work. But it
does work, apparently because while your web browser uses the MIME type (represented
by the content-type header) to determine the format of the page, the spreadsheet applications
examine the data to determine the format. Because both programs can open
HTML pages as spreadsheets, the trick works.


Pages:
373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397
Mosqitoo baseny ogrodowe Modern Talking Master Blaster sprzedam psa