2013-05-04 77 views

回答

0
 WebClient wb = new WebClient(); 
     var data = new NameValueCollection(); 
     data["publicationID"] = "6dce3366"; //Netto ID 
     data["selectedPages"] = "all"; 


     byte[] responsebytes = wb.UploadValues("http://viewer.zmags.com/services/DownloadPDF", "POST", data); 
     System.IO.File.WriteAllBytes(@"C:\Tilbudsavis.pdf", responsebytes); 

這就是答案。