You need to sign in to do that
Don't have an account?
Amit Bangad
Email Attachment (VF Template) rendered as PDF border Issues
Hi All,
I have been fighting this problem from the past 8 hours now :( .I have created an Email Template(Visualforce) and generated an email attachment PDF using an apex:component something like :
SO you can see both body and attachment are same for testing purpose, my plan is to clear the body later.
In the component I have applied style for a table and its <tr> like :
Issue is : when I send I preview it, in the browser preview the borders appear just fine but in the PDF ands email body that comes to me, the borders just wipe out.
When I remove border-collapse:collapse; table borders are restored but the tr borders still dont appear.
I found couple of post to include style tag in head tag. I tried all but in vain !!
What is that I am missing here?
thanks,
Amit
I have been fighting this problem from the past 8 hours now :( .I have created an Email Template(Visualforce) and generated an email attachment PDF using an apex:component something like :
<messaging:emailTemplate subject="Invoice {!relatedTo.Inv__c}" recipientType="Contact" relatedToType="kognoz1__Invoice2__c" replyTo="noreply@abc.com"> <messaging:htmlEmailBody > <html> <body> <c:StandardInvoiceTemplate/> </body> <BR/><BR/> </html> </messaging:htmlEmailBody> <messaging:attachment renderAs="PDF" filename="Invoice {!relatedTo.Inv__c}"> <c:StandardInvoiceTemplate/> </messaging:attachment> <messaging:plainTextEmailBody > </messaging:plainTextEmailBody> </messaging:emailTemplate>
SO you can see both body and attachment are same for testing purpose, my plan is to clear the body later.
In the component I have applied style for a table and its <tr> like :
.pageBlockCss { border-collapse:collapse; border-width: 1px; border-color: black; border-style:solid; } .pageBlockCss tr{ border-width: 1px; border-color: black; border-style:solid; }
Issue is : when I send I preview it, in the browser preview the borders appear just fine but in the PDF ands email body that comes to me, the borders just wipe out.
When I remove border-collapse:collapse; table borders are restored but the tr borders still dont appear.
I found couple of post to include style tag in head tag. I tried all but in vain !!
What is that I am missing here?
thanks,
Amit
Hope this helps!
Prady