Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Converting DOS reports
Message
De
13/06/2002 09:37:44
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
10/06/2002 09:53:33
Jack Liebschutz
Black Mountain Software
Polson, Montana, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00666501
Message ID:
00667902
Vues:
23
>I am trying to convert reports from FP DOS and cannot find a font that will still allow me to have 132 columns, be readable, and be able to be distributed to 300 clients. Any thoughts?

In VFP 5.0 I have tweaked the converter to detect the line width in the report, and use Arial Narrow (which was somehow available by default in the W98 distribution at the time - I don't see it that often anymore). Anyway, the fix is in the procedure AllEnviron, at about 15th line - I've included few lines before and after it, so here it is:
   IF objtype = c_otheader OR (m.g_filetype = c_label AND objtype = c_ot20label)
      m.g_windheight = HEIGHT
      m.g_windwidth = WIDTH
	do case
		case m.g_windwidth>97
			m.g_dfltFFace="Arial Narrow"
			m.g_dfltFSize=9
		case m.g_windwidth>81
			m.g_dfltFFace="Arial"
			m.g_dfltFSize=9
	endcase
	m.g_rptlinesize      = (FONTMETRIC(1, m.g_rptfface, m.g_rptfsize, m.g_rpttxtfontstyle) / m.g_pixelsize) * 10000
	m.g_rptcharsize      = (FONTMETRIC(6, m.g_rptfface, m.g_rptfsize, m.g_rpttxtfontstyle) / m.g_pixelsize) * 10000
This goes into transprt.prg; I think it's still called the same and it should be somewhere in the Convert subdirectory below home().

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform