- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
尊敬的 CSS/Salesforce 专家,
我正在寻找一种解决方案,一旦应用分页符,就需要在所有页面上(作为标题)打印从许多表派生的标题。除了第一页之外,我无法打印标题。此外,我还需要确保数据表值不会拆分为不同的页面。请帮助我。
请看下面我的代码
请帮我抢先一步!!!
<table style="border-collapse: collapse;-fs-table-paginate: paginate;" width="100%">
<thead>
<tr>
<th style="border-left: 1px solid #000000;font-size:9px;">{!mapQuotationVariables[iSerial_No].Arabic__c}
<br/>{!mapQuotationVariables[iSerial_No].English__c}</th>
<th style="font-size:9px;">{!mapQuotationVariables[iItem_Code_Desc].Arabic__c}
<br/>{!mapQuotationVariables[iItem_Code_Desc].English__c}</th>
<th style="font-size:9px;">{!mapQuotationVariables[iQuantity].Arabic__c}
<br/>{!mapQuotationVariables[iQuantity].English__c}</th>
<th style="font-size:9px;">{!mapQuotationVariables[iUnit].Arabic__c}
<br/>{!mapQuotationVariables[iUnit].English__c}</th>
<th style="font-size:9px;">{!mapQuotationVariables[iUnit_Price].Arabic__c}
<br/>{!mapQuotationVariables[iUnit_Price].English__c}</th>
<apex:outputPanel rendered="{!IsCustomerQuote}">
<th>{!mapQuotationVariables[iDiscount].Arabic__c}
<br/>{!mapQuotationVariables[iDiscount].English__c}</th>
</apex:outputPanel>
<th style="border-right: 1px solid #000000;">{!mapQuotationVariables[iItem_total].Arabic__c}
<br/>{!mapQuotationVariables[iItem_total].English__c}</th>
</tr>
</thead>
<tbody>
<apex:variable var="sr" value="{!1}" />
<apex:repeat value="{!lstQuoteLineItem}" var="qLine">
<tr>
<td style="border-style: solid;vertical-align: top;">{!sr}</td>
<td style="border-style: solid;">
<table width="100%" style="border-collapse: collapse;font-size: 8px;">
<tr style="height:4px;">
<td width="33%" style="text-align:left;padding:0px;">
{!qLine.PricebookEntry.Product2.ProductCode}
</td>
<td width="33%" style="text-align:right;padding:0px;">
{!qLine.PricebookEntry.Product2.Manufacturer__r.Name}
</td>
<td width="33%" style="text-align:right;padding:0px;">
{!qLine.PricebookEntry.Product2.Manufacturer__r.Country__c}
</td>
</tr>
<tr width="100%" style="height:3px;">
<td colspan="3" style="text-align:left;padding:2px;">
{!qLine.PricebookEntry.Product2.Name}
</td>
</tr>
<tr width="100%" style="height:3px;">
<td colspan="3" style="text-align:left;padding:2px;">
{!qLine.PricebookEntry.Product2.Arabic_Product_Name__c}
</td>
</tr>
<tr width="100%" style="height:3px;">
<td colspan="3" style="text-align:left;padding:2px;">
<apex:outputText value="{!qLine.PricebookEntry.Product2.Product_Description_Split__c}" escape="false" />
<!--<output><apex:outputText value="{!qLine.PricebookEntry.Product2.Product_Description_Split__c}"/></output>-->
</td>
</tr>
</table>
</td>
<td style="border-style: solid;vertical-align: top;">
<apex:outputText value="{0, number,###,##0}">
<apex:param value="{!qLine.Quantity}" />
</apex:outputText>
</td>
<td style="border-style: solid;vertical-align: top;">{!qLine.PricebookEntry.Product2.Unit__c}</td>
<td style="border-style: solid;vertical-align: top;">
{!Quote.CurrencyISOCode}
<apex:outputText value="{0, number,###,##0}" rendered="{!!IsCustomerQuote}">
<apex:param value="{!qLine.Customer_List_Price__c}" />
</apex:outputText>
<apex:outputText value="{0, number,###,##0}" rendered="{!IsCustomerQuote}">
<apex:param value="{!qLine.Customer_List_Price__c}" />
</apex:outputText>
</td>
<apex:outputPanel rendered="{!IsCustomerQuote}">
<td style="border-style: solid;vertical-align: top;">
{!Quote.CurrencyISOCode}
<apex:outputText value="{0, number,###,##0}" rendered="{!IsCustomerQuote}">
<apex:param value="{!qLine.Customer_Discount_Amount__c}" />
</apex:outputText>
</td>
</apex:outputPanel>
<td style="border-style: solid;vertical-align: top;">
{!Quote.CurrencyISOCode}
<apex:outputText value="{0, number,###,##0}" rendered="{!!IsCustomerQuote}">
<apex:param value="{!qLine.Customer_List_Price_Total__c}" />
</apex:outputText>
<apex:outputText value="{0, number,###,##0}" rendered="{!IsCustomerQuote}">
<apex:param value="{!qLine.Customer_List_Price_Total__c - qLine.Customer_Discount_Amount__c}" />
</apex:outputText>
</td>
<apex:variable var="sr" value="{!sr + 1}" />
<div style="page-break-before:always;" />
</tr>
</apex:repeat>
</tbody>
</table>
谢谢,
拉惹
最佳答案
@media print { table {page-break-inside: avoid;} }
添加上述 css 样式以避免数据单元格在页面末尾被拆分。
table {-fs-table-paginate: paginate;}
添加上述 css 样式以在每个页面上重复标题。
关于css - 在视觉力页面中重复标题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27793944/
我正在尝试编写一个程序,以表格的形式计算我的结果。我有一个液压升降机,可以显示作用在直径 (D1) 的活塞上的小力(我称之为 F1)可以乘以作用在直径 (D2) 的活塞上的大力 (F2) ,电梯的运行
我有一个 fiddle :https://jsfiddle.net/mvLf579a/284/ 此 fiddle 允许您使用 D3 径向布局来布置力网络,并将布局重置为默认力布局。但是,重置时链接强度
我想实现表格 View 单元格重叠,因为我想实现这种效果: 所以基本上细胞会一个接一个地堆叠。我的目标是 iOS7+(目前正在测试 iOS8)。 我目前正在做一个 CAGradientLayer,它被
尽管在 box2d 前花了几个小时,但我仍然不明白 applyforce 和 applyimpulse 是如何工作的。我尝试使用一些视觉效果来更好地理解正在发生的事情(通过在 body 位置和应用点之
首先,我是 D3 的新手。我正在尝试使用这些示例在单个 D3 图中实现不同的行为: Drag + Zoom 力导向图 但我的图表在几秒钟后卡住,我不明白为什么... 这是我的代码:http://jsf
所以,我在 Xcode 上用 Swift 玩了这个游戏,我有一个跳跃的 SKShapeNode。不过,我希望这种跳跃与玩家的触感相称。因此,小水龙头会跳得小,而轻快的水龙头会跳得更高。怎么可能做到这一
在 ARKit/SceneKit 中,当用户点击按钮时,我想对我的节点施加一个脉冲。我希望冲动来自当前用户的角度。这意味着节点将远离用户的视角。多亏了这段代码,我能够获得当前的方向/方向: func
我正在使用 Angular2 并拥有父子组件。我的子组件正在使用 DatePipe 提供程序,因为父单元测试失败并给出以下错误, 错误:非法状态:无法加载管道 DatePipe 的摘要。 如何解决这个
我是一名优秀的程序员,十分优秀!