Hi,
I was getting the following error message when opening spreadsheets generated using the Views Excel Export module.

"The format of the file you are trying to open, 'filename.xls' is different from that specified by the file extension. Before opening the file, verify that it is not damaged and that comes from a trusted source."

I did some research and discovered that the problem was the php-excel class being used to generate spreadsheets. The class is outdated and is no longer supported by Microsoft Excel.

To correct the problem, I downloaded and installed the PHPExcel Library to the sites/all/libraries folder of my Drupal site. Next, I updated the Views Excel Export module to load the PHPExcel library and generate spreadsheets using the PHPExcel class provided.

My solution worked, and I am now able to generate spreadsheets which do not produce the "file format" error message when opened.

In the event that my solution is helpful to others, I will create a patch and attach it to this thread. Patch to follow.

Thanks,
Gordon

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

gturnbull created an issue. See original summary.

gturnbull’s picture

ilaz’s picture

The .patch works.

gturnbull’s picture

Status: Needs review » Patch (to be ported)
kristofferwiklund’s picture

Here comes a patch for applying on latest dev branch.