Jump to content
Fivewin Brasil

Como saber a porta impressoa ?


gibaf

Recommended Posts

Ola..

Como fazer pra saber cual a porta (LPT/COM/USB) utilizada, numa impressora selecionada para impressao ?

Desde ja agradeco: MUITO OBRIGADO !

Att

Gilberto Frohlich - Toledo/PR

giba_f@hotmail.com

giba_f@yahoo.com.br

xHarbour Comercial xBuild Mar_06+Fivewin 2.7+PellesC+(Postgres+DB2)

Link to comment
Share on other sites

Ola..

Como fazer pra saber cual a porta (LPT/COM/USB) utilizada, numa impressora selecionada para impressao ?

Desde ja agradeco: MUITO OBRIGADO !

Att

Gilberto Frohlich - Toledo/PR

giba_f@hotmail.com

giba_f@yahoo.com.br

xHarbour Comercial xBuild Mar_06+Fivewin 2.7+PellesC+(Postgres+DB2)

Link to comment
Share on other sites

Descobri o PrnGetPort(), com a ajuda de Crystian, mas esse nao pega da impressora selecionado e sim da impressora default !

Se alguem ainda tiver dicar, por favor, enviem...

Obrigado !!!

Gilberto Frohlich - Toledo/PR

giba_f@hotmail.com

giba_f@yahoo.com.br

xHarbour Comercial xBuild Mar_06+Fivewin 2.7+PellesC+(Postgres+DB2)

Link to comment
Share on other sites

Ola Gilberto

Vê se ajuda.

#Include "FiveWin.ch"

PROCEDURE Main()

LOCAL;

aPrinter := GetPrinters(.T.),;

cMsg,;

i

CLS

IF Empty( aPrinter )

MsgInfo('Não há impressoras instaladas.')

QUIT

ENDIF

cMsg := 'Impressoras disponíveis'+CHR(10)+CHR(13)

cMsg := +CHR(10)+CHR(13)

FOR i := 1 TO Len( aPrinter )

cMsg += aPrinter[i,1]+' -> '+aPrinter[i,2]+CHR(10)+CHR(13)

NEXT i

MsgInfo(cMsg)

RETURN NIL

[]´s

Flavio

xHb-Enterprise+Fw28

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...