I believe I am following the correct pattern for exporting Visualforce to Excel on Mac
<apex:page controller="AccountReportConfiguratorController"
contentType="application/vnd.ms-excel#Report.xls"
standardstylesheets="false"
language="en-US"
showHeader="false"
readOnly="true"
cache="true"
>
<apex:dataTable value="{! FilteredAccounts }" var="a">
<apex:facet name="header">{!DisplayReportName}</apex:facet>
<apex:column><apex:outputField value="{! a.DRC_RecordOrder__c }"/> </apex:column>
<apex:column>
<apex:facet name="header">Deal Name</apex:facet>
<apex:outputField value="{! a.DRC_Account__r.Name }"/>
</apex:column>
On Windows it works fine on Mac it's missing the first row and outputting JavaScript like this
if(!window.sfdcPage) { window.sfdcPage = new ApexDetailPage();
I'm using dataTable instead of page block and have developer tools turned off.
Any advice?
Thanks
sidebar
attribute of the page tag tofalse
? Or checking your output for discrepancies between Windows & OS X newline characters? en.wikipedia.org/wiki/Newline