Hello dears, please can somebody help I cant see the error here!
Private Sub SaveReport(ByVal vORderNum As String, ByVal vGUID As String)
Dim Client As New system.net.WebClient()
Dim url As String = "192.168.0.79/ReportServer/Pages/ReportViewer.aspx?%2fEpicor10Test%2fCustomWork%2fSalesOrderAcknowledgement%2fSOForm&rs:Format=PDF&rs:Command=Render&TableGuid=" & vGUID
Client.UseDefaultCredentials = True
msgbox(vORderNum)
Client.DownloadFile(url,"C:\temp\" & vORderNum & ".pdf")
End Sub