简体   繁体   English

使用 BIXOLON SRP-350II 打印机进行 CSS 分页

[英]CSS page-break with BIXOLON SRP-350II printer

I want to print a document.我想打印一份文件。 This document is a bill from my web-based application for a restaurant.这份文件是我的一家餐馆的基于 Web 的应用程序的账单。 This document has two versions.本文档有两个版本。

I use page-break for printing this document.我使用分页符来打印此文档。 I want to print it on two split pages.我想在两个拆分页上打印它。 This printer has a cutter.这台打印机有一个切刀。 But it prints my whole document just in one page.但它仅在一页中打印了我的整个文档。

I want print versions of this bill in two pages with cutter between them.我想要这份账单的打印版本,分两页,中间夹着切刀。

if i really understand what you mean you can use some DIV tags to solve your problem 如果我真的了解您的意思,可以使用一些DIV标签解决您的问题
and this is a example of how you can use it: 这是如何使用它的示例:

<html>
  <body>

   <!--
     ...
     Here Some Elements for first bill page
     ...
   -->

   <div class="pageBreak"></div>

   <!--
     ...
     And Here Some Elements for next bill page
     ...
   -->

  </body>
</html>

and Defining what .pageBreak really is: 并定义真正的.pageBreak是:

@media all
{
     .pageBreak { display: none; }
}

@media print
{
     .pageBreak {
          display: block;
          page-break-before: always;

          /* ----- and add more propertys to Cutter Styling -------- */
     }
}

Good Luck Friend ;) 祝你好运朋友;)

Make two separated iframes. 制作两个分开的iframe。 Then use javascript to print them separately. 然后使用javascript分别打印它们。

iframe1.print();
iframe2.print();

you can -enter the printer properties -click on printing defaults 您可以-输入打印机属性-单击默认打印
-choose tap document settings - on paper cut section select the option " Page / Job :Partial Cut / Partial Cut " these mainly on windows i haven't seen it on another OS . 选择水龙头文档设置-在剪纸区域中选择“页面/作业:部分剪切/部分剪切”选项,这些选项主要在Windows上运行,而在其他操作系统上则没有看到。

On web we send request of one page to printer and default settings of Bixolon do not allow to cut.在 Web 上,我们向打印机发送一页请求,并且 Bixolon 的默认设置不允许剪切。 So follow there steps to allow Bixolon to cut for page所以按照那里的步骤让 Bixolon 剪切页面

  1. Go to printer settings.进入打印机设置。
  2. Open Printing Preferences .打开Printing Preferences
  3. Choose Document Settings tab.选择Document Settings选项卡。
  4. on Paper Cut section, choose Page / Job : Partial Cut / Partial CutPaper Cut部分,选择Page / Job : Partial Cut / Partial Cut

Bixolon srp-f312ii 打印首选项

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM