问题
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