string pdfOutputFIleName = @"D:\testoutputAsPdf.pdf";
var urlAsPdf = @"http://dotnetdream.com";
var client = new WebClient();
client.UseDefaultCredentials = true;
//client.Headers.Add("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)");
client.Headers.Add("Content-Type", "application/pdf");
client.DownloadFile(urlAsPdf, pdfOutputFIleName);
the file is created fine and opens in word but not in acrobat reader and the error is not the supported format. Pls help
Thanks
Go to the complete details ...