Focal Point
[SOLVED] Compound EXL2K format generates XMH file and IE Information Bar warning

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/3627023326

August 18, 2012, 03:06 PM
Francis Mariani
[SOLVED] Compound EXL2K format generates XMH file and IE Information Bar warning
SET WEBARCHIVE=OFF

TABLE FILE CAR
SUM SALES
BY COUNTRY
ON TABLE PCHOLD AS REPORT FORMAT EXL2K OPEN
END

TABLE FILE CAR
SUM WHEELS
BY COUNTRY
ON TABLE PCHOLD FORMAT EXL2K CLOSE
END

I would love to get an xls file generated and not an xmh file. Setting webarchive to off is not doing what it's supposed to to.

Also, Is there any way to stop that IE Information Bar warning? Specially if I'm running this on a local computer.

Thanks,

This message has been edited. Last edited by: Francis Mariani,


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
August 20, 2012, 01:02 PM
Norb Eckert
Francis,

I copied/pasted your code and got an XLS output file directly. Not sure what the problem is on your end.

I've seen the IE information bar warning fixed in the following two ways.

Try adding your site (local computer, internal server etc.) to the Local Intranet zone on IE.
1) From the Tools drop-down menu select Internet Options.
2) Select the Security tab.
3) Select the Local Intranet from the zones.
4) Click the Sites button.
5) Click the Advanced button and add your site to the list.

OR

Turning off the pop-up blocker in IE from the Tools menu.

Hope this helps,

Norb


prod:7.6.9, win2k3 mre, caster, bid, devstudio 7.6.9
August 20, 2012, 01:54 PM
Francis Mariani
Norb,

Thanks for the tip on IE - your suggestion worked.

I have Office 2010 and that's maybe why I get an xmh file and a pop-up message. Then when I try opening the file I get another pop-up with "The file you are trying to open is in a different format than specified by the file extension".


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
August 20, 2012, 02:18 PM
Prarie
quote:
The file you are trying to open is in a different format than specified by the file extension".



Oh wouldn't I love to get rid of the message.
August 20, 2012, 02:32 PM
Norb Eckert
Check out this document. Although it is for an earlier version of WebFOCUS, it may point you in the right direction.

WebFOCUS client administration

Check out the link for "Microsoft Excel Report Considerations" under "Changing Redirection Settings".


prod:7.6.9, win2k3 mre, caster, bid, devstudio 7.6.9
August 20, 2012, 03:44 PM
Francis Mariani
Norb, I tried this and it unfortunately doesn't work.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
August 21, 2012, 07:40 AM
JRLewis
You can get rid of the popup message for Excel 2010 by making a registry entry. This Microsoft article explains this for Excel 2007, but the fix is pretty much the same for 2010:

http://blogs.msdn.com/b/vsoffi...tension-warning.aspx

The only difference is the key you need to change - for Excel 2010, add the new DWORD value to the HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Excel\Security key.


WebFOCUS 8
August 21, 2012, 08:43 AM
jgelona
quote:
"The file you are trying to open is in a different format than specified by the file extension".


This is just another in the long list of things MS has done to try and make Office 2010 more secure. Even though the file comes down with a .xls extension, Excel 2010 is warning you that the file is not really a .xls file.

The fix JR describes basically turns off the warning mechanism.

We (OKDHS) implemented this state wide a few months ago.

You may also want to check out the setting in Excel under Options/Trust Center/Trust Center Settings.

This message has been edited. Last edited by: jgelona,


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
August 21, 2012, 10:57 AM
J
Whenever possible, I like to use the EXL07 format so that this message does not appear. However, the EXL07 in 7703 has some limitations.


WebFOCUS 7.7.03/8.0.08
Dev Studio 7.7.03/8.0.08
App Studio 8.0.08
Windows 7
ALL Outputs
August 21, 2012, 11:49 AM
Francis Mariani
You do realize that "some" actually means "quite a few"?

[EXPLAINED] EXL2K vs EXL07 performance


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
August 21, 2012, 11:58 AM
J
Setting webarchive=off does work for me, it changes form xmh to xht. However, the file extension warning still appears of course and when the user goes to save the file (if they choose to open rather than save in the first place) it still tries to save the file as a web document.


WebFOCUS 7.7.03/8.0.08
Dev Studio 7.7.03/8.0.08
App Studio 8.0.08
Windows 7
ALL Outputs
August 21, 2012, 12:18 PM
Francis Mariani
I think this depends on the web brower. In Firefox, I have set the Content Type of Excel to "Use Microsoft Execl". I get one pop-up, "What should Firefox do with this file?" (even though I set "Do this automatically..."), I click OK and it opens in Execl 2010 without other messages.

I'm happy with this, so thanks very much everyone.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server