Search found 107 matches: nvertres

Searched query: nvertres

by karinha
Thu Jan 09, 2025 2:31 pm
Forum: FiveWin para Harbour/xHarbour
Topic: CODIGO QR EN DOCUMENTO CON TPRINTER
Replies: 10
Views: 1475

Re: CODIGO QR EN DOCUMENTO CON TPRINTER

... SIZE 0, -20 OF oPrn BOLD
DEFINE FONT oFontBig NAME "TAHOME" SIZE 0, -28 OF oPrn BOLD
DEFINE PEN oPen COLOR CLR_BLACK OF oPrn

nRowStep := oPrn:nVertRes() / nHightPage
nColStep := oPrn:nHorzRes() / nWidthPage

IF Empty( oPrn:hDC )

oPrn:end()

MSGINFO( "No hay impresoras instaladas ...
by sysctrl2
Wed Jan 08, 2025 10:35 pm
Forum: FiveWin para Harbour/xHarbour
Topic: CODIGO QR EN DOCUMENTO CON TPRINTER
Replies: 10
Views: 1475

Re: CODIGO QR EN DOCUMENTO CON TPRINTER

... SIZE 0, -20 OF oPrn BOLD
DEFINE FONT oFontBig NAME "TAHOME" SIZE 0, -28 OF oPrn BOLD
DEFINE PEN oPen COLOR CLR_BLACK OF oPrn

nRowStep := oPrn:nVertRes() / nHightPage
nColStep := oPrn:nHorzRes() / nWidthPage

IF Empty( oPrn:hDC )
oPrn:end()
MSGINFO( "No hay impresoras instaladas...", "Usuario ...
by jpcavagnaro
Mon Aug 12, 2024 7:10 pm
Forum: FiveWin for Harbour/xHarbour
Topic: No logro definir tamaño de papel
Replies: 19
Views: 4541

Re: No logro definir tamaño de papel

... lo probre con una comandera SAM4S GIANT-100 y tambien con una Brother HL-1200

Con cualquiera que pruebe los comandos oPrn:nHorzRes() y oPrn:nVertRes() me devuelven los valores que tiene la impresora predeterminada que no tiene nada que ver con el pdf que quiero generar con una hoja A4

no copio ...
by jpcavagnaro
Mon Aug 12, 2024 2:51 pm
Forum: FiveWin for Harbour/xHarbour
Topic: No logro definir tamaño de papel
Replies: 19
Views: 4541

Re: No logro definir tamaño de papel

... FILE "jorge.pdf"
oPrn:setpage( 9 ) // tama¤o de papel A4


publ xAncho := ( ( oPrn:nHorzRes() / 25.4 ) / 10 ) //-1
publ xAltocm := ( ( oPrn:nVertRes() / 25.4 ) / 10 ) // -1.5

? xaltocm, xancho

los valores que muestra xAncho y xAltocm sin los valores que tiene la impresora predeterminada y no ...
by pedroluis
Sun May 12, 2024 8:27 pm
Forum: FiveWin para Harbour/xHarbour
Topic: CODIGO DE BARRAS. ERROR CON FILLRECT()
Replies: 31
Views: 6214

Re: CODIGO DE BARRAS. ERROR CON FILLRECT()

... 1/3 M/mm
default nLen := 0.8 // Cmm. 0.8
define brush oBr color nColor
// Width of Bar
if !lHorz
nWidth :=round ( nWidth * 10 * oPrint:nVertRes() / oPrint:nVertSize() ,0 )
else
nWidth :=round ( nWidth * 10 * oPrint:nHorzRes() / oPrint:nHorzSize(), 0 )
end
// Len of bar
if lHorz
nLen ...
by pedroluis
Fri May 10, 2024 9:34 pm
Forum: FiveWin para Harbour/xHarbour
Topic: CODIGO DE BARRAS. ERROR CON FILLRECT()
Replies: 31
Views: 6214

Re: CODIGO DE BARRAS. ERROR CON FILLRECT()

... 0.8 // Cmm. 0.8
* default nLen := 1.5 // Cmm.

define brush oBr color nColor
// Width of Bar
if !lHorz
nWidth :=round ( nWidth * 10 * oPrint:nVertRes() / oPrint:nVertSize() ,0 )
else
nWidth :=round ( nWidth * 10 * oPrint:nHorzRes() / oPrint:nHorzSize(), 0 )
end
// Len of bar
if lHorz
nLen ...
by Detlef
Wed Jan 10, 2024 5:55 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Resolution of monitor
Replies: 9
Views: 4639

Re: Resolution of monitor


seem a joke.....

local nResHoriz := oWnd:nHorzRes()
local nResVert := oWnd:nVertRes()

where is oWnd ?
I don't always have the main window where I can find the oWnd?
Such a solution seems strange to me

Hi Silvio,

you must not take 'oWnd' but take your dialog:
local nResHoriz := oDlg:nHorzRes ...
by Silvio.Falconi
Wed Jan 10, 2024 8:03 am
Forum: FiveWin for Harbour/xHarbour
Topic: Resolution of monitor
Replies: 9
Views: 4639

Re: Resolution of monitor

Function test(oWnd)
local nResHoriz := oWnd:nHorzRes() // retorna a resolucao horizontal
local nResVert := oWnd:nVertRes() // retorna a resolucao vertical


? nResHoriz,nResVert


Error occurred at: 01/10/24, 09:01:40
Error description: Error BASE/1004 No exported method: NHORZRES
Args:
[ 1] = U ...
by Silvio.Falconi
Wed Jan 10, 2024 7:57 am
Forum: FiveWin for Harbour/xHarbour
Topic: Resolution of monitor
Replies: 9
Views: 4639

Re: Resolution of monitor


nResHoriz := oWnd:nHorzRes() // retorna a resolucao horizontal
nResVert := oWnd:nVertRes() // retorna a resolucao vertical


// complete...

IF nResHoriz = 1440 .AND. nResVert = 900 // RESOLUTION...

DEFINE DIALOG...


ELSEIF nResHoriz = 1366 .AND. nResVert = 768


ELSEIF nResHoriz = 1360 ...
by nanoespinoza
Tue Nov 15, 2022 12:42 am
Forum: FiveWin para Harbour/xHarbour
Topic: Consejos sobre el uso de las clases TImprime y TUtilPrn
Replies: 9
Views: 1696

Re: Consejos sobre el uso de las clases TImprime y TUtilPrn

... Cmtr2Pix( nAncho,nAlto )

IF lPage
yCor[1] := ::oPrinter:nHorzRes() - xCor[2]*2 // Restando lo mismo cms para margenes
yCor[2] := ::oPrinter:nVertRes() - xCor[1]*2
// ?yCor[2],::oPrinter:nVertRes() ,xCor[1] // Depuracion
ENDIF

IF lImage

* se for jpg

xBmp := timage():define( , ximage ...
by Rick Lipkin
Thu Sep 16, 2021 1:17 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Unattended creation of .pdf . resolution problem -- RESOLVED
Replies: 9
Views: 1834

Unattended creation of .pdf . resolution problem -- RESOLVED

... is oPrinter getting its values ... In the attached program .. I evaluate oPrinter to get the Horizontal and vertical values :

nRowStep := oPrint:nVertRes() / 55 // pixel per line = 57.65 @ 55
nColStep := oPrint:nHorzRes() /130 // columns

I use these values to place the output in specific places ...
by
Wed Dec 16, 2020 12:39 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Imprimir imagen guardada en tabla SQL
Replies: 11
Views: 3308

Imprimir imagen guardada en tabla SQL

... tratando de imprimirla así: ImprimirFoto( oRsFoto:Fields( "Foto" ):Value )

Function ImprimirFoto(wfoto)
PRINT oPrn PREVIEW MODAL
PAGE
oPrn:SayImage(0,0, wfoto, oPrn:nHorzRes(), oPrn:nVertRes() , nil, .t. )
ENDPAGE
ENDPRINT

retu .t.

No da error, pero muestra una hoja en blanco.

Saludos
Jorge
by TimStone
Tue Oct 20, 2020 5:39 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Printer class question - RESOLVED
Replies: 41
Views: 5740

Re: Printer class question

... nCsp are determined by the orientation and papersize:
// Set the resolution divided by the standard 8.5x11 inch paper rows/columns
nRsp := oPrn:nVertRes() / 68 // Number of rows
nCsp := oPrn:nHorzRes() / 85 // Number of columns

I've used these for years with success. You can even implement color ...
by Rick Lipkin
Thu Sep 10, 2020 2:51 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Creating a silent file to .pdf
Replies: 18
Views: 3020

Re: Creating a silent file to .pdf

... report I am trying to print to pdf works fine if you use the print viewer .. however, I am doing a lot in this report by using the Printer oPrint:nVertRes() and oPrint:nHorzRes() properties and placing my text on the page in relatively the same position based on what ever printer is used ..

I just ...
by James Bott
Tue Jun 23, 2020 12:21 am
Forum: FiveWin for Harbour/xHarbour
Topic: Font sizing for printout.
Replies: 3
Views: 985

Re: Font sizing for printout.

... to the printable area except for GetPhySize().


oPrn:cModel: HP DeskJet 420,winspool,LPT1:
oPrn:nHorzRes(): 2400 [2400/300 dpi = 8 inches]
oPrn:nVertRes(): 3025 [3025/300 dpi = 10.1 inches]
oPrn:nLogPixelx(): 300
oPrn:nLogPixely(): 300
oPrn:nXOffset: 75
oPrn:nYOffset: 75
oPrn:nHorzSize() : 203 mm ...