Solved

Printing Large Letters From FoxBase/FoxPro

Posted on 2012-03-12
5
828 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
[X]
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
  • 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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

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…
Facebook has became the #1 social media platform. People share many funny videos there, yet you don't know how to download them? Now you can download Videos from Facebook in just 3 simple steps.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

726 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