HtmlInfo.ImgUrl only works on inetpub root

/dampsu_2008

string strParentDirectory = Request.ApplicationPath.ToString().ToLower();

// the function above returns "/test_2008" the virtual root of site.

pdf1.HtmlInfo.ImgUrl = strParentDirectory +"/ver8_2008/images/sigs/"; DOES NOT WORK

Only works if i set all the way back to Inetpub as below

pdf1.HtmlInfo.ImgUrl = "/Inetpub/wwwroot/test_2008/ver8/images/sigs/";

Hi,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

You can get the application root path value by using ~ character. I've tested the scenario in which I've image stored in "bin" folder which is present at my application root path. I've specified the ImgUrl using following code line and the Pdf is being generated correctly.

[C#]

// Define the path for the Image files being used by the HTML file
pdf.HtmlInfo.ImgUrl = "~/bin";

Can you please try using this approach and in case you still face any problem, please feel free to contact.

thank you

joe