public void Client_PostODataSample() { var dataSources = new Dictionary<string, DataSource>() { {"", new ODataDataSource(new Uri("http://odata.windward.net/Northwind/Northwind.svc"), 2)} }; var templateFilePath = SampleTemplatesFolder + @"\ODataSample.docx"; var outputFilePath = SampleTemplatesFolder + @"\ODataOutput.docx"; using (var templateFile = File.OpenRead(templateFilePath)) { using (var outputFile = File.Create(outputFilePath)) { var report = new ReportDocx(uri, templateFile, outputFile); report.Process(dataSources); } } }
public static void Request9() { var dataSources = new Dictionary<string, DataSource>() { {"", new ODataDataSource(new Uri("http://odata.windward.net/Northwind/Northwind.svc"), 2)} }; var templateFilePath = SampleTemplatesFolder + @"\ODataSample.docx"; var outputFilePath = string.Format(@"{0}\ODataOutput{1}.docx", SampleTemplatesFolder, rnd.Next()); using (var templateFile = File.OpenRead(templateFilePath)) { using (var outputFile = File.Create(outputFilePath)) { var report = new ReportDocx(uri, templateFile, outputFile); report.Process(dataSources); } } }