... 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 :=round ( nLen * 10 * oPrint:nVertRes() / oPrint:nVertSize() ,0 )
else
nLen :=round ( nLen * 10 ...
Search found 25 matches: nhorzsize
Searched query: nhorzsize
- Sun May 12, 2024 8:27 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: CODIGO DE BARRAS. ERROR CON FILLRECT()
- Replies: 31
- Views: 6214
- 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()
... 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 :=round ( nLen * 10 * oPrint:nVertRes() / oPrint:nVertSize() ,0 )
else
nLen :=round ( nLen * 10 ...
else
nWidth :=round ( nWidth * 10 * oPrint:nHorzRes() / oPrint:nHorzSize(), 0 )
end
// Len of bar
if lHorz
nLen :=round ( nLen * 10 * oPrint:nVertRes() / oPrint:nVertSize() ,0 )
else
nLen :=round ( nLen * 10 ...
- 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.
... 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 = 8.0 in
oPrn:nVertSize() : 256 mm = 10.1 in
oPrn:GetPhySize()[1]: 215.900 [ 215.9 mm / 25.4 = 8.5 in ]
oPrn:GetPhySize()[2]: 279 ...
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 = 8.0 in
oPrn:nVertSize() : 256 mm = 10.1 in
oPrn:GetPhySize()[1]: 215.900 [ 215.9 mm / 25.4 = 8.5 in ]
oPrn:GetPhySize()[2]: 279 ...
- Mon Jan 01, 2018 11:15 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Report Margins
- Replies: 24
- Views: 4064
Re: Report Margins
... 27.4 -----> (27.9 -bottommargins)
nColF := 20.8 -----> (21.3 - rightmargins)
But How I can found these parameters from Device (oPrinter) directly ?
I try with :
nLinI := 0.5
nColI := 0.5
nLinF := oPrinter:nVertSize() / 10 - 0.5
nColF := oPrinter:nHorzSize() / 10 - 0.5
but this is right ???
nColF := 20.8 -----> (21.3 - rightmargins)
But How I can found these parameters from Device (oPrinter) directly ?
I try with :
nLinI := 0.5
nColI := 0.5
nLinF := oPrinter:nVertSize() / 10 - 0.5
nColF := oPrinter:nHorzSize() / 10 - 0.5
but this is right ???
- Mon May 22, 2017 4:39 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Felices reyes!
- Replies: 60
- Views: 24429
Re: Felices reyes!
Hola,
METHOD nVertSize()
METHOD nHorzSize()
Ambos te dan el tamaño en pixeles, por lo que si quieres las medidas en mm harias oPrn:nVertSize() * 25.4 / 72 , oPrn:nHorzSize() * 25.4 / 72
METHOD nVertSize()
METHOD nHorzSize()
Ambos te dan el tamaño en pixeles, por lo que si quieres las medidas en mm harias oPrn:nVertSize() * 25.4 / 72 , oPrn:nHorzSize() * 25.4 / 72
- Thu Sep 08, 2016 2:00 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Printing an image.
- Replies: 18
- Views: 6171
Re: Printing an image.
... Text-labelwidth OK
nLablWidth := aODat[70]
// Image-labelwidth to long
nImgWidth := Max( 0, ( aODat[70] * oPRINT:nHorzRes() / (oPRINT:nHorzSize() / 25.4 )) - oPRINT:nXoffset )
FUNCTION P_REPORT4( oMeter, oText, oDlg )LOCAL aPoint LOCAL oPRINT, oFont1, oFont2, oFont3, oPen1LOCAL ...
nLablWidth := aODat[70]
// Image-labelwidth to long
nImgWidth := Max( 0, ( aODat[70] * oPRINT:nHorzRes() / (oPRINT:nHorzSize() / 25.4 )) - oPRINT:nXoffset )
FUNCTION P_REPORT4( oMeter, oText, oDlg )LOCAL aPoint LOCAL oPRINT, oFont1, oFont2, oFont3, oPen1LOCAL ...
- Wed Sep 07, 2016 5:04 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Printing an image.
- Replies: 18
- Views: 6171
Re: Printing an image.
... use fixed tested values.
nRow = Max( 0, ( nRow * ::nVertRes() / (::nVertSize() / 25.4 ))-::nYoffset )
nCol = Max( 0, ( nCol * ::nHorzRes() / (::nHorzSize() / 25.4 ))-::nXoffset )
I will check :
// SizeInch2Pix is for converting width and height
METHOD SizeInch2Pix( nHeight, nWidth ) CLASS ...
nRow = Max( 0, ( nRow * ::nVertRes() / (::nVertSize() / 25.4 ))-::nYoffset )
nCol = Max( 0, ( nCol * ::nHorzRes() / (::nHorzSize() / 25.4 ))-::nXoffset )
I will check :
// SizeInch2Pix is for converting width and height
METHOD SizeInch2Pix( nHeight, nWidth ) CLASS ...
- Mon Jun 16, 2014 8:18 am
- Forum: FiveWin para Harbour/xHarbour
- Topic: Calculo de nLogPixY en TReport
- Replies: 2
- Views: 608
Re: Calculo de nLogPixY en TReport
... a mi con una impresora concreta : una brother hl-5350Dn . El problema esta aquí ( en mi caso , codigo en rprinter.prg )
// nAspect := ::oDevice:nHorzSize() / ::oDevice:nVertSize()
No sé si es un bug pero a mi no me detecta bien los valores ::odevice:nVertSize() , ::oDevice:nHorzSize() por lo que ...
// nAspect := ::oDevice:nHorzSize() / ::oDevice:nVertSize()
No sé si es un bug pero a mi no me detecta bien los valores ::odevice:nVertSize() , ::oDevice:nHorzSize() por lo que ...
- Mon Dec 13, 2010 4:46 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Error (6) Creating Enhanced Metafile
- Replies: 6
- Views: 1339
Re: Error (6) Creating Enhanced Metafile
... a lot for your help!!!
I've solved the problem.
After changing the printer sometimes oPrn:nVertRes(), oPrn:nHorzRes(), oPrn:nVertSize(), oPrn:nHorzSize() were 0 and that lead to a place in my source code, where an out-of-date printer handle was used again. No I make a new handle and it works ...
I've solved the problem.
After changing the printer sometimes oPrn:nVertRes(), oPrn:nHorzRes(), oPrn:nVertSize(), oPrn:nHorzSize() were 0 and that lead to a place in my source code, where an out-of-date printer handle was used again. No I make a new handle and it works ...
- Tue Jan 26, 2010 6:50 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: What's the right technique using oPrn:SayBitmap()?
- Replies: 16
- Views: 5332
Re: What's the right technique using oPrn:SayBitmap()?
Hua,
Maybe these are what you need.
nHeightPixels := Max( 0, ( nHeightInches * oPrn:nVertRes() / (oPrn:nVertSize() / 25.4 )) )
nWidthPixels := Max( 0, ( nWidthInches * oPrn:nHorzRes() / (oPrn:nHorzSize() / 25.4 )) )
Regards,
James
Maybe these are what you need.
nHeightPixels := Max( 0, ( nHeightInches * oPrn:nVertRes() / (oPrn:nVertSize() / 25.4 )) )
nWidthPixels := Max( 0, ( nWidthInches * oPrn:nHorzRes() / (oPrn:nHorzSize() / 25.4 )) )
Regards,
James
- Thu Jan 14, 2010 10:08 am
- Forum: FiveWin para Harbour/xHarbour
- Topic: preview alpha 2
- Replies: 2
- Views: 2173
Re: preview alpha 2
... nMetaWidth
if ::oWnd != nil .and. IsIconic( ::oWnd:hWnd )
return nil
endif
do case
case ! ::lTwoPages
if ! ::lZoom
if ::oDevice:nHorzSize() >= ; // landscape (apaisado) // DEVICE
::oDevice:nVertSize()
nFactor := .8 // .4
else
nFactor := .40 // .25
endif
else
nFactor := .47 ...
if ::oWnd != nil .and. IsIconic( ::oWnd:hWnd )
return nil
endif
do case
case ! ::lTwoPages
if ! ::lZoom
if ::oDevice:nHorzSize() >= ; // landscape (apaisado) // DEVICE
::oDevice:nVertSize()
nFactor := .8 // .4
else
nFactor := .40 // .25
endif
else
nFactor := .47 ...
- Tue Dec 29, 2009 10:39 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Juan Planelles Lazaga
- Replies: 9
- Views: 7596
Re: Juan Planelles Lazaga
... BOLD ITALIC
DEFINE FONT oFonSpec NAME 'Arial' SIZE 6, 13 OF oPrn
nLf *= oPrn:nVertRes()/70 // Ponemos 70 lineas para la pagina
nLc *= oPrn:nHorzSize()/80 // de imagen, y 80 columnas
nColumnas := INT( oPrn:nHorzRes() / 80 * 3 )
// en los BMPs 3 columnas libres de margen izq., para un total ...
DEFINE FONT oFonSpec NAME 'Arial' SIZE 6, 13 OF oPrn
nLf *= oPrn:nVertRes()/70 // Ponemos 70 lineas para la pagina
nLc *= oPrn:nHorzSize()/80 // de imagen, y 80 columnas
nColumnas := INT( oPrn:nHorzRes() / 80 * 3 )
// en los BMPs 3 columnas libres de margen izq., para un total ...
- Tue Nov 24, 2009 11:29 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: GetPrintDC()
- Replies: 4
- Views: 2952
Re: GetPrintDC()
... DEVICE:aMeta
local nWidth, nHeight, nFactor, nMetaWidth
if IsIconic(oWnd:hWnd)
RETU nil
endif
DO case
case ! lTwoPages
if ! lZoom
if DEVICE:nHorzSize() >= ; // landscape (apaisado)
DEVICE:nVertSize()
nFactor := .8 // .4
else
nFactor := .40 // .25
endif
else
nFactor := .47
endif
nWidth ...
local nWidth, nHeight, nFactor, nMetaWidth
if IsIconic(oWnd:hWnd)
RETU nil
endif
DO case
case ! lTwoPages
if ! lZoom
if DEVICE:nHorzSize() >= ; // landscape (apaisado)
DEVICE:nVertSize()
nFactor := .8 // .4
else
nFactor := .40 // .25
endif
else
nFactor := .47
endif
nWidth ...
- Fri Jun 05, 2009 9:30 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: COMO IMPRIMO UN CODIGO DE BARRA EN UN DIALOGO
- Replies: 2
- Views: 1385
COMO IMPRIMO UN CODIGO DE BARRA EN UN DIALOGO
... 0 ) //* 10 ,0 )//* oPrint:nVertRes() / oPrint:nVertSize() ,0 )
else
nWidth :=round ( nWidth ,0 ) //* 10 ,0 )//* oPrint:nHorzRes() / oPrint:nHorzSize(), 0 )
end
// Len of bar
if lHorz
nLen :=round ( nLen ,0 ) //* 10 ,0 )//* oPrint:nVertRes() / oPrint:nVertSize() ,0 )
else
nLen :=round ...
else
nWidth :=round ( nWidth ,0 ) //* 10 ,0 )//* oPrint:nHorzRes() / oPrint:nHorzSize(), 0 )
end
// Len of bar
if lHorz
nLen :=round ( nLen ,0 ) //* 10 ,0 )//* oPrint:nVertRes() / oPrint:nVertSize() ,0 )
else
nLen :=round ...
- Thu Feb 28, 2008 4:30 am
- Forum: FiveWin para Harbour/xHarbour
- Topic: RPREVIEW modificada por Manuel Valdenebro ?
- Replies: 8
- Views: 3759