Search found 53 matches: prngetname

Return to advanced search

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: 1641

SetPrintDefault no cambia el valor de PrnGetName (solucionad

Buenas noches si tengo el siguiente programa . . cImpresoraAnterior:=PrnGetName() SetPrintDefault(cNuevaImpresora) msginfo(PrnGetName()) . . Windows si establece a cNuevaImpresora como la impresora por defautl, pero mi aplicacion FWH no ( PrnGetName() sigue ...
by interwin
Wed Oct 10, 2012 2:30 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: SetPrintDefault no cambia el valor de PrnGetName (solucionad
Replies: 6
Views: 1641

Re: cambiar impresora

Hola, Intente asi: oPreview:oDevice:GetModel() oPrinter:GetModel() ó PrnGetName()    @ 7, 500 SAY ::oPage PROMPT "Imprimir na Impressora: "+PrnGetName() ;            SIZE 220, 15 PIXEL OF ::oBar FONT ::oFont                        ;      ...
by karinha
Mon May 16, 2011 12:53 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: cambiar impresora
Replies: 2
Views: 561

Re: Invoice

... VAT nr ")+AllTrim(FVAT1->NR_M)+cOPIS Local lPREV:=.F. oPRN:=PrintBegin(cTYTWYDRUKU,.F.,lPREV,IIF(cPRINTER<>NIL,cPRINTER,PrnGetName())) Page FV_CIENIE(@oPRN) FV_NAGLOWEK(@oPRN,cOPIS) //FV_KRESKI(@oPRN) FV_ZAWARTOSC(@oPRN) EndPage EndPrint Return Function FV_NAGLOWEK(oPRN,cOPIS) ...
by Robert Frank
Thu May 05, 2011 3:24 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Invoice
Replies: 7
Views: 1622

Re: TDOSPRN y XP WINDOWS - SOLUCIONADO

... cerramos el puerto que se abrio al principio if (::hDC # -1) .and. ! fClose(::hDC) ::nLastError := fError() endif cOutPort := ::cPort cPrnName := PrnGetName() lPreview := ::lPreview nModo := iif (::lModoGraf, 2, 1) nLinP := ::nLength DEFINE DIALOG oDlg TITLE "Impresion" ; FROM 129, 178 ...
by Armando Picon
Mon Jan 24, 2011 8:50 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: TDOSPRN y XP WINDOWS
Replies: 21
Views: 4784

Re: Does anyone know the answers ?

James Bott wrote:PrnGetName() returns the name of the current printer.

I don't know how you can find the port


Code: Select all  Expand view
PrnGetPort()


:-)

EMG
by Enrico Maria Giordano
Wed Dec 29, 2010 10:25 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Does anyone know the answers ?
Replies: 2
Views: 611

Re: Does anyone know the answers ?

Hunter,

PrinterSetup() returns the hDC of the selected printer if Accept is pressed, or zero if cancel is pressed.

PrnGetName() returns the name of the current printer.

I don't know how you can find the port as I have never needed to know this. Why do you?

Regards,
James
by James Bott
Wed Dec 29, 2010 7:12 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Does anyone know the answers ?
Replies: 2
Views: 611

Re: Imprimir

Buenos Días

No estoy haciendo las cosas bien. Para la función SetPrintDefault() debeo utilizar el nombre de la impresora.

¿Como obtengo el nombre?. Con el nombre que obtengo con PrnGetName(), no cambia de impresora.

Un saludo. Fernando
by fergonm
Fri Nov 19, 2010 10:08 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Imprimir
Replies: 11
Views: 1563

Re: "No Default Printer" message on Windows 7 64-bit

Thanks for the reply guys :) @Richard: I'm not using any ini at the moment. @James: Oops, sorry I missed your Oct 6th's post. The hDC is 0 only in my module James. It definitely isn't 0 when running samples\testprn2.prg. I even compile and linked in libs as per how I do with my problematic module ye...
by hua
Fri Oct 08, 2010 8:58 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: "No Default Printer" message on Windows 7 64-bit
Replies: 18
Views: 6212

Re: "No Default Printer" message on Windows 7 64-bit (Urgent)

Just tried to substitute my ud_PrnGetName() with GetDefaultPrinter(). Seems GetDefaultPrinter() returns a numeric value instead of a printer name. That kinda makes it hard for me to know which printer was actually selected. It's unfortunate that my office doesn't have a Win7 64-bit. Makes it difficu...
by hua
Fri Apr 30, 2010 8:18 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: "No Default Printer" message on Windows 7 64-bit
Replies: 18
Views: 6212

Re: Se necesita ayuda en el wiki !

... PokeByte() PokeWord() PolyPolygon() PostMessage() PostQuitMessage() PrintBegin() PrinterEsc() PrinterSetup() PrnBinSource() PrnDuplex() PrnGetName() PrnGetOrientation() PrnGetPort() PrnGetSize() PrnLandscape() PrnOffset() PrnPortrait() PrnSetCopies() PrnSetPage() PrnSetSize() RaConst() ...
by Cgallegoa
Tue Feb 23, 2010 3:32 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Se necesita ayuda en el wiki !
Replies: 12
Views: 5528

Re: preview alpha 2

... := oDevice ::nPage := 1 ::nZFactor := 1 ::lTwoPages := .F. ::lZoom := .F. ::lExit := .F. // Esteban ::aPrinters := aGetPrinters() ::cPrinter := PrnGetName() ::cOldPrinter := ::cPrinter // Esteban ::BuildWindow() return Self //----------------------------------------------------------------------------// ...
by dobfivewin
Thu Jan 14, 2010 10:08 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: preview alpha 2
Replies: 2
Views: 2035

Re: GetPrintDC()

... oWndMain:oBar:aControls[ 1 ]:l97Look local lExit := .F. local oHand, oImageList, oReBar // , cPageNum local aImpre := aGetPrinters(), oCbx, cCbx:=PrnGetName(), ; cImpre := cCbx // mcn valdenebro *DEFAULT nBloqueo := .F. #ifdef __CLIPPER__ cResFile := "Preview.dll" #else if ! IsWin64() ...
by jbrita
Tue Nov 24, 2009 11:29 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: GetPrintDC()
Replies: 4
Views: 2715
PreviousNext

Return to advanced search