Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
350
Help with references needed for ServerExporterFactory
posted

I'm writing an application to generate a report and save it to file on a nightly basis. Here is a sample of what I have written:

 

using Infragistics.Reports.Server;

using Infragistics.Reports;

using (IServerExporter exporter = ServerExporterFactory.CreateExporter(reportUri))

{

     using (FileStream fileStream = new FileStream(@"C:\Test\testReport.pdf", FileMode.Create))

   {

      exporter.Export(fileStream, "PDF");

   }

}

 

In my references folder I have every 'InfragisticsWPF4.' library from the NetAdvantage/Reporting/Bin directory imported.

 

When I write the code, no errors are displayed and ServerExporterFactory and its members are visible and recognized as a Class correctly. However, when I attempt to build the solution, I get the error "Error 35 The name 'ServerExporterFactory' does not exist in the current context" and the references in the code stop being recognized and red error indicators appear underneath them in Visual Studio.

 

I'm must be missing some references somewhere. What else should I add? All I'm trying to do is generate a report and save it to file. The application has no UI or user input/output.