Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing to a local printer under WTS
Message
De
22/12/2003 14:05:21
 
 
À
15/12/2003 07:33:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00859066
Message ID:
00861372
Vues:
14
Terminal Server must know of the correct printer drivers for the local pc. Install the driver into Terminal Services using the Printers applet. Right click in any empty area of the Printer dialog box and choose the Server Properties and then select the Device Drivers tag. Hope my memory is correct!

>Hi,
>
>I have a program that prints labels on a Zebra Printer. That program is to run on a LAN and now under WTS in a remote location.
>
>The label print function is performed by a printer attached to the PC, that is, locally.
>
>When the program is running in the LAN there is no problem, but how can that be done when it is running under WTS, remotelly?
>
>The print program is written in VFP 8 SP1, the workstations run Windows 2000 professional and the WTS server runs Windows 2000 server.
>
>I already checked many messages dealing with remote printing under WTS, but as I understood it, that did not seemed to me like that I'm trying to to (actually I'm not 'printing", rather I'm "sending" caracters to a PC port).
>
>Below is the code sequence I use to attach and print those labels.
>
> nPrtHandle = fOpen ("LPT1", 11) &&  Opens LPT1 port, Write only, Unbuffered
>
> If nPrtHandle = -1
>    MessageBox ("Não foi possível acessar a impressora de etiquetas na porta LPT1 !", (0+16+0), cCaption)
>    Return
> endif
>
> ZebraPrtEtiqueta (nPrtHandle  ,  ;   &&  Print Handle
>                   wEQ_CodItem ,  ;   &&  Código   do Item
>                   wEQ_Descr   ,  ;   &&  Descrição do Item
>                   wEQ_Area    ,  ;   &&  Área
>                   wEQ_Local   ,  ;   &&  Local
>                   wEQ_NumEtiq)       &&  Número da Etiqueta
>
> fClose (nPrtHandle)
>
> . . .
>
> Procedure ZebraPrtEtiqueta
>*--------- ----------------
> LParameters pHandle, pCodItem, pDescr, pArea, pLocal, pNumEtiq
>
> . . .
>
> cPrtString = ...
>
> . . .
>
> fWrite (pHandle, cPrtString)
>
> EndProc                         &&  of ZebraPrtEtiqueta
>
>Thanks,
>
>Fernando
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform