You need to sign in to do that
Don't have an account?
lnryan
Message Edited by lnryan on 05-22-2008 02:08 PM
Visualforce to PDF
We have a sandbox that's been updated to the Summer '08 pre-release.
I created a very basic Visualforce to show my colleague the up-coming PDF functionality I saw demo-ed at Dreamforce, but couldn't figure out how to get the convert to PDF button to display. help?
[Update] __________
so, i found it in the component reference information for apex:page, but now when i try to test it out, I get an internal server error. Here's my code:
Code:
<apex:page standardController="Account" renderAs="pdf"> <apex:detail subject="{!Account.id}"/> </apex:page>
Message Edited by lnryan on 05-22-2008 02:08 PM
Do you have an error id from the page you can post here to allow us to find the underlying error report?
Message Edited by dchasman on 05-22-2008 06:18 PM
all i got was teh slate grey error page with the following text
Visualforce Error
An internal server error has occurred
Message Edited by lnryan on 05-22-2008 04:09 PM
Now I get:
Thank you again for your patience and assistance. And thanks for using Salesforce!
Error ID: 23645304-4
oh...here's the page URL if it affects anything
Message Edited by lnryan on 05-22-2008 04:53 PM
Message Edited by lnryan on 05-22-2008 04:53 PM
Message Edited by dchasman on 05-22-2008 08:48 PM
In general the expected use for pdf generation is not to take a screen shot of online pages but is expected to be applied to pages that have been specifically designed to generate things like invoices, contact lists, etc in PDF form.
Regards
It is possible to iterate over related records without writing a query for use in PDF generation as demonstrated in this example:
http://wiki.apexdevnet.com/index.php/Visualforce_Quote2PDF
There are also some advanced formatting techniques for PDF included in this example:
http://wiki.apexdevnet.com/index.php/Visualforce_CaseHistoryTimeline
Share and enjoy!