Search found 23 matches: nhorzsize

Return to advanced search

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.400 ...
by James Bott
Tue Jun 23, 2020 12:21 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Font sizing for printout.
Replies: 3
Views: 751

Re: Report Margins

... 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 ???
by Silvio.Falconi
Mon Jan 01, 2018 11:15 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Report Margins
Replies: 24
Views: 3154

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
by Carlos Mora
Mon May 22, 2017 4:39 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Felices reyes!
Replies: 60
Views: 19233

Re: Printing an image.

... size : // 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 ...
by ukoenig
Thu Sep 08, 2016 2:00 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Printing an image.
Replies: 18
Views: 5608

Re: Printing an image.

... to 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 TPrinter ...
by ukoenig
Wed Sep 07, 2016 5:04 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Printing an image.
Replies: 18
Views: 5608

Re: Calculo de nLogPixY en TReport

... 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 ...
by mastintin
Mon Jun 16, 2014 8:18 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Calculo de nLogPixY en TReport
Replies: 2
Views: 489

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 ...
by gkuhnert
Mon Dec 13, 2010 4:46 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Error (6) Creating Enhanced Metafile
Replies: 6
Views: 1169

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
by James Bott
Tue Jan 26, 2010 6:50 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: What's the right technique using oPrn:SayBitmap()?
Replies: 16
Views: 4372

Re: preview alpha 2

... nHeight, nFactor, 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 ...
by dobfivewin
Thu Jan 14, 2010 10:08 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: preview alpha 2
Replies: 2
Views: 2033

Re: Juan Planelles Lazaga

... OF oPrn 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 ...
by Juan Planelles
Tue Dec 29, 2009 10:39 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Juan Planelles Lazaga
Replies: 9
Views: 6739

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 ...
by jbrita
Tue Nov 24, 2009 11:29 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: GetPrintDC()
Replies: 4
Views: 2708

COMO IMPRIMO UN CODIGO DE BARRA EN UN DIALOGO

... nWidth ,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 ( ...
by Vladimir Zorrilla
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: 1279

... := 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 ...
by Manuel Valdenebro
Thu Feb 28, 2008 4:30 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: RPREVIEW modificada por Manuel Valdenebro ?
Replies: 8
Views: 3362

Usa oPrn:nHorzSize() como referencia a la posición derecha.

nRigth := oRpt:nHorzSize()

oRpt:SayBitmap( .1, nRight-nWidth_Bipmap, "logo.bmp", nWidth_Bipmap, 30 )
by Alfredo Arteaga
Mon May 07, 2007 1:25 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: SayBitmap en Report
Replies: 2
Views: 909

... is actually wrong: nRow := Max( 0, ( nRow * 10 * ::nVertRes() / ::nVertSize() ) - ::nYoffset ) nCol := Max( 0, ( nCol * 10 * ::nHorzRes() / ::nHorzSize() ) - ::nXoffset ) Because the offset is being subtracted from the printable area. I'm not sure that the offset values need to be used anywhere ...
by Enrico Maria Giordano
Sun Dec 10, 2006 8:40 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Printer Printable Area
Replies: 16
Views: 7437
Next

Return to advanced search