Usina BRAdvPL Guide
Sign in
← All topics
COMMANDUnder review

PSay

@ <nLinha>, <nColuna> PSAY <cTexto>

Prints text in legacy reports by positioning row and column.

ReportsPrintingLegacy commandPSay
01 · OVERVIEW

Overview

PSay appears in historical AdvPL report examples to position text and fields in printed output. It is common in coordinate-based legacy reports where the developer controls row, column, header, footer and manual print advancement.

02 · SYNTAX

Syntax

@ <nLinha>, <nColuna> PSAY <cTexto>
03 · PRACTICAL EXAMPLE

Text at a fixed position

#Include "TOTVS.ch"

User Function ExPSay()
    Local nLinha := 10
    Local nColuna := 5

    @ nLinha, nColuna PSAY "Relatório de clientes"
Return
Expected result

The text is sent to the row and column indicated by the report.

BEST PRACTICES
  • Use esta página principalmente para manutenção de relatórios legados.
  • Controle cuidadosamente a variável de linha para evitar sobreposição de textos.
  • Combine com cabeçalho, rodapé e salto de página quando o relatório ultrapassar o limite da página.
  • Para novos relatórios, avalie recursos mais atuais de impressão e geração de planilhas.
COMMON PITFALLS
  • Fixed coordinates may break with different fonts, languages or layouts.
  • Long reports require explicit page control.
  • Old examples often depend on RWMake.ch or legacy includes.

Related content

REFERENCES
  1. Apostila ADVPL Introd. Microsiga Campinas, 2001. Documentação oficial histórica de caráter didático e de suporte. Conteúdo histórico, resumido, revisado e adaptado para guia de referência.
Status
Under review
Page created on
Last reviewed on
Original language
Portuguese
Reviewed by
Usina.BR
0 approved comment(s)

Comments

There are no approved comments yet.

Sign in with Google or Microsoft to comment.

Powered by Usina Docs · Alpha