正在此錯誤,同時使用DOMPDFLaravel DOMPDF錯誤未找到行
The row #2 could not be found, please file an issue in the tracker wit
我可以在我看來page.But PDF查看輸出HTML生成PDF格式不產生正在逐漸上述error.I有兩個數組用於表格標題和結果。我的代碼如下:
我的代碼:
<table width="100%" class="fullwidth border">
<thead>
<tr>
<th width="10%"></th>
<th width="10%"></th>
@foreach($selected_fields_top as $key => $value)
<th>{{ $value }}</th>
@endforeach
</tr>
</thead>
<tbody>
<table >
<tbody>
@foreach($selected_fields_left as $key => $value)
<tr><td><b>{{ $value }}</b></td>
<!-- <td> -->
@foreach($resultListLeft as $left_key => $valueArr)
@foreach($valueArr as $k => $v)
@if($v)
<table>
<tbody>
<!-- <tr> -->
@if($valueArr[$value])
<td width="10%">{{$valueArr[$value]}}</td>
@else
<td width="10%">Data not available</td>
@endif
@foreach($resultListTop as $key => $TopvalueArr)
@if($key==$left_key)
@foreach($TopvalueArr as $top_key => $top_value)
@if($top_value)
<td width="10%">{{$top_value}}</td>
@else
<td width="10%">Data not available</td>
@endif
@endforeach
@endif
@endforeach
<!-- </tr> -->
</tbody>
</table>
@endif
@endforeach
@endforeach
<!-- </td> -->
@endforeach
</tr>
</tbody>
</table>
我想打印輸出,如: -
Top heading1 Topheading2
Left heading 1 Left value Top value Top value
Left value Top value Top value
Left value Top value Top value
etc... etc... etc...
Left heading 2 Left value Top value Top value
Left value Top value Top value
Left value Top value Top value
etc... etc... etc...
請分享您的源代碼。 –
我可以得到這個..的任何幫助嗎? – Stackvis
在視圖中能夠看到一個表中的頁面,但同時生成PDF td,tr breaks.Not採取我已經在HTML頁面給出的全寬。是否有任何想法分享請幫助..謝謝 – Stackvis