Thanks for the reply.
It is solved now. The problem was not related with VWG6.4.
We have changed our function to get mime string directly from registry, but I don’t know why .pdf mime definition string does not exist in my Windows7 computer.
It is solved now by correcting the function to get mime.
Anyway I will post here the function, maybe could be useful to others:
public static string m_GetMimeFromFile(string file
string mime = "application/octetstream";
string ext = System.IO.Path.GetExtension(file).ToLower();
Microsoft.Win32.RegistryKey rk = Microsoft.Win32.Registry.ClassesRoot.OpenSubKey(ext);
if (rk != null && rk.GetValue("Content Type") != null)
mime = rk.GetValue("Content Type").ToString();
Thanks & Regards,
e-grou Free Edition, your free document management online. Click here to subscribe e-grou Free Edition.