Search found 37 matches: setprintdefault

Return to advanced search

Re: Como asignar una impresora

Perdón por no seguir el hilo en el otro mensaje, pensé en hacer otro    SetPrintDefault( AllTrim( oApp:impremito ) )   PRINT oPrn NAME "REMITO" ///PREVIEW   oPrn:SetPage(10)   oPrn:SetCopies(4)   PAGE   oPrn:Cmsay( ...
by surGom
Sat Apr 02, 2022 1:14 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Como asignar una impresora
Replies: 4
Views: 472

Re: SetPrintDefault no funciona en Windows 10

Magnífico karinha, sustituyendo SetPrintDefault por SetDefaultPrinter se solucionó.
by AngelSalom
Tue Oct 04, 2016 3:50 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: SetPrintDefault no funciona en Windows 10 (solucionado)
Replies: 3
Views: 744

Re: SetPrintDefault no funciona en Windows 10

Mira se ayuda: FUNCTION DefaultPrinter()   LOCAL nPrn, nRet   /*   GetPrintDC( GetActiveWindow() )   SetDefaultPrinter( PRNGETNAME() )   */   nRet := PrinterSetUp()   nPrn := PrnGetName()   IF(...
by karinha
Tue Oct 04, 2016 3:14 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: SetPrintDefault no funciona en Windows 10 (solucionado)
Replies: 3
Views: 744

Re: SetPrintDefault no funciona en Windows 10

Sigo, en server 2008,2012 con usuarios que no son propietarios del ejecutable tampoco. ¿Me huelo un tema de permisos? El código de SetPrintDefault parece que modifica valores del registro ... function SetPrintDefault( cModel )   local cDriver := StrToken( GetProfString( ...
by AngelSalom
Tue Oct 04, 2016 3:13 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: SetPrintDefault no funciona en Windows 10 (solucionado)
Replies: 3
Views: 744

SetPrintDefault no funciona en Windows 10 (solucionado)

Hola amigos, estoy usando la función SetPrintDefault para establecer la impresora por defecto en el sistema. Hasta ahora bien pero con Windows 10 y la última actualización no tiene efecto.
¿Alguna solución?
Gracias,
by AngelSalom
Tue Oct 04, 2016 11:01 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: SetPrintDefault no funciona en Windows 10 (solucionado)
Replies: 3
Views: 744

Re: Redirección de impresion en Terminal Server

... a la impresora por defecto. He intentado establecerla como impresora por defecto pero no me la cambia ¿Alguna idea de porque no funciona la orden SetPrintDefault() una sesión remota? hago esto    ...   cOldPrinter := GetDefaultPrinter()   SetPrintDefault(cPrinter)   sysrefresh()  ...
by miarcod
Wed Jun 01, 2016 6:20 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Redirección de impresion en Terminal Server
Replies: 8
Views: 1563

Re: Simple print question

Please try it this way:

setprintdefault(cprinter)
PrinterInit()
print oprn name pname to cprinter

SetPrintDefault() just changes the Windows registry values but does not refresh the FWH printer internals

Maybe we should call PrinterInit() from SetPrintDefault() automatically
by Antonio Linares
Mon Feb 01, 2016 9:53 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Simple print question
Replies: 9
Views: 1919

Re: Simple print question

I got it to work with the following code: setprintdefault(cprinter) oprn:=printbegin(pname,.f.,.f.,cprinter,.t.) oprn:end() print oprn name pname to cprinter Only then does the program successfully change the default printer. If I leave off any ...
by dtussman
Mon Feb 01, 2016 2:44 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Simple print question
Replies: 9
Views: 1919

Re: Simple print question

I take it all back. setprintdefault() seems to have no effect at all.
by dtussman
Sun Jan 31, 2016 6:22 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Simple print question
Replies: 9
Views: 1919

Re: Simple print question

Figured it out, setprintdefault(cprinter) is the answer.
by dtussman
Sun Jan 31, 2016 5:33 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Simple print question
Replies: 9
Views: 1919

Re: Imagén del pdf pixelada y borrosa

... Local cPrinter:=GetPvProfString("Facturacion","IMPRESORA","Microsoft XPS Document Writer", cIniFile) SetPrintDefault(cPrinter) PrnSetPage(9) ///a4 PrnPortrait() ///vertical // PrnLandScape() ///horizontal TPreview():lListViewHide := .T. //PRINT oPrn ...
by postinelli
Thu Jun 18, 2015 11:44 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Imagén del pdf pixelada y borrosa
Replies: 1
Views: 408

Re: Establecer impresora predeterminada

... := PrnGetName() nImprePDF:= AScan(aPrinters, "PDF") cLaImpre :=aPrinters[nImprePDF] cLaImpre := xTrim(cLaImpre) (ltrim+rTrim) SetPrintDefault( cLaImpre ) Saludos y gracias.
by RDFernandez
Wed Feb 19, 2014 8:16 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Establecer impresora predeterminada
Replies: 10
Views: 3049

Re: Establecer impresora predeterminada

... (para retener el nombre al inicio de tu app) luego, con ello podés establecer la impresora por defecto mediante la funcion de FW SetPrintDefault() Sets the specified printer as the default printer. Syntax: SetPrintDefault( <cModel> ) --> nil Parameters: <cModel> ...
by MarioG
Thu Feb 13, 2014 12:44 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Establecer impresora predeterminada
Replies: 10
Views: 3049

Re: FWH 13:08 Default Printer

... However, I use Windows Server with Terminal Server with the same user TS is connected simultaneously by multiple people. By using command "SetPrintDefault( cPrinter )" the person changes the default printer in windows for all others who are using the same user. So I can not use the ...
by ORibeiro
Mon Oct 07, 2013 11:00 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FWH 13:09 Default Printer
Replies: 61
Views: 12672
Next

Return to advanced search