Search found 38 matches: nyoffset

Return to advanced search

Re: nYoffset and nXoffset

I understand but don't have a solution.
by Otto
Mon Jan 15, 2024 11:19 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: nYoffset and nXoffset
Replies: 11
Views: 1260

Re: nYoffset and nXoffset

what I want you to understand is that if I print a Box here at school I have to change the parameters of nXoffset and yOffset to 120,150 because I use the HP laserjet printer you imagine that if my program is used in another school with another printer that I don't know the parameters are wrong and ...
by Silvio.Falconi
Mon Jan 15, 2024 11:04 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: nYoffset and nXoffset
Replies: 11
Views: 1260

Re: nYoffset and nXoffset

TRy this if you make aOffset = PrnOffset( oPrn ) xbrowser aOffset and then ? oPrn:nYoffset,oPrn:nXoffset give you different values here aOffset = PrnOffset( oPrn ) give me 0,0 oPrn:nYoffset,oPrn:nXoffset give me 94,94 on class Tprinter the offset values are take ...
by Silvio.Falconi
Mon Jan 15, 2024 10:36 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: nYoffset and nXoffset
Replies: 11
Views: 1260

Re: nYoffset and nXoffset

I saw now on a oldest Tprinter class modified by Luis Krause

Vampire Path he fixed inverted values to ::nXOffset and ::nYOffset

probably fwhteannon modified these parameters taking into account Luis Krause's measures so the error in nxOffsett and nYOffset still remains
by Silvio.Falconi
Mon Jan 15, 2024 10:19 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: nYoffset and nXoffset
Replies: 11
Views: 1260

Re: nYoffset and nXoffset

I do not see that method box supports: nXoffset or nYottset. Look into printer.prg. METHOD Box( nRow, nCol, nBottom, nRight, oPen ) INLINE ; Rectangle( ::hDCOut, nRow, nCol, nBottom, nRight,; If( oPen != nil, oPen:hPen, 0 ) ) it's not the problem of oPrn:Box, but I think you have an old version of ...
by Silvio.Falconi
Mon Jan 15, 2024 9:47 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: nYoffset and nXoffset
Replies: 11
Views: 1260

Re: nYoffset and nXoffset

I do not see that method box supports: nXoffset or nYottset.
Look into printer.prg.
METHOD Box( nRow, nCol, nBottom, nRight, oPen ) INLINE ;
Rectangle( ::hDCOut, nRow, nCol, nBottom, nRight,;
If( oPen != nil, oPen:hPen, 0 ) )
by Otto
Mon Jan 15, 2024 9:12 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: nYoffset and nXoffset
Replies: 11
Views: 1260

Have the parameters Selecting a printer

local aPrn := GetPrinters()

Can I automatically have the following parameters of the printer I am going to use?

nPageWidth
nPageHeight
nXOffSet
nYOffSet
nPort
by Silvio.Falconi
Mon Jan 15, 2024 9:11 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Have the parameters Selecting a printer
Replies: 4
Views: 898

Re: nYoffset and nXoffset

Otto wrote:Link in printer.prg and insert some msgInfo().
Try to find the differences.



I update the message see the last picture
by Silvio.Falconi
Mon Jan 15, 2024 9:00 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: nYoffset and nXoffset
Replies: 11
Views: 1260

Re: nYoffset and nXoffset

Link in printer.prg and insert some msgInfo().
Try to find the differences.
by Otto
Mon Jan 15, 2024 8:56 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: nYoffset and nXoffset
Replies: 11
Views: 1260

Re: nYoffset and nXoffset

...            ENDIF            nTop  := nTopMargin            nLeft := nLeftMarginxbrowser aPrnoPrn:=PrintBegin(cDescRep,.F.,.t.,,.T.)? oPrn:nYoffset,oPrn:nXoffset   // give me 94,94*           oPrn:nYoffset  :=0*           oPrn:nXoffset  :=0PageBegin()    //first Box      PrintBox(nTop, ...
by Silvio.Falconi
Mon Jan 15, 2024 8:43 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: nYoffset and nXoffset
Replies: 11
Views: 1260

Re: nYoffset and nXoffset

nXoffset and nYoffset are only used in the methods: New - Sets nXoffset and nYoffset based on printer settings. Cmtr2Pix - Uses nXoffset and nYoffset to convert centimeters to pixels. Mmtr2Pix - Uses nXoffset and nYoffset to convert ...
by Silvio.Falconi
Mon Jan 15, 2024 7:41 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: nYoffset and nXoffset
Replies: 11
Views: 1260

Re: nYoffset and nXoffset

nXoffset and nYoffset are only used in the methods: New - Sets nXoffset and nYoffset based on printer settings. Cmtr2Pix - Uses nXoffset and nYoffset to convert centimeters to pixels. Mmtr2Pix - Uses nXoffset and nYoffset to convert ...
by Otto
Sun Jan 14, 2024 11:39 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: nYoffset and nXoffset
Replies: 11
Views: 1260

nYoffset and nXoffset

Could someone explain to me how to implement oPrn:nYoffset and oPrn:nXoffset in a print with a practical example?
what is the purpose of oPrn:nYoffset and oPrn:nXoffset ?
by Silvio.Falconi
Fri Jan 12, 2024 3:36 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: nYoffset and nXoffset
Replies: 11
Views: 1260

Re: offset

... specify a horizontal and vertical shift to center the print within the a4 sheet, I tried to insert a different value with oprn:nXOffset := 20 oprn:nYOffset := 20 but nothing happens I wanted to know how I could use it in such a context
by Silvio.Falconi
Wed Apr 19, 2023 5:07 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: offset
Replies: 3
Views: 371

Re: Font sizing for printout.

... [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 oPrn:GetPhySize()[1]: 215.900 [ 215.9 mm / 25.4 = 8.5 in ] oPrn:GetPhySize()[2]: ...
by James Bott
Tue Jun 23, 2020 12:21 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Font sizing for printout.
Replies: 3
Views: 906
Next

Return to advanced search