You need to sign in to do that
Don't have an account?
Akshay Shrivastava
how to convert vf page into .docx format
Here is my vf page I want to convert this in the .docx format.
Right now its opening in .doc file which is not opening in mobile.
I want to open this file into Mobile. Can anyone help?
apex:page showHeader="false"
lightningStyleSheets="true"
controller="FridayReportController"
applyHtmlTag="false" applyBodyTag="false"
contentType="application/msword#ManagerReport_{!todaydate}.doc"
>
<apex:slds />
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
</head>
<table style="width: 100%;" border="1" >
<tbody>
<tr>
<td style="background-color:#014486;color:white;font-family:Calibri">Event Date:<span style="font-weight:700"> </span></td>
<td style="background-color:#FFBA0D;font-family:Calibri">Booking Id:<span style="font-weight:700"> {</span></td>
<td style="background-color:#014486; color:white;font-family:Calibri">Start Time:<span style="font-weight:700"> for mins</span></td>
</tr>
</tbody>
</table>
Right now its opening in .doc file which is not opening in mobile.
I want to open this file into Mobile. Can anyone help?
apex:page showHeader="false"
lightningStyleSheets="true"
controller="FridayReportController"
applyHtmlTag="false" applyBodyTag="false"
contentType="application/msword#ManagerReport_{!todaydate}.doc"
>
<apex:slds />
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
</head>
<table style="width: 100%;" border="1" >
<tbody>
<tr>
<td style="background-color:#014486;color:white;font-family:Calibri">Event Date:<span style="font-weight:700"> </span></td>
<td style="background-color:#FFBA0D;font-family:Calibri">Booking Id:<span style="font-weight:700"> {</span></td>
<td style="background-color:#014486; color:white;font-family:Calibri">Start Time:<span style="font-weight:700"> for mins</span></td>
</tr>
</tbody>
</table>
Based on https://dfc-org-production.force.com/forums/ForumsMain?id=9060G000000XerpQAC looks like it isn't supported.
Related Idea: https://ideas.salesforce.com/s/idea/a0B8W00000GdguCUAR/improve-pdf-rendition-generated-for-docx-files
Hope this helps. Thank you