Search found 52 matches: prngetname

Return to advanced search

Re: Ayuda DLL

Antonio, aquí la segunda parte: Error: Unresolved external '_HB_FUN_DRAWTHEMED' referenced from P:\32BITS\FWH\LIB\FIVEHX.LIB|DIALOG Error: Unresolved external '_HB_FUN_GETDLGBASEUNITS' referenced from P:\32BITS\FWH\LIB\FIVEHX.LIB|DIALOG Error: Unresolved external '_HB_FUN_CDLG2CHR' referenced from P...
by ricardog
Thu Aug 31, 2017 2:56 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda DLL
Replies: 24
Views: 6286

Re: IMPRIMIR UN ARCHIVO PDF

gracias por contestar function BoletaPdf(cFilePdf) *---------------------------- local cSumatra := ".\SumatraPdf.exe" local cPrinter := PrnGetName() local cFile,cCmd cFile := cFilePdf cCmd := cSumatra + ' -Print-to "' + ; alltrim( StrToken( cPrinter, 1, "," ) ) + ; '" ...
by jbrita
Tue May 09, 2017 2:04 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: IMPRIMIR UN ARCHIVO PDF
Replies: 12
Views: 1715

Impresoras

... la ruta a la misma. El tema es que les tengo puesto un botoncito para que puedan seleccionarla/configurarla con el típico PrinterSetup(), cprn := prngetname(), que solo devuelve el nombre de la impresora. ¿Hay alguna función que devuelva la ruta completa ? Saludos
by Sebastián Almirón
Mon May 09, 2016 5:34 pm
 
Forum: FiveWin for CA-Clipper
Topic: Impresoras
Replies: 1
Views: 1477

Re: Simple print question

I now realize the source of my error. I was using prngetname() to check if I had successfully changed the default printer, but changing the default printer doesn't change prngetname(). Whew.
by dtussman
Mon Feb 01, 2016 3:12 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Simple print question
Replies: 9
Views: 1909

Re: Find default Printer?

I just tested getDefaultPrinter() here and it works fine with Windows 8.1, FW13.04, xHarbour and Borland 5.82. prnGetName() returns the current printer, which may, or may not, be the Windows default printer. When any app is run, the current printer of that app is the Windows default ...
by James Bott
Thu Mar 05, 2015 12:41 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Find default Printer?
Replies: 4
Views: 689

Re: EXCESS RELEASE OF FONT

... VA A IMPRIMIR: '+cTitulo1,'IMPRIMIR') cImpresoraSalida:=SeleccionaPrn() if len(cImpresoraSalida) == 0 return NIL endif else cImpresoraSalida:=PrnGetName() endif // Genera el informe. if .not. empty(nLtrSize) DEFINE FONT oFontNorm NAME "ARIAL" SIZE 0,-nLtrSize DEFINE FONT oFontNegr ...
by Verhoven
Wed Feb 04, 2015 8:59 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: EXCESS RELEASE OF FONT
Replies: 28
Views: 6860

Setting default printer in Terminal Server environment

... under Terminal Server to set a default printer. This code runs on local but not under TS: function main MsgInfo( "Current printer: "+PrnGetName() ) cPrinter:="PDF24 PDF" oPrn:=PrintBegin("",.f.,.T.,cPrinter) oPrn:End() MsgInfo( "Current printer: "+PrnGetName() ...
by Marco Turco
Mon May 19, 2014 9:24 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Setting default printer in Terminal Server environment
Replies: 5
Views: 862

Re: ComDlgErr() or IsPrinter()

The ComDlgErr() printer.prg class works correctly to detect if there is printer installed in Windows?

I did numerous tests and noticed that in a few cases it fails indicating that there is printer, in this cases error occurs and in the PRNGETNAME() command.
by ORibeiro
Mon Mar 10, 2014 10:50 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: ComDlgErr() or IsPrinter()
Replies: 7
Views: 1031

Re: Establecer impresora predeterminada

Gracias, gracias amigos. Solucionado con un poco de todos. Cambie lo que dice karinha y ademas hice.. claImpreAnterior := PrnGetName() nImprePDF:= AScan(aPrinters, "PDF") cLaImpre :=aPrinters[nImprePDF] cLaImpre := xTrim(cLaImpre) (ltrim+rTrim) SetPrintDefault( cLaImpre ) ...
by RDFernandez
Wed Feb 19, 2014 8:16 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Establecer impresora predeterminada
Replies: 10
Views: 3036

Re: FWH 13:09 Default Printer

I found! eureka The problem is the command PrnGetName() . Please test with the following code within an application and run it twice: Perform close viewing and rerun without leaving the application. PRINT oPrn NAME "TESTING"+" ("+ ...
by ORibeiro
Sun Nov 17, 2013 2:00 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FWH 13:09 Default Printer
Replies: 61
Views: 12460

Re: FWH 13:08 Default Printer

HI ORibeiro, Yes, I confirm this problem. So I change my code like this : coldprinter := prnGetName() // default printer WriteProfString( "windows", "device",cnewprinter) // change to new printer SetPrintDefault(cnewprinter) PrinterInit() SysRefresh() ...
by kok joek hoa
Thu Oct 03, 2013 7:48 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FWH 13:09 Default Printer
Replies: 61
Views: 12460

Re: SetPrintDefault no cambia el valor de PrnGetName (solucionad

Excelente Antonio,

Haremos la prueba

Gracias..
by sysctrl2
Thu Oct 11, 2012 4:56 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: SetPrintDefault no cambia el valor de PrnGetName (solucionad
Replies: 6
Views: 1602

Re: SetPrintDefault no cambia el valor de PrnGetName (solucionad

César,

Modificando asi el método Setup() de la Clase TPrinter:

METHOD Setup() BLOCK { | Self, hDC | hDC := PrinterSetup(), ::Rebuild(), hDC != 0 }

devuelve un valor lógico, lo que te permite hacer:

Code: Select all  Expand view

if ! oPrinter:Setup()
   return nil
endif
 
by Antonio Linares
Thu Oct 11, 2012 9:36 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: SetPrintDefault no cambia el valor de PrnGetName (solucionad
Replies: 6
Views: 1602

Re: SetPrintDefault no cambia el valor de PrnGetName (solucionad

ya que andamos en este tema: PRINTER oPrn PREVIEW oPrn:Setup()* ......* .....ENDPRINT  Amigos el method oPrn:Setup() de la class tprinter presenta 2 botones: [ Acepta ], [ Cancelar ] abra forma de configurar las class para que cuando demos CANCELAR se regrese y no prosiga con el reporte...
by sysctrl2
Thu Oct 11, 2012 12:29 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: SetPrintDefault no cambia el valor de PrnGetName (solucionad
Replies: 6
Views: 1602

Re: SetPrintDefault no cambia el valor de PrnGetName

... "device" , "" ) WriteProfString( "windows", "device",cNuevaImpresora) SysRefresh() PrinterInit() msginfo(PrnGetName()) WriteProfString( "windows", "device",cImpresoraAnterior) Tambien funciona con: cImpresoraAnterior:=PrnGetName() SetPrintDefault(cNuevaImpresora) ...
by interwin
Thu Oct 11, 2012 12:08 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: SetPrintDefault no cambia el valor de PrnGetName (solucionad
Replies: 6
Views: 1602
Next

Return to advanced search

cron