Search found 25 matches: nlogpixelx

Return to advanced search

Re: Font sizing for printout.

... 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 = 8.0 in oPrn:nVertSize() : 256 mm = 10.1 in ...
by James Bott
Tue Jun 23, 2020 12:21 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Font sizing for printout.
Replies: 3
Views: 767

Re: imprimir etiqueta en zebra GC420t

... oBr color CLR_YELLOW define font oFont name 'ARIAL' size 0, -12 of oPr define font oFont1 name 'ARIAL' size 0, -10 of oPr rescoluna:=oPrinter:nlogpixelx()/2.54 reslinha:=oPrinter:nlogpixely()/2.54 *if msgyesno ("Imprime Codigo de trazabilidad ","Trazabilidad Compras") store ...
by devwin2010
Thu Apr 12, 2018 1:38 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: imprimir etiqueta en zebra GC420t
Replies: 4
Views: 1169

Re: Report Margins

... ER I use that my app I saw you at sillian but this afternoon perhaps I found a solution oPrinter := TPrinter():New( ...... ) nLogPixX := oPrinter:nLogPixelX() / 2.54 ( centimetres) nLogPixY := oPrinter:nLogPixelY() / 2.54 nLeftMargin := Int( nLogPixX * 0.5 ) nRightMargin := Int( nLogPixX * 0.5 ...
by Silvio.Falconi
Mon Jan 01, 2018 6:30 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Report Margins
Replies: 24
Views: 3221

Re: Print-preview with different results ?

If you use msginfo( oprn:nLogPixelX() ) at the beginning of the print job ,you will see that the printer have different value for ppp . I have seen values for different printers ( 300, 600, 1200 px ) in my tests . if your image have 300px ...
by mastintin
Wed Jun 01, 2016 7:05 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Print-preview with different results ?
Replies: 10
Views: 3142

Re: TPrinter recent methods PrintImage() and SayText()

Mr. Nages .I will try to create a compact example for this. Return ( nRow * 25.4 / ::nLogPixelX() ) / 10 Should we not adjust the oPrn:yOffSet ? He has been taken of the code : METHOD Pix2Cmtr( nRow, nCol ) INLINE ; ( nRow := ( nRow * 25.4 / ::nLogPixelX() ) / 10,; ...
by mastintin
Wed May 04, 2016 10:06 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: TPrinter recent methods PrintImage() and SayText()
Replies: 19
Views: 4199

Re: TPrinter recent methods PrintImage() and SayText()

... lStretch did not work? Did you want to print the image from edge to edge of the paper? Any suggestion or advice from you? Return ( nRow * 25.4 / ::nLogPixelX() ) / 10 Should we not adjust the oPrn:yOffSet ?
by nageswaragunupudi
Wed May 04, 2016 9:19 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: TPrinter recent methods PrintImage() and SayText()
Replies: 19
Views: 4199

Re: TReport samples

... } ( test version 2 ) it works. oRepo:bStartRecord := { || oRepo:box( oRepo:nRow / oRepo:oDevice:nLogPixelY, oRepo:nMargin/oRepo:oDevice:nLogPixelX, ( oRepo:nRow + oRepo:nStdLineHeight) / oRepo:oDevice:nLogPixelY, RightMargin( oRepo ) / oRepo:oDevice:nLogPixelX , 1 ) } works with cutepdf ...
by mosh1
Mon Apr 29, 2013 9:22 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TReport samples
Replies: 30
Views: 4628

Re: TReport samples

... } ( test version 2 ) it works. oRepo:bStartRecord := { || oRepo:box( oRepo:nRow / oRepo:oDevice:nLogPixelY, oRepo:nMargin/oRepo:oDevice:nLogPixelX, ( oRepo:nRow + oRepo:nStdLineHeight) / oRepo:oDevice:nLogPixelY, RightMargin( oRepo ) / oRepo:oDevice:nLogPixelX , 1 ) } works with cutepdf ...
by ADutheil
Mon Apr 29, 2013 8:57 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TReport samples
Replies: 30
Views: 4628

