Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Printing Large Letters From FoxBase/FoxPro

Posted on 2012-03-12
5
799 Views
Last Modified: 2012-08-13
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?
0
Comment
Question by:mlcktmguy
  • 2
  • 2
5 Comments
 
LVL 16

Expert Comment

by:Kalpesh Chhatrala
ID: 37713056
Hi,

Check below link there is solution for Big Character Printing

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


Kalpesh
0
 
LVL 42

Expert Comment

by:pcelba
ID: 37713427
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.
0
 
LVL 1

Author Comment

by:mlcktmguy
ID: 37716545
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?
0
 
LVL 42

Accepted Solution

by:
pcelba earned 500 total points
ID: 37716690
Yes, the Report Designer allows characters up to 127 points but then you must open the FRX file as a table and manually update the font size from 127 to whatever you need, e.g. 300.

The column name in FRX file is FontSize. After you do that then you may open the report in the Report Designer again and update the field size and position on the page.

If you would like to do it in a more sophisticated way then you have to update the Font size limitation in the ReportBuilder.App. Source code is available at http://vfpx.codeplex.com/
0
 
LVL 1

Author Closing Comment

by:mlcktmguy
ID: 37717385
Worked pefectly, thank you.
0

Featured Post

The New “Normal” in Modern Enterprise Operations

DevOps for the modern enterprise offers many benefits — increased agility, productivity, and more, but digital transformation isn’t easy, especially if you’re not addressing the right issues. Register for the webinar to dive into the “new normal” for enterprise modern ops.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Insert Sql data into Excel and Calculate a single Column 1 496
FoxPro in WIndows 10 23 6,265
SQL Select Statement Question. 5 133
file (PDF) to base64 string 2 193
Microsoft Visual FoxPro (short VFP) is a programming language with it’s own IDE and database, ranking somewhat between Access and VB.NET + SQL Server (Express). Product Description: http://msdn.microsoft.com/en-us/vfoxpro/default.aspx (http://msd…
ConnectWise and their customers need to ensure critical alerts automatically reach the right person at the right time. MSP superheros efficiently respond to these alerts key is providing automatic, intelligent alerting that generates a complete audi…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question