I installed your dev-release of 7-dec-2010 on D7-rc3.
I want to create an XLS export file. However, the output is equal to the XML-output.
(At least in preview mode - using the real thing doesn't work yet, due to #1008240: Change 'data' column to a 'big' 'text' column

Comments

steven jones’s picture

Assigned: Unassigned » steven jones

This really shouldn't be the case. Test required.

johnv’s picture

Steven,
an update on #1:
- issue /node/1008240 has been resolved.
- the XML-output does have an .xls suffix. So, clicking the file will cause Excel to start. You have to confirm a error message, but then, a clean XLS-spreadsheet pops up. So, at least Excel 2007 knows how to read xml-files. Haven't tested it on older releases.

steven jones’s picture

Can you attach an xls export that you are seeing to this issue, the xls output should be in some form of XML but shouldn't be exactly like the XML plugin's output.

johnv’s picture

StatusFileSize
new1.5 KB
new25.05 KB
new16.85 KB

Please find attached 3 formats of the same report. I added the suffix .txt, otherwise I couldn't upload 2 of 3 files.
I set the protperty 'provide as file' to Yes.

steven jones’s picture

The xls file is basically just a HTML table in a very simple HTML document that excel can understand. The output from the XML and xls style plugins you've attached is different.

Is the issue that in preview mode they aren't different?

johnv’s picture

It seems that indeed both variants are OK, but I do get an error when opening the xls-file in Excel. I'll explain:
Regarding preview mode: Today I tested again, and the outputs are different, even only after a change between XML and XLS and pressing [update], and not [save]. So, either I mistake, or the issue 1008240 did some magic (I presume the first).

Regarding production mode: After applying 1008240, I could export a normal file. Normally I work with Excel 2007. When I open the xls-output, I get the following error (roughly, I translated it to English). I can ignore the error and the file is shown OK. This also made me think the file was wrong. Today I tested the same xls-file on Excel 2000, and the error does not show.
"The file you want to open does not have the format as designated by the suffix. Check if the file is not corrupt and has a trustfull source. Do you want to open the file?"

steven jones’s picture

Title: XLS-output is same as XML-output » XLS-output is not recognised by Excel 2007
Assigned: steven jones » Unassigned

Changing title to reflect issue

steven jones’s picture

I'm not sure there's much we can do about this. Reading about the formats it seems that Excel formats are quite a bit more complicated than what we have in the module at the moment, so I'm not sure of the way forward for this issue.

Either we spin this functionality out into another module that can take the burden of all the features, or we just put warnings on the Excel output we have at the moment, saying that you may get warnings when opening.

jamsilver’s picture

Yeah, I agree - given that our output is still read OK by Excel, it doesn't seem like a good idea to put so much work in just to avoid a warning. If someone finds that an export is being mis-interpreted by Excel, then that's another matter, and then we could think about working on a more involved solution (something which should definitely go into another module I think).

steven jones’s picture

Status: Active » Closed (won't fix)

Marking as 'won't fix' for the above reasons.

johnv’s picture

Just for reference for myself and others with the same user(!) error:
I now understand what might have happened, and how to produce the orrginal error:
- create a VDE display, and customize for XML file-output, using a difficult name e.g. with date placeholders
- create a second VDE display, customize for XML, and copy&paste the first filename.
Now you get an XML file with an XLS extension!

johnv’s picture

Issue summary: View changes