Search found 18 matches: getphysize

Return to advanced search

Re: Font sizing for printout.

... that nHorzRes() was the dimension of the paper but it is the printable area of the page. All the vars refer 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 ...
by James Bott
Tue Jun 23, 2020 12:21 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Font sizing for printout.
Replies: 3
Views: 749

Re: Impresión en distintos anchos de carro

Loren, pensaba que el tema de la detección del ancho de carro lo tenias solucionado
De momento, puedes utilizar un ini en el que pongas en una clave el tipo de carro que tienes
Pero, has probado con las funciones de deteccion del tamaño utilizando funciones del tipo oPrn:GetPhySize(), o algo asi?
by cnavarro
Tue Aug 22, 2017 10:16 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Impresión en distintos anchos de carro
Replies: 3
Views: 483

Re: TImprime... como hago una linea del ancho de la pagina?

Creo que TImprime es una clase derivada de TPrinter, si es así puedes usar oPrn : GetPhySize(). Te da el alto y ancho en milímetros.

Saludos
by horacio
Tue Jan 17, 2017 3:23 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: TImprime... como hago una linea del ancho de la pagina?
Replies: 3
Views: 527

un pequeño cambio para tprinter

... se calculaba despalzado. He creado dos nuevos metodos y corregido el anterior y ahora si me funciona correcto : METHOD CmVertPhySize() INLINE ::GetPhySize()[2] / 10 METHOD CmHorzPhySize() INLINE ::GetPhySize()[1] / 10 METHOD CmtrTextToCenter( cText, oFont ) INLINE ; ( ::CmHorzPhySize() /2 ) ...
by mastintin
Tue Jul 23, 2013 7:31 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: un pequeño cambio para tprinter
Replies: 1
Views: 653

Re: Save & Restore paper size

Hua,

Well what paper size is the printer set for and what is oPrinter:GetPhySize() returning?

James
by James Bott
Mon Nov 15, 2010 2:52 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Save & Restore paper size
Replies: 3
Views: 718

Re: Save & Restore paper size

Thanks for the reply James. I found those 2 and had tried using them but couldn't get them to work properly as I'm not sure how to correctly convert the values returned by oPrinter:GetPhySize()
by hua
Sun Nov 14, 2010 12:22 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Save & Restore paper size
Replies: 3
Views: 718

Re: Save & Restore paper size

... set the size in inches oPrinter:setSize( 254 * nWidth, 254 * nHeight) Where nWidth and nHeight are in inches. -------------------------- oPrinter:GetPhySize() An array with the dimensions of the paper: {nHeight ,Width} Units of height and width are not given in the help file. ----------------------------
by James Bott
Fri Nov 12, 2010 6:37 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Save & Restore paper size
Replies: 3
Views: 718

Detecting the printer page size

Hi all,
I know that in order to detect the printer page size I can use oPrn:GetphySize() but is there a function to have directly the page format (example A4, A5, A3....) ?

Thanks
by Marco Turco
Wed Sep 10, 2008 6:29 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Detecting the printer page size
Replies: 1
Views: 1299

... and width? Date: Wednesday, November 22, 2000 11:06 AM Try this ... function UserFormat() oPrn:=PrintBegin("",.f.,.T.) oPrn:SetPortrait() aa:=oPrn:GetPhysize() old1:=round(aa[1],0) && actual value old2:=round(aa[2],0) && actual value x1:=old1 x2:=old2 DimUtente() && request ...
by James Bott
Fri Nov 30, 2007 11:39 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Setting paper size
Replies: 2
Views: 716

... 300 oPrn:nLogPixely(): 300 oPrn:nXOffset: 75 oPrn:nYOffset: 75 oPrn:nHorzSize() : 203 mm = 8.0 inches oPrn:nVertSize() : 256 mm = 10.1 inches oPrn:GetPhySize()[1]: 215.900 [ 215.9 mm / 25.4 = 8.5 in ] oPrn:GetPhySize()[2]: 279.400 [ 279.4 mm / 25.4 = 11 in ] Note that nHorzRes and nHorzSize are ...
by James Bott
Sun Dec 10, 2006 8:17 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Printer Printable Area
Replies: 16
Views: 7231

Enrico, Actually, nHorzSize() and nHorzRes() are both for printable area. I didn't realize this until now. All the vars except GetPhySize() are for printable area. James From MSDN: HORZSIZE Width, in millimeters, of the physical screen. VERTSIZE Height, in millimeters, of the physical ...
by Enrico Maria Giordano
Sun Dec 10, 2006 7:50 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Printer Printable Area
Replies: 16
Views: 7231

Enrico,

Actually, nHorzSize() and nHorzRes() are both for printable area. I didn't realize this until now. All the vars except GetPhySize() are for printable area.

James
by James Bott
Sun Dec 10, 2006 7:30 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Printer Printable Area
Replies: 16
Views: 7231

... ] oPrn:nVertRes() - (2 * oPrn:nYOffset): 2875 [2875/300dpi = 9.6 in ] oPrn:nHorzSize() : 203 mm = 8.0 in oPrn:nVertSize() : 256 mm = 10.1 in oPrn:GetPhySize()[1]: 215.900 oPrn:GetPhySize()[2]: 279.400 =========================== oPrn:cModel: hp officejet 5500 series,winspool,USB001 oPrn:nHorzRes(): ...
by James Bott
Sat Dec 09, 2006 3:50 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Printer Printable Area
Replies: 16
Views: 7231

... 0003:9248 00065H _FILLRECT CODE 0003:92AE 00091H CMTR2PIX CODE 0003:9340 00109H CMRECT2PIX CODE 0003:944A 000A1H INCH2PIX CODE 0003:94EC 00090H GETPHYSIZE CODE 0003:957C 0009AH SETFONT CODE 0003:9616 000B8H SETFONT CODE 0003:96CE 0008FH SETFONT CODE 0003:975E 000B8H CHARSAY CODE 0003:9816 0005CH ...
by Connan
Fri Mar 03, 2006 10:28 am
 
Forum: FiveWin para CA-Clipper
Topic: GPF, como buscar el Error
Replies: 3
Views: 3528

GPF, como buscar el Error

... 0003:9248 00065H _FILLRECT CODE 0003:92AE 00091H CMTR2PIX CODE 0003:9340 00109H CMRECT2PIX CODE 0003:944A 000A1H INCH2PIX CODE 0003:94EC 00090H GETPHYSIZE CODE 0003:957C 0009AH SETFONT CODE 0003:9616 000B8H SETFONT CODE 0003:96CE 0008FH SETFONT CODE 0003:975E 000B8H CHARSAY CODE 0003:9816 0005CH ...
by Connan
Tue Feb 28, 2006 5:36 pm
 
Forum: FiveWin para CA-Clipper
Topic: GPF, como buscar el Error
Replies: 3
Views: 3528
Next

Return to advanced search