function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
marcobmarcob 

old problem with rendering VF page as Excel returned suddenly in all our pages

Hi,

since a few weeks, we have a problem when we render a VF page as Excel. This code appears in the first cel in the Excel file:

 

function twistSection(twisty, sectionId) { var parentDiv = twisty; while (parentDiv.tagName != 'DIV') { parentDiv = parentDiv.parentNode; } var div = parentDiv.nextSibling; var elemWasOn = false; if (div.style.display != 'none') { div.style.display = 'none'; twisty.className ='showListButton'; ................

 

When using Excel for the Mac, it adds even extra code:

if(!window.sfdcPage){window.sfdcPage = new ApexPage();} UserContext.initialize({"networkId":"","locale":"nl_NL","labelLastModified":"1356556072000","isDefaultNetwork":true,"today":"4-1-2013 12:28","timeFormat":"H:mm","userPreferences":[{"index":112,"name":"HideInlineEditSplash","value":false},.....................

 

We used to have this problem 2 years ago, but we solved it, see this post:

http://boards.developerforce.com/t5/Visualforce-Development/How-to-export-the-reports-into-excel/m-p/546005#M58471

 

Now the problem suddenly returned, and we have no clue what causes it. And it is not only on 1 page, all our pages that are rendered as Excel (about 10 of them) have the exact same problem.

 

Anybody?