Hola Jorge:
Este es un ejemplo que tiene PowerBuilder:
long Job
// Start a new job and a new page.
Job = PrintOpen()
PrintDefineFont(Job, 3, &
"Courier 10Cps", 250,700, &
Default!, AnyFont!, FALSE, FALSE)
PrintText(Job, "Texto a imprimir", 3700, 10, 3)
PrintClose(Job)
Donde dice "TEXTO A IMPRIMIR" debes sustituirlo por tus variables, por ej.:
string ls_texto
ls_texto = 'Texto a impirmir'
long job
Job = PrintOpen()
PrintDefineFont(Job, 3, &
"Courier 10Cps", 250,700, &
Default!, AnyFont!, FALSE, FALSE)
PrintText(Job, ls_texto, 3700, 10, 3)
rintClose(Job)
Espero te sirva amigo...
! Suerte¡ ...
Antonio