Skip to main content
Tobias Hagge 님이 #Visualforce에 질문했습니다
Based on https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_styling_content_type.htm MIME attributes are supported in Visualforce pages. However there are a few that you definitely can't generate. Having problems especially with Microsoft Office - OOXML - Spreadsheetapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheet.xlsx

Is there a complete list of supported ContentTypes available somewhere? Or would someone even know how to make .xlsx work?

Thanks in advance!
답변 1개
  1. 2016년 8월 25일 오전 5:36
    Hi Tobiashagge,

    To know about the list of supported ContentTypes available, please refer below link.

    https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_page.htm

     

    I think .xlsx will work if cache = true in visual force page like below.

     

    <apex:page standardController="Account" contentType="application/vnd.ms-excel" cache="true">

    Please refer below links for more information.

    http://blog.shivanathd.com/2013/03/visualforce-to-excel.html

     

    http://salesforce.stackexchange.com/questions/55958/when-i-change-a-visualforce-page-contenttype-can-i-somehow-give-it-a-file-exten

     

    Hope this helps you!

    Please accept my solution as Best Answer if my reply was helpful. It will make it available for other as the proper solution. If you felt I went above and beyond, you can give me kudos.

     

    Thanks and Regards

    Sandhya

     
0/9000