Please help - Ayuda Por Favor

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
Jose Marte2
Posts: 45
Joined: Thu Nov 16, 2017 2:19 pm
Location: República Dominicana

Please help - Ayuda Por Favor

#1 Post by Jose Marte2 »

Ingles:

Greetings, for all, I hope you are well. I apologize, but if you can, could you help me how to identify which copy or copy number I am printing when using the DCPRINT ON command? I explain the idea is to be able to know which copy or number of copy is to be able to print a different sign on each of the copies. For example, when printing an invoice, you can print on the first ORIGINAL copy in the second copy CLIENT in the third copy OFFICE and so on. Thanks for all.

Español:

Saludos, para todos, espero estén bien. Me disculpan, pero si puede me podrían ayudar como identificar que copia o numero de copia estoy imprimiendo al utilizar el comando DCPRINT ON. Le explico la idea es poder saber que copia o numero de copia es para poder imprimir un letrero diferente en cada una de las copias. Por ejemplo al imprimir una factura poder imprimir en la primera copia ORIGINAL en la segunda copia CLIENTE en la tercera copia DESPACHO y así sucesivamente. Las gracias anticipadas para todos.
José Marte
Software & Servicios


User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Please help - Ayuda Por Favor

#2 Post by rdonnay »

The best way to do this is just call your print code in a loop and pass it a different heading.

Code: Select all

FUNCTION PrintInvoice()

LOCAL i, aHeadings := {'ORIGINAL','CLIENT','OFFICE'}

DCPRINT ON

FOR i := 1 TO 3
  PrintPage(aHeadings[i])
NEXT

DCPRINT OFF

RETURN nil

* -----------

STATIC FUNCTION PrintPage( cHeading )

@ 1,30 DCPRINT SAY cHeading FONT '20.Arial Bold'

... Print remaing invoice

DCPRINT EJECT

RETURN nil
The eXpress train is coming - and it has more cars.

Post Reply