Skip to main content
Gabriel Teles 님이 #Visualforce에 질문했습니다
RenderAsPdf dont works fine, when have many related recordsHi everyone,

I wrote a Visualforce and she's breaking when rendering the same as pdf (renderas = "pdf") and the the last result for the Visualforce has many records, unlike when the result of the query returns few results it works well, without breaking content.

<apex:page controller="LookupController" tabStyle="CustomObj__c" recordSetVar="{!cds}"renderAs="pdf"

showHeader="false" sidebar="false" standardStylesheets="false" applyBodyTag="false"

applyHtmlTag="false">

<apex:form >

<apex:pageBlock >

<apex:pageBlockTable value="{!cds}" var="version">

<apex:column >

<apex:outputText value="{!version.Name}"/>

<apex:outputText value="{!version.Description__c}" escape="false"/>/**rich text field with images into content*/

</apex:column>

<apex:facet name="header">

<apex:outputPanel >

<apex:outputtext value="{!version.Name} "/>

</apex:outputPanel>

</apex:facet>

</apex:pageBlockTable>

</apex:pageBlock>

</apex:form>

</apex:page>

Thanks.
답변 3개
  1. 2015년 11월 5일 오후 6:30
    I'm solvi this just change <apex:pageBlockTable> to <apex:repeat> like this:

     

    <apex:page controller="LookupController" tabStyle="CustomObj__c" recordSetVar="{!cds}"renderAs="pdf"

    showHeader="false" sidebar="false" standardStylesheets="false" applyBodyTag="false"

    applyHtmlTag="false">

    <apex:form >

    <apex:pageBlock >

    <apex:repeat value="{!cds}" var="version">

    <apex:outputText value="{!version.Name}"/>

    <apex:outputText value="{!version.Description__c}" escape="false"/>

    </apex:repeat>

    </apex:pageBlock>

    </apex:form>

    </apex:page>

    And... DONE

    ;D

     

    Thanks everybody @pcon and @Manoj .

0/9000