clase tprinter como destruir el objeto oprn sin que imprima

... else cModel := oPrn:GetModel() // impresora elegida por el usuario endif if vtippap == 1 ...parametros y variables para tdosprn else if oPrn:nLogPixelX() <= 100 // matriz de puntos mini if alltrim(UPPER(cModel)) != alltrim(UPPER(CMIIMPREDEFAULT)) // impresora 2 = en archivo cmodel es la ...
by mikeone
Sat Nov 10, 2012 6:50 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: clase tprinter como destruir el objeto oprn sin que imprima
Replies: 0
Views: 420

print labels on TPrinter

... BENDEZU CUADROS" aCoord = oPrn: Cmtr2Pix (29.7, 21) nfilpix: = int (aCoord [2] / 2) / / middle row of pixels nfilmm = nfilpix * 25.4 / oPrn: nLogPixelX () / / convert pixels to mm nfilcm = nFilmm/10 / / convert the mm to cm. PAGE oPrn: CmSay (nfilcm, 1, cCad1, oFont,,, 0) Do I need to find ...
by artu01
Tue Aug 02, 2011 8:49 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: print labels on TPrinter
Replies: 1
Views: 466

imprimir rotulo con tprinter

... BENDEZU CUADROS" aCoord:= oPrn:Cmtr2Pix( 29.7, 21 ) nfilpix:=int(aCoord[2]/2) // mitad de fila en pixeles nfilmm:= nfilpix * 25.4 / oPrn:nLogPixelX() // convierto los pixeles en mm nfilcm := nFilmm/10 // convierto los mm en cm. PAGE oPrn:CmSay(nfilcm,1,cCad1, oFont,,,0) ¿Me falta hallar ...
by artu01
Tue Aug 02, 2011 8:41 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: imprimir rotulo con tprinter
Replies: 4
Views: 978

Re: Paper size problems

... inches. So you need to get the pixels per inch from oPrinter. Try this: nPWid:= 4 // in inches nPHgt:= 6 // in inches oPrinter:SetSize( oPrinter:nLogPixelx() * nPWid, oPrinter:nLogPixely() * nPHgt ) James
by James Bott
Fri Apr 23, 2010 6:53 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Paper size problems
Replies: 9
Views: 2437

Re: TPrinter Sample

... oFont1 name "Courier New" size 0,-10 of oPrn oFont:Activate(oPrn:hDC) oFont1:Activate(oPrn:hDC) nRd := oPrn:nLogPixelY/6 nCd := oPrn:nLogPixelX/10 nCd1 := oPrn:nLogPixelX/15 lDate := FALSE oInvc:Select() oInvc:SetOrder('CODE') oInvc:Top() cCode := oInvc:code CalcDays(aDates) // for ...
by Colin Haig
Thu Oct 22, 2009 10:30 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TPrinter Sample
Replies: 2
Views: 708

Re: Problem in alligning say in report

... printer and paper. You have to compensate by calculating the actual distances. These print device properties return the pixels per inch: oRpt:oPrn:nLogPixelx(): 300 pixels per inch horizontal oRpt:oPrn:nLogPixely(): 300 pixels per inch vertical So, if you are doing nRow + 100 (pixels) that is 100/300 ...
by James Bott
Sat Sep 12, 2009 6:08 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problem in alligning say in report
Replies: 6
Views: 998

... no xHarbour q. faça isso q. vc quer mas ela ainda apresenta problemas como por exemplo JATO DE TINTA EPSON STYLUS C79 em modo economico oPrn:nLogPixelX () = 120 e isso ira te trazer problemas pos uma matricial MATRICIAL EPSON LX 300 oPrn:nLogPixelX () = 240 X 144 maior q. a jato de tintas ...
by marca
Wed Oct 29, 2008 4:04 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Detect Type of Printer whether DOT Matrix or Inkjet/Laser
Replies: 4
Views: 1568
Next

Return to advanced search