示例#1
0
        static void Main(string[] args)
        {
            var cr = new RunCrystal();

            //cr.BuildReport("D:\\Programs\\Profit by Customer PDF and Email\\Profit by Customer Auto-Run.rpt", "D:\\Programs\\Profit by Customer PDF and Email\\Profit by Customer.pdf");
            //cr.BuildReport("D:\\Programs\\Profit by Customer PDF and Email\\Profit by Customer Foodservice Auto-Run.rpt", "D:\\Programs\\Profit by Customer PDF and Email\\Profit by Customer Foodservice.pdf");
            cr.BuildReport("D:\\Programs\\Profit by Customer PDF and Email\\Profit by Customer Foodservice Auto-Run Updated.rpt", "D:\\Programs\\Profit by Customer PDF and Email\\Profit by Customer Foodservice Auto-Run Updated.pdf");
            //cr.BuildReport("D:\\Programs\\Profit by Customer PDF and Email\\Profit by Customer Beverage Bar Auto-Run.rpt", "D:\\Programs\\Profit by Customer PDF and Email\\Profit by Customer Beverage Bar.pdf");
            cr.BuildReport("D:\\Programs\\Profit by Customer PDF and Email\\Profit by Customer Beverage Bar Auto-Run Updated.rpt", "D:\\Programs\\Profit by Customer PDF and Email\\Profit by Customer Beverage Bar Auto-Run Updated.pdf");
            cr.BuildReport("D:\\Programs\\Profit by Customer PDF and Email\\Profit by Customer Beverage Bar Auto-Run Updated OCA.rpt", "D:\\Programs\\Profit by Customer PDF and Email\\Profit by Customer Beverage Bar Auto-Run Updated OCA.pdf");
            cr.BuildReport("D:\\Programs\\Profit by Customer PDF and Email\\Profit by Customer Foodservice Auto-Run Updated OCA.rpt", "D:\\Programs\\Profit by Customer PDF and Email\\Profit by Customer Foodservice Auto-Run Updated OCA.pdf");

            cr.SetSubject("Profit by Customer");
            cr.SetToAddress("*****@*****.**");
            cr.SetToAddress("*****@*****.**");
            cr.SetToAddress("*****@*****.**");
            cr.SetToAddress("*****@*****.**");
            cr.SetToAddress("*****@*****.**");
            cr.SetToAddress("*****@*****.**");
            //cr.SetAttachments("D:\\Programs\\Profit by Customer PDF and Email\\Profit by Customer.pdf");
            //cr.SetAttachments("D:\\Programs\\Profit by Customer PDF and Email\\Profit by Customer Foodservice.pdf");
            cr.SetAttachments("D:\\Programs\\Profit by Customer PDF and Email\\Profit by Customer Foodservice Auto-Run Updated.pdf");
            //cr.SetAttachments("D:\\Programs\\Profit by Customer PDF and Email\\Profit by Customer Beverage Bar.pdf");
            cr.SetAttachments("D:\\Programs\\Profit by Customer PDF and Email\\Profit by Customer Beverage Bar Auto-Run Updated.pdf");
            cr.SendEmail();

            //var crOca = new RunCrystal();
            //crOca.SetSubject("Profit by Customer");
            //crOca.SetToAddress("*****@*****.**");
            //crOca.SetAttachments("D:\\Programs\\Profit by Customer PDF and Email\\Profit by Customer Beverage Bar Auto-Run Updated OCA.pdf");
            //crOca.SetAttachments("D:\\Programs\\Profit by Customer PDF and Email\\Profit by Customer Foodservice Auto-Run Updated OCA.pdf");
            //crOca.SendEmail();
        }
示例#2
0
        static void Main(string[] args)
        {
            var cr = new RunCrystal();

            cr.BuildReport("D:\\Programs\\Discount Tobacco Center\\Discount Tobacco Center Orders.rpt", "D:\\Programs\\Discount Tobacco Center\\Discount Tobacco Center Orders.pdf");

            cr.SetToAddress("*****@*****.**");
            cr.SetToAddress("*****@*****.**");
            cr.SetToAddress("*****@*****.**");

            cr.SetSubject("Discount Tobacco Center Orders " + DateTime.Now.ToString("MM-dd"));
            cr.SetAttachments("D:\\Programs\\Discount Tobacco Center\\Discount Tobacco Center Orders.pdf");
            cr.SendEmail();
        }