Last post Oct 22, 2007 08:27 AM by micromax_bg
Oct 08, 2007 05:33 AM|micromax_bg|LINK
I want to use a font situated in my project folder for generating an watermark image.
The problem is that, the class for generating the watermark image is in App_Code folder in my website and it's impossible to use Server.MapPath from there (i can't add reference to the System.Web.HttpServerUtility object ). I need this method to show the
path to the font. that I want to use. For more info you can check this:
For generating the watermark I am using something similar to this:
Does anyone tell me how to do that?
non system fonts
Oct 22, 2007 08:27 AM|micromax_bg|LINK
I fix it.
I created the CreateWatermark class in App_Code and got the path to the font folder like parameter.
In that way I can use Server.MapPath in my code-behind and to find the exact location of the desired font. Then I can access this font from the file in App_Code folder without using the MapPath method.