Solved

Printing Large Letters From FoxBase/FoxPro

Posted on 2012-03-12
5
738 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 41

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 41

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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…
Are you unable to connect or configure Hotmail email account in Microsoft Outlook 2010, 2007? Or Outlook.com emails are not downloading to Outlook? Lets’ see the problem and resolve Outlook Connector error syncing folder hierarchy (0x8004102A).
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

747 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now