function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Romeo Ngo 1Romeo Ngo 1 

Visualforce Page Render as PDF/msWord - Table tag is beyond the page width

We have a visualforce page that generate PDF and msWord which include a table with width=100%.  It has been working great and haven't been modified in the last couple of month.

We started to see this issue where the table tag generate a width that is beyond the PDF and msWord page width after 2015 Latest release.

The part that generate the code is below.  so I wonder if this is a bug for 2015 or what's changed in 2015 latest release that could of cause this.  Are there anyone else having the same issue?
<apex:outputPanel layout="block"  style="width:100%; border:solid 1px black;  text-align:left;float:left;" rendered="{!IssueTasks != null && IssueTasks.size > 0}">
        <p><b>{!SectionNames['ita']}</b></p>
        <table class="issueTaskDetail" width="100%">
            <tr>
                <th align="center" width="150px">Issue</th>
                <th align="center">Subject</th>
                <th align="center" width="100px">Date</th>
            </tr>
            <apex:repeat value="{!IssueTasks}" var="rec">
                <tr>
                    <td class="{!IF(rec.ShowDetailInProfile__c, 'hasDetail', '')}"><apex:outputText value="{!rec.What.Name}" /></td>
                    <td class="{!IF(rec.ShowDetailInProfile__c, 'hasDetail showBorder', '')}"><apex:outputText value="{!rec.Subject}" /></td>
                    <td class="{!IF(rec.ShowDetailInProfile__c, 'hasDetail', '')}" align="right"><apex:outputText value="{0,date,M/dd/yyyy}"><apex:param value="{!rec.ActualActivityDate__c}"/></apex:outputText></td>
                </tr>
                <apex:actionRegion rendered="{!rec.ShowDetailInProfile__c}">
                    <tr>
                        <td class="detail">&nbsp;</td>
                        <td class="detail" colspan="2"><apex:outputText value="{!rec.Description}"></apex:outputText>   </td>
                    </tr>
                </apex:actionRegion>
            </apex:repeat>
            <tr>
                <td colspan="3" class="footer"></td>
            </tr>
        </table>    
    </apex:outputPanel>

 
ShashankShashank (Salesforce Developers) 
Would you be able to check if this is a browser related issue? Please test it out on Chrome, Firefox and IE and let me know the results.
Romeo Ngo 1Romeo Ngo 1
Thank for the follow up Shashank.

It seems Salesforce fixed the issue.