How to set font

If you are a VFP developer and have any questions about using our products from VFP here is the place to post them.
Post Reply
Holsche
Posts: 2
Joined: Thu Nov 07 2002

How to set font

Post by Holsche »

Hi all,

I'm working with in a weird environment - because we use fox 2.6 and visual foxpro at the same time, most of the reports are fox 2.6 style (thus no font information included in the frx/frt files).

Printing those reports from visual foxpro to a printer is fine - a mono space font is used so that an X takes the same space as an i and the document looks o.k.

However, printing to a pdf file using amyuni pdf a non mono-spaced font like arial is used. I am using the latest version from the web site (trial version).

Is there a way to set the font used (e.g. Courier New) in the created PDF document ?

Any help is greatly appreciated.
Holger
Holsche
Posts: 2
Joined: Thu Nov 07 2002

Post by Holsche »

additional information:

below is the code that I am using. Please note that when activating the preview option in the REPORT FORM clause the report looks fine on the screen (mono-space font used).

------------

SET LIBRARY TO "C:\amyunipdf\fox\FllIntf.fll" ADDITIVE

#define printername "Amyuni PDF Converter"
#define filename "c:\temp\invoice.pdf"

PDF = DriverInit(printername)

DefaultFileName( PDF, filename )

set printer to name printername

REPORT FORM c:\temp\invoice.frx NOEJECT NOCONSOLE TO PRINTER && preview

set printer to
Post Reply