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 ...
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#...
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 ...
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", ...
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 ...
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(), ...
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 ...
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>
...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
ms-word × 21visualforce × 18
apex × 5
css × 4
html × 4
pdf × 3
images × 2
renderas × 2
contenttype × 2
lightning-aura-components × 1
javascript × 1
email × 1
api × 1
managed-package × 1
visualforce-component × 1
attachment × 1
custom × 1
contentdocument × 1
content × 1
document × 1
blob × 1
merge-field × 1
text × 1
mail-merge × 1