Issue 69081 - Calc doesn't open html table
Summary: Calc doesn't open html table
Status: CLOSED IRREPRODUCIBLE
Alias: None
Product: Calc
Classification: Application
Component: open-import (show other issues)
Version: OOo 2.0.3
Hardware: All All
: P3 Trivial with 1 vote (vote)
Target Milestone: ---
Assignee: spreadsheet
QA Contact: issues@sc
URL:
Keywords: needmoreinfo, oooqa
Depends on:
Blocks:
 
Reported: 2006-08-30 08:24 UTC by mloiseleur
Modified: 2008-07-07 13:03 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
HTML table (4.25 KB, application/vnd.ms-excel)
2006-09-14 11:01 UTC, mloiseleur
no flags Details
Table (94.67 KB, application/vnd.ms-excel)
2006-09-14 11:01 UTC, mloiseleur
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description mloiseleur 2006-08-30 08:24:44 UTC
When you open an html table in OpenOffive v1.1.5, it's open in calc.
When you open an html table in OpenOffice v2.x, it's open in Writer/Web,
whatever extension or changes to *.xcu files you do.

The problem seems to be in sc/source/ui/unoobj/scdetect.cxx, around line 700.

There is no documentation on the ppFilter stuff, so it will take me a little
time before correcting this
Comment 1 kpalagin 2006-09-14 08:35:10 UTC
mloiseleur,
any chance you could attach sample file to the issue?
Comment 2 mloiseleur 2006-09-14 10:55:38 UTC
Yes, here they are
Comment 3 mloiseleur 2006-09-14 11:01:03 UTC
Created attachment 39141 [details]
HTML table
Comment 4 mloiseleur 2006-09-14 11:01:54 UTC
Created attachment 39142 [details]
Table
Comment 5 mloiseleur 2006-09-14 11:03:41 UTC
You can try it by yourself.
Open it with Ms Excel, Open it with scalc and open it with soffice wrapper.
You will see easily the difference.

Comment 6 Mathias_Bauer 2006-10-06 09:06:28 UTC
You might be please to hear that in OOo2.0.4 opening the files with scalc
(instead of soffice) will open them in Calc instead of Writer/Web.

So you could fix your problem by using 2.0.4 (when it's out) and register scalc
(not soffice) to handle files with extension "xls".
Comment 7 mloiseleur 2006-10-06 13:27:40 UTC
Thanks a lot. 
I'll wait to see it and I close the bug afterwards. The registry trick is
already made ^_^. I will try with *.xcu conf files too, it works well.
Comment 8 mloiseleur 2007-02-04 22:37:52 UTC
It still doesn't work in OpenOffice 2.1
Any clue on how I can help to fix it ?
Comment 9 frank 2007-02-05 14:52:25 UTC
Hi,

tried it with OOo2.1 and a OOFm4 build (upcoming OOo2.2) with the following
comandline :

{Officepath}\program\scalc.exe {path to file}ExportTSARExcel.xls

In both cases the file opens up in Calc !

So I close this Issue as worksforme. Please have a look at Issue 64271
especially the comments at the end.

Frank
Comment 10 frank 2007-02-05 14:53:03 UTC
closed wfm
Comment 11 plurimedia 2008-06-04 14:31:36 UTC
Sorry to resume a closed thread (hope it's ok) but this issue is hitting me as well.

To be more precise, my problem is related to opening web URLs pointing to a HTML
table.

For example there is an attachment here
(http://www.openoffice.org/nonav/issues/showattachment.cgi/39142/ExportTBOI.xls)
which I'm unable to open properly with OO 2.3 on Linux: if I click on that URL
the browser correctly prompts me to open with Calc, but then all I get is the
"Text import" dialog, which obviously won't work for an HTML table.

Note that the same happens if I save the file locally an try to open it with
Calc; it only works correctly if I change the local file extension to HTML (and
then Right-click -> Open with -> Spreadsheet).

Is this issue fixed in the latest OO release? If not, I think it's something
that should really be addressed.

Alessandro
Comment 12 avagula 2008-06-07 10:28:19 UTC
does not work in 2.4 nor dev300_m17
Comment 13 oc 2008-07-07 10:34:21 UTC
The mentioned file isn't a MSExcel file, it is a HTML which has been renamed.
Excel tries to load it with its filter so does OOo but the default filter for
OOo is WriterWeb => works as designed closed as worksforme
Comment 14 oc 2008-07-07 10:34:51 UTC
closed because worksforme
Comment 15 mloiseleur 2008-07-07 11:05:03 UTC
->oc :
  You're nearly right. There's a subtle difference : it's an html _table_ file,
that's why some users expect it to open in Calc, and not in Writer.
  For some people, Writer is an editor for textual html and Calc is an editor
for html sheets.

Comment 16 plurimedia 2008-07-07 13:03:46 UTC
> works as designed closed as worksforme

Mmmh... well, ok but consider the following:

1) Web applications often rely on this functionality. I discovered this
"problem" while modifying one of my apps: I have several HTML table reports that
I have to "export" to spreadsheet and the easiest solution was changing the MIME
header (to application/vnd.ms-excel) and I was practically done without touching
anything else in my code.

2) That's how MS-Excel works: I understand this is of little or no interest to
you, but it's what the end users probably expect.

Thanks for your time, and I hope you will reconsider your decision.

Alessandro