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!

How to register a font with VBA or MS 2007 installer 1

Status
Not open for further replies.

stevedemo

Programmer
Mar 30, 2008
54
US
I have a Access Solution that I have created, a few of the fonts are non standard. Is there a way to register the fonts with VBA ? Or the 2007 Devloper extensions ?

Thanks,

Steve

All I want is the chance to prove money won't make me happy.
 
How are ya stevedemo . . .

Be aware, this is a windows question, not Access!

Typically its [blue]Control Panel[/blue] - [blue]Fonts[/blue] - [blue]File[/blue] - [blue]Install New Font[/blue].

Calvin.gif
See Ya! . . . . . .

Be sure to see thread181-473997
Also faq181-2886
 
Apparently it is possible to use Wsshell:

From:
Code:
If not fso.FileExists(windir&"\Fonts\myfont.Ttf") then 
    fso.copyfile LDrive&"\Patches\myfont.Ttf",windir&"\Fonts\myfont.Ttf" 
End If 
If Inwin=1 Then 
    Reg="Windows NT" 
Else 
      Reg="Windows" 
End If 
Result = WshShell.Regread 
("HKLM\Software\Microsoft\"&Reg&"\Currentversion\Fonts","Font entry") 
If Result <> "myfont.ttf" Then 
    Wshshell.RegWrite 
("HKLM\Software\Microsoft\"&Reg&"\Currentversion\Fonts\Font Entry", 
"myfont.TTF","REG_SZ") 
End If
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top