Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Report on pre-printed paper

Status
Not open for further replies.

newtofoxpro

Programmer
Sep 16, 2007
301
IN
This is FPW code

PosFromTop = 3
PosFromLeft = 2
SpaceBetweenCharactor = 2.5
WhatToPrint = "MY NAME IS JOHN"
@ PosFromTop,PosFromLeft say SUBSTR(WhatToPrint,1,1) size 1,SpaceBetweenCharactor
FOR mCnt=2 TO LEN(WhatToPrint)
@ $,$ say SUBSTR(WhatToPrint,mCnt,1) size 1,SpaceBetweenCharactor
ENDFOR
**************************************
WhatToPrint is string I have to print via report. With Custom-define location. Not tried but learn that I will have to alter FRX and change vpos & hpos.
My pre-printed paper has small-boxes where I have to write each character in the box. For Example... 1st box <M>, 2nd box <Y> and so on. Fortunately each box width is equal.

Best Regards.



 
FRX reports are not well suited for this case.

I would perhaps add a scan picture of the form as background image (set to not printing via printwhen = .F. or let it depend on SYS(2040)=1 and put report controls where the form has it's "boxes".

@SAY may have advantages here, but only if the printer itself can be addressed by this kind of positioning. You rather would use generic/text printer and print text only with LFs and or CRs and spaces with ???.

Bye, Olaf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top