Avatar of mlcktmguy
mlcktmguy
Flag for United States of America asked on

Printing Large Letters From FoxBase/FoxPro

I have a prospective client using Foxpro (VFP 7) that asked a seemingly simple question but it has been a very long time (7 - 8 years) since I used Foxpro.  When I looked at the app it was really FoxBase using the @Say to create output reports etc..

The previous developer used escape codes to control the format of printed output.  I vaguely remember using them to control the length of the output form, the CPI of the print, the orientation and I think even the font of the output.

Back to the question.  He wants to be able to print output from the system in large (3 or 4 inches high) letter/numbers to label/direct incoming inventory.  

The alphanumeric contents of what he wants to print will be in a variable called 'BinNum'.  He wants the contents of BinNum to print on a piece of paper with the letters being at least 3 inches high, with the option of making them 4 inches high.

I am really rusty on the syntax but the general idea would be

Set Printer to xxx....

STORE CHR(27) + CHR(119) + CHR(49) TO BigLetters      'I realize these are not correct
                                                                                              codes,   just an example

??BigLetters

@ 5,5 Say BinNum

Is his request possible using escape codes?  If not, how can it be accomplished?
FoxPro

Avatar of undefined
Last Comment
mlcktmguy

8/22/2022 - Mon
Kalpesh Chhatrala

Hi,

Check below link there is solution for Big Character Printing

http://www.tek-tips.com/viewthread.cfm?qid=559618


Kalpesh
Pavel Celba

VFP 7 means WIndows and Windows means TrueType fonts so nothing easier that to create a standard report in VFP.

Place your texts into a table and create the report by CREATE REPORT command.

The Report Designer allows to set the font size as large as you need.
mlcktmguy

ASKER
My first attempt was to create a table based VFP report as pcelba suggested.

I created the report but when I sized the font thelargest option was 72 which prints about 1 inch high.

Are their options that I'm missing?
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
ASKER CERTIFIED SOLUTION
Pavel Celba

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
mlcktmguy

ASKER
Worked pefectly, thank you.