在Maatwebsite Excel出口中形成视图

发布于 2025-01-29 00:24:35 字数 977 浏览 6 评论 0原文

我是Maatwebsite Excel Export的新手,我正在使用Laravel中的查看Excel导出,并想知道如何指定数据应该像H1标签一样的单元格数,例如SIPPET下方

<h5>PURCHASE ORDER</h5>



<hr>
<div class="container-flow">
<table id="table" class="table table-hover table-bordered table-sm text-center">
<thead>
<tr>
<th  scope="col">No.</th>
<th  scope="col">Product_Code</th>
<th  scope="col"> Item_Description </th>
<th scope="col">Qty</th>
<th scope="col">Unit Price</th>
<th scope="col" >Value</th>
<th scope="col">Stock Less 90 Days</th>
<th scope="col">Stock More 90 Days</th>

当我出口时,我明白了

我想指定该标签应该像小区B3而不是当前位置单元格A1一样的单元格

I am new to maatwebsite Excel Export i am using view Excel Export in laravel and would like to know how one can specify the cell number where the data should go like a h1 tag like below snippet

<h5>PURCHASE ORDER</h5>



<hr>
<div class="container-flow">
<table id="table" class="table table-hover table-bordered table-sm text-center">
<thead>
<tr>
<th  scope="col">No.</th>
<th  scope="col">Product_Code</th>
<th  scope="col"> Item_Description </th>
<th scope="col">Qty</th>
<th scope="col">Unit Price</th>
<th scope="col" >Value</th>
<th scope="col">Stock Less 90 Days</th>
<th scope="col">Stock More 90 Days</th>

when i export i get this
enter image description here

i would like to specify the cell where that tag should go like say cell B3 instead of current position cell A1

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

黎歌 2025-02-05 00:24:35

您可以在以前放一些空的标签 /单元格。
尝试

   <table>
     <tr></tr>
     <tr></tr>
     <tr>
       <td></td>
       <td></td>
       <td><h5>PURCHASE ORDER</h5></td>
    </tr>
   </table>

<hr>
<div class="container-flow">
<table id="table" class="table table-hover table-bordered table-sm text-center">
<thead>
<tr>
<th  scope="col">No.</th>
<th  scope="col">Product_Code</th>
<th  scope="col"> Item_Description </th>
<th scope="col">Qty</th>
<th scope="col">Unit Price</th>
<th scope="col" >Value</th>
<th scope="col">Stock Less 90 Days</th>
<th scope="col">Stock More 90 Days</th>

You can put some empty tags / cells before.
Try

   <table>
     <tr></tr>
     <tr></tr>
     <tr>
       <td></td>
       <td></td>
       <td><h5>PURCHASE ORDER</h5></td>
    </tr>
   </table>

<hr>
<div class="container-flow">
<table id="table" class="table table-hover table-bordered table-sm text-center">
<thead>
<tr>
<th  scope="col">No.</th>
<th  scope="col">Product_Code</th>
<th  scope="col"> Item_Description </th>
<th scope="col">Qty</th>
<th scope="col">Unit Price</th>
<th scope="col" >Value</th>
<th scope="col">Stock Less 90 Days</th>
<th scope="col">Stock More 90 Days</th>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文