You need to sign in to do that
Don't have an account?
GABRIELLA FARIAS MENDES
Format Visual Force which generate a .doc document.
Good afternoon. I have this Visual Force which generate a .doc document. This document is not aligned properly.
How can I create a TAG or a parameter to format all the document as "center" or "justify".
<apex:page StandardController="PropostaCredito__c" extensions="CPRController" cache="true" contentType="application/msWord#msword.doc"> <!--<apex:page StandardController="PropostaCredito__c" extensions="CPRController" cache="true">--> <html xmlns:w="urn:schemas-microsoft-com:office:word"> <body> <apex:outputText value="{!documento}" escape="false"></apex:outputText> </body> </html> </apex:page>
How can I create a TAG or a parameter to format all the document as "center" or "justify".
<apex:page StandardController="PropostaCredito__c" extensions="CPRController" cache="true" contentType="application/msWord#msword.doc"> <!--<apex:page StandardController="PropostaCredito__c" extensions="CPRController" cache="true">--> <html xmlns:w="urn:schemas-microsoft-com:office:word"> <body> <apex:outputText value="{!documento}" escape="false"></apex:outputText> </body> </html> </apex:page>
http://www.antennahouse.com/CSSInfo/CSS-Page-Tutorial-en.pdf
Setting the content type to msword.doc will generate the document but it will not be able to maintain the CSS and alignments. You will have to use other 3rd party apps which generate docs based on salesforce data. I have some examples like conga composer, Dynamo.
Thanks