Smart questions
Smart answers
Smart people
Join Tek-Tips Forums
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login




Remember Me
Forgot Password?
Join Us!

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.
Jobs from Indeed

Link To This Forum!

Partner Button
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

michel392 (Programmer) (OP)
23 Aug 02 23:44
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



Helpful Member!  PeriyurParthi (IS/IT--Management)
24 Aug 02 1:04
try this

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

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

cheers
parthi



mgagnon (Programmer)
24 Aug 02 5:58
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

rgbean (Programmer)
24 Aug 02 11:18
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
michel392 (Programmer) (OP)
24 Aug 02 14:27
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

mgagnon (Programmer)
24 Aug 02 15:03
michel392

I guess I misunderstood, I thought you were use 100% VFP6.0.

Mike Gagnon

wgcs (Programmer)
25 Aug 02 11:47
As I've pointed to before (because I wrote it and I like it) a good way to print Fox 2.x @..SAY style reports under Windows (even in VFP) is using WinPrint, http://www.allamericansportsware.com/developers/winprint.htm

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close