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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Different fonts in .PRG and .EXE 1

Status
Not open for further replies.

michel392

Programmer
Dec 17, 2001
54
BR
When I am inside the Visual FoxPro 6.0 I execute a program to print some lines and it prints in the font I expected to be printed, for example, Arial.
Then when I use the generated .EXE file, outside the VFP environment, the fonts are much different (it prints similar to Handwriting font)

I use the following command in the program:

* REPORT1.PRG
*
SET DEVICE TO PRINTER PROMPT
SET PRINTER FONT 'Arial',12
LINEX=PROW()
@LINEX, 10 SAY "This is font size 12"

SET PRINTER FONT 'Arial',10
LINEX=PROW()
LINEX=LINEX+1
@LINEX, 10 SAY "This is font size 10"

EJECT
SET DEVICE TO SCREEN
RETURN

Please what to do to the program print the same font in both .PRG (inside the VFP environment) and in the later generated .EXE file ?

Thanks,
michel392



 
try this

F1=[FONT 'Terminal',15 STYLE 'B' COLOR RGB(255,255,255)]

@LINEX, 10 SAY "This is font size 12" &F1

cheers
parthi



 
michel392

Is there a reason why you choose to print out with a technic that went out over 10 years ago? Have you considered using the VFP report generator?
Mike Gagnon
 
michel392,
If the printer and/or the Windows printer driver the user chooses doesn't support your choosen font, there's not much you can do about it!
For example, if they choose a Dot Matrix Printer that's set up to use the Generic / Text Only printer driver, then it will print in what font and size the printer is currently set to.

Rick
 
mgagnon:

The reason I use a 10 years ago technic is that I already have the program written in FoxPro 2.0 which prints the report and I don't believe this special report could be generated by VFP report generator.

Thanks for your advice, anyway.

Michel

 
michel392

I guess I misunderstood, I thought you were use 100% VFP6.0.
Mike Gagnon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top