Skip to main content
4 votes
Accepted

Visualforce as msword: special characters aren't visualized correctly

I found the solution: Adding this did the trick: <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> </head> Apparently adding the ...
joacoiudica's user avatar
4 votes

How to read text content of MS Word files in Salesforce?

In Apex, it's not a trivial thing to read .doc files. I use javascript libraries to do it. Here is one of the tools that I use: https://docxtemplater.readthedocs.io/en/latest/installation.html#...
PartOfTheOhana's user avatar
3 votes
Accepted

How to put footer only from the second page of vfs?

Good people, I got it. I will share the solution that worked for me. I'm developing using a visualforce page but the code can be adapted to html or etc. Set mso-title-page:yes; The leap of the cat is ...
Souza's user avatar
  • 305
1 vote

Visualforce render as Word with Image embedded

I've not seen any functionality for rendering Visualforce pages as a .doc, but Salesforce provides some guidance here. You must use contentType="application/msword#filename.doc", applyHtmlTag="false", ...
Dan Wareing's user avatar
1 vote

Visualforce Page - Word Document (.doc/.docx) - open through mobile phone (ios/android)

Salesforce does not support generating native .doc files or .docx files. As per Salesforce documentation the visualforce page implementation is just an workaround. Visualforce pages can generate HTML ...
Saroj Bera's user avatar
  • 14.8k
1 vote
Accepted

Apex: From Word Document get content and save as PDF

There's no way to escape the limitations of the system PDF renderer while you are operating on-platform. There's only one PDF renderer, whether you use render_as="pdf" or getContentAsPDF(), ...
David Reed's user avatar
  • 93.4k
1 vote

How to set Header and Footer in Word document from VF page

This is MS Doc specific so you need to have Visualforce spit out tags that will play nice with it. Essentially there are certain Microsoft Office style attributes only supported by Microsoft Word that ...
nbrown's user avatar
  • 4,073
1 vote
Accepted

How to put text over the image in visualforce (contentType="application/msword")

Two different approaches may work. There's a background attribute for <table> which is deprecated but Office may respect it: <table background="{!DocumentCapa}"> <tr> ...
nbrown's user avatar
  • 4,073
1 vote
Accepted

The footer and the header kept repeating themselves in the body (contentType="application/msword")

The table+id='hrdftrtbl' tag makes the header/footer not repeat at the end of the doc <table id="hrdftrtbl"><!--The table+id='hrdftrtbl' tag makes the header/footer not repeat at ...
Souza's user avatar
  • 305

Only top scored, non community-wiki answers of a minimum length are eligible