GetContracts() public static method

public static GetContracts ( ) : IEnumerable
return IEnumerable
        public static void Run()
        {
            // ExStart:ProgressiveTotal
            // The path to the documents directory.
            string dataDir  = RunExamples.GetDataDir_LINQ();
            string fileName = "ProgressiveTotal.doc";

            // Load the template document.
            Document doc = new Document(dataDir + fileName);

            // Create a Reporting Engine.
            ReportingEngine engine = new ReportingEngine();

            // Execute the build report.
            engine.BuildReport(doc, Common.GetContracts(), "contracts");
            dataDir = dataDir + RunExamples.GetOutputFilePath(fileName);
            // Save the finished document to disk.
            doc.Save(dataDir);
            // ExEnd:ProgressiveTotal
            Console.WriteLine("\nFile saved at " + dataDir);
        }
Exemplo n.º 2
0
        public static void Run()
        {
            //ExStart:InTableAlternateContent
            // The path to the documents directory.
            string dataDir  = RunExamples.GetDataDir_LINQ();
            string fileName = "InTableAlternateContent.doc";
            // Load the template document.
            Document doc = new Document(dataDir + fileName);

            // Create a Reporting Engine.
            ReportingEngine engine = new ReportingEngine();

            // Execute the build report.
            engine.BuildReport(doc, Common.GetContracts(), "contracts");

            dataDir = dataDir + RunExamples.GetOutputFilePath(fileName);

            // Save the finished document to disk.
            doc.Save(dataDir);
            //ExEnd:InTableAlternateContent
            Console.WriteLine("\nIn-Table list with alternate content template document is populated with the data about clients and contract price.\nFile saved at " + dataDir);
        }
Exemplo n.º 3
0
        public static void Run()
        {
            //ExStart:ChartWithFilteringGroupingOrdering
            // The path to the documents directory.
            string dataDir  = RunExamples.GetDataDir_LINQ();
            string fileName = "ChartWithFilteringGroupingOrdering.docx";
            // Load the template document.
            Document doc = new Document(dataDir + fileName);

            // Create a Reporting Engine.
            ReportingEngine engine = new ReportingEngine();

            // Execute the build report.
            engine.BuildReport(doc, Common.GetContracts(), "contracts");

            dataDir = dataDir + RunExamples.GetOutputFilePath(fileName);

            // Save the finished document to disk.
            doc.Save(dataDir);
            //ExEnd:ChartWithFilteringGroupingOrdering

            Console.WriteLine("\nChart with filtering, grouping and ordering template document is populated with the data about contracts.\nFile saved at " + dataDir);
        }