You need to sign in to do that
Don't have an account?
Akash
PDF in visualforce
I have developed two pages in visual force and passing one page values to next page which is rendered as PDF. The values from first page are not being displayed on the PDF but when I remove the <renderAs="pdf"> tag my values are correctly displayed in HTML form.
Can you please help me know why my values are not being displayed in PDF?
Thanks
Page 1
Page 2:
Message Edited by Jon Mountjoy_ on 07-28-2008 12:48 AM
if so, you may be clearing the value that you want to keep.
{
periodending = System.currentPageReference().getParameters().get('periodending');
p = Page.PSR;
return p;
}
<apex:page controller="MyController" renderas="pdf" showHeader="true" tabStyle="account" sidebar="false" >
<apex:form>
<apex:pageBlock title="Project Status Report">
<table>
<tr>
<td>
<apex:outputLabel value="Period Ending:"></apex:outputLabel>
<apex:outputLabel value="{!periodending}"></apex:outputLabel>
</td>
</tr>
</table>
</apex:pageBlock>
</apex:form>
</apex:page>
Here I am not using any input component on the second page.
Thanks
Hi !!
Thanks for the reply. I used outputText instead of OutputLabel still it didnt work.
some more help required please.
Thanks
VF TestPage1
VF TestPage2
Controller: test
GM
GM
I am having a similar problem, can anybody help please?
Thank you,
The issue appears to be that values in the controller viewstate are not delivered to the PDF render process, however, values in the page parameters are.
Here is my version, no change here:
This page uses parameters instead of a getter:
The resulting PDF page does have the content from the first page.
Hope this workaround will allow you to build your pages.
Please let me know.
Thanks
http://wiki.apexdevnet.com/index.php/Visualforce_CaseHistoryTimeline
change the renderas="html" to "pdf" and the css should be applied