Label printing skipping 2 by 2

Asked

Viewed 415 times

1

I’m generating an application that reads a txt , and generates labels to be printed at the time I am using an Argox with the code below I receive and print the labels:

var x: string;
var y,i : integer;
begin
begin
   for i := 0 to count do
   begin
    button1.visible := false;
    label1.caption := form1.memo1.lines[i];
    label2.Caption := form1.memo7.lines[i] ;
     label9.Caption := form1.memo2.lines[i];
     label10.Caption := form1.memo3.lines[i];
    label11.Caption := form1.memo4.lines[i];
     label13.Caption := form1.memo5.lines[i];
    label14.Caption := form1.memo6.lines[i];
    GerarCodigo(label1.caption, Image1.Canvas);
   PrintScale :=  poNone;
   Print;
   end;

it leaves 2 labels blank, and prints correctly and so goes.

I realized that the print queue is filled by the requisitions, I believe that is the reason.

To better illustrate what happens when I print made a drawing:

inserir a descrição da imagem aqui

Is there a way to store and send everything at once? or any change in the code that changes this?

2 answers

-1

Your problem is with setting the label. Once you are not informed the printer follows a preset pattern. Try to configure the format (Height x width, sheet size, etc.) in the printer setup, or through your code.

If you want to inform your printer model and take a look at its manual to see if you can adjust this in the setup.

  • Argox OS-214 plus, I put the form in the measures of the label 10x5...snedo so it should not come out in the correct size?

  • Check this link : http://www.manualslib.com/manual/9337/Argox-Os-214-Plus.html?page=28#manual. Try configuring it to the size of your label. If there is no size, choose custom and between the measures of your label. Also at the beginning of the manual talks about printer calibration. Do the Calibration( reset and then calibre) before setting the size of your label.

-1

I think Voce needs to define the height of the label and the vertical space between them, if any. Depending on the version of Delphi you are using, you may have the Quick report. If this is your case, try using it. There you can easily create and generate labels.

  • I’m not using database,?

  • Two responses?

  • Jose, put your two answers in one, so you can contextualize and give a more complete answer to the question.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.