In our company, we are using a reports server with Business Objects 2008 Enterprise. One of our apps tries to generate a report and download it in PDF format. This app is written in C# source code. We use the following link:
If I use this link in Internet Explorer, the report is launched correctly. But if I use it in our program, it fails. The source code I use is:
WebClient client = new WebClient();
String sArchivoTemporal = "C:\\Personal\\temporal.pdf";
try{
client.DownloadFile(uriString, sArchivoTemporal);
Console.WriteLine("File downloaded.");
Console.ReadKey();
} catch (Exception ex)
{
Console.WriteLine("Error: "+ex.Message);
Console.ReadKey();
}
We have used this way to download in a server with Business Objects XI for a long time with no errors. I don't know why this program doesn't work now.
I need your help, please.
Regards.