Jump to content
Fivewin Brasil

Imprimir centralizado com Printer


scom

Recommended Posts

Olá,

1ªmente, centro Horizontal ou Vertical ?

2ªmente, que formulário ?, A4 ?

3ªmente, qual a fonte que está usando ? que tamanho ?

4ªmente, vc está imprimindo em modo rascunho, vendo que está usando a Print, que é gráfica

Acho q com essas resposta podemos lhe dar alguma luz icon_smile_big.gif

Vagner Wirts

VI Encontro está chegando icon_smile_big.gif, não perca icon_smile_big.gif

Link to comment
Share on other sites

USE ESSE EXEMPLO:

MENSAGEM:="AVISO E RECIBO DE FÉRIAS"

COMPRIMENTO:=OPRN:GETTEXTWIDTH(MENSAGEM,oFONT)

COLUNACERTA:=(LARGURADALETRA*80-COMPRIMENTO)/2

OPRN:Say(linha,COLUNACERTA,MENSAGEM,OFONT)

Pompeo

Guaratinguetá - SP

(12) 9777-9386

E-Mail: mkyx@ig.com.br

MSN: mkyx@ig.com.br

Skype: pardes.mky

www.adentech.com.br

www.rmahost.com

xH 0.99.50 Hb 8.02 com BCC 55

Link to comment
Share on other sites

Veja a seguir, como calculo a largura da letra que é a mesma coisa para determinar o número de colunas por linha, e o número de linhas por página.

numerodelinha:=oPrinter:nVertRes()/66 // 66 linhas

larguradaletra:=oPrinter:nhorzRes()/80 // 80 colunas

Pompeo

Guaratinguetá - SP

(12) 9777-9386

E-Mail: mkyx@ig.com.br

MSN: mkyx@ig.com.br

Skype: pardes.mky

www.adentech.com.br

www.rmahost.com

xH 0.99.50 Hb 8.02 com BCC 55

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...