FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Nombre de impresora compartida
Posts: 92
Joined: Fri Nov 18, 2005 11:15 PM
Nombre de impresora compartida
Posted: Fri Jul 24, 2009 09:42 PM

Hola a todos

alguien sabe como obtener el nombre asignado a una impresora de red compartida?
PrnGetName() me da el nombre de la impresora pero necesito el nombre asignado para compartirla.

Saludos

Ralph

Ralph del Castillo

Lima PERU

Fwh 24.07, xHb123_10193, MySQL 8.x, BCC 7.3
Posts: 1074
Joined: Fri Oct 07, 2005 01:56 PM
Re: Nombre de impresora compartida
Posted: Fri Jul 24, 2009 11:05 PM
Hola

revisa la libreria CT, puede que te sirva..

Code (fw): Select all Collapse
NetCancel() Releases an existing network connection.  
NetDisk() Tests if a drive is a network drive.  
NetPrinter() Tests if the current printer is a network printer.  
NetRedir() Establishes a connection to a server.  
NetRmtName() Returns the remote name of a network device.  
Network() Tests for the existence of a network.  
NNetwork()


    Item Description

    GetDefaultPrinter() Retrieves the name of a computer's default printer.
    GetPrinters() Retrieves information about available printers.
    IsPrinter() Determines if print output can be processed.
    PrinterExists() Checks if a particular printer is installed.
    PrinterPortToName() Retrieves the name of the printer connected to a printer port.
    PrintFileRaw() Prints a file to a Windows printer in RAW mode.
    PrintReady() Tests if a printer connected to a specified port is ready.
    PrintSend() Sends a string or a single character to the printer.
    PrintStat() Returns the status of a printer.
    Win32Bmp() Creates a new Win32Bmp object.
    Win32Prn() Creates a new Win32Prn object.
    [/list:u]
Saludos
Patricio

__________________________________________________________________
Version: Harbour 3.2.0dev (r1307082134),Compiler: Borland C++ 5.8.2 (32-bit)
PCode version: 0.3, FWH 13.2
http://www.sialm.cl
Posts: 625
Joined: Wed Mar 14, 2007 06:49 PM
Re: Nombre de impresora compartida
Posted: Sat Jul 25, 2009 03:21 PM
Hola Ralph:

Tengo algo que talvez te ayude con este tema, es un trabajo que preprare hace unas semanas atras, revisa el codigo fuente incluido y el ejemplo incluido

http://www.soldisoft.unlugar.com/productos.html (REPORTES IMPRESOS)


Un Saludo desde Mexico.. :-)
Soluciones y Diseño de Software
Damos Soluciones...

I.S.C. Victor Daniel Cuatecatl Leon
Director y Diseñador de Proyectos

http://www.soldisoft.unlugar.com
http://www.sisa.unlugar.com
danyleon82@hotmail.com
www.facebook.com/victordaniel.cuatecatlleon

Continue the discussion