Delphi double-side printer

空扰寡人 提交于 2019-12-13 07:42:37

问题


I have a PVC card printer which is able to print on both sides of a card at the same time.

the cards are 8.4mm X 5.4mm.

the printer is a Nisca PR5350. http://www.teamnisca.com/products/5350/

I have the following code. the problem is that although I select "double-side" in the printer setting dialog, the printer prints each of the pages on separate cards.

I searched a bit in the internet and found that I have to set the printer mode to full-duplex in my code. but I don't know how to do it exactly.

this is my code...

with PrintDialog1 do
  // after the dialog executes, I open printer settings and select "double-side"
  if Execute then
    begin

      with printer do
        begin
          BeginDoc;
          // Here I draw the front of the card on printer canvas 
          NewPage;
          // After creating a new page, here I draw the back of the card on 
          // printer canvas.
          EndDoc;
        end;

    end;

Thank you.

来源:https://stackoverflow.com/questions/28382356/delphi-double-side-printer

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!