hi all,
i have a problem with a webservice written in VB.NET. my intensions are to display a fontlist in a website. since the code i found only works in IE (look in HTML forum for the script) i was thinking of a webservice (since i already worked with this. look in PHP forum for more details).
while coding i got this code:
problem is: my IE page returns 189 fonts and my webservice only shows 163. does anyone know where my other 26 fonts go? (i'm currently working on the server so it should be the same amount.)
i have a problem with a webservice written in VB.NET. my intensions are to display a fontlist in a website. since the code i found only works in IE (look in HTML forum for the script) i was thinking of a webservice (since i already worked with this. look in PHP forum for more details).
while coding i got this code:
Code:
Public Function getFonts() As String Implements IService1.getFonts Dim strFont As String = "" Dim fonts As New InstalledFontCollection Dim families() As FontFamily = fonts.Families() Dim i As Integer = 0 For Each nfont As FontFamily In families i = i + 1 strFont &= i.ToString & ") " & nfont.Name & vbNewLine Next nfont Return strFont End Function
Comment