You need to sign in to do that
Don't have an account?
Nihar Sharma
How to insert visualforce pdf page to quote document ?
Hey folks,
I am generating pdf using visualforce page which is renderAs = 'PDF' and i have conditional pageblocktable are available in this pdf.
How can i insert this visualforce pdf in quote document ? However, i tried the following code but i am not able to save it conditional base.
Can anyone please help me out !!
I am generating pdf using visualforce page which is renderAs = 'PDF' and i have conditional pageblocktable are available in this pdf.
How can i insert this visualforce pdf in quote document ? However, i tried the following code but i am not able to save it conditional base.
public PageReference SaveQuoteDocument() { PageReference thePDF = Page.PDFrecordPage; thePDF.getParameters().put('id',(String)this.Quote.Id); thePDF.setRedirect(true); if(!test.isrunningtest()){ quotedocument qd = new quotedocument(); qd.document = thePDF.getContentasPDF(); qd.quoteId = this.Quote.Id; insert qd; } PageReference quotePage = new PageReference('/apex/DetailPage?id='+ this.Quote.Id); quotePage.setRedirect(true); return quotePage; }
Can anyone please help me out !!
first I want to see your visualforce page and Let me tell you pageblocktable will not work when you renderas='pdf' so in these conditions you have to use html tags <table>
see this link will help you.
https://salesforce.stackexchange.com/questions/123441/pageblocktable-to-be-rendered-as-table-in-pdf
Thank you
Avaneesh Singh
Thanks for reply, please see below visualforce code which is rendered conditional.
I did not used pageblocktable in my pdf