示例#1
0
        // GET: Pptx
        public ActionResult Index()
        {
            var mng = new Pptx();
            var sm  = new SettingsManager();

            mng.SetFolder(sm.GetSetting("folder_presentation", ""));
            ViewBag.CountSlide = mng.CountSlide();
            return(View());
        }
示例#2
0
        public JsonResult DelitSlide(int numSlide, int count)
        {
            var mng = new Pptx();
            var sm  = new SettingsManager();

            mng.SetFolder(sm.GetSetting("folder_presentation", ""));
            bool newSlide = mng.DeleteSlide(numSlide, count);

            return(new JsonResult
            {
                Data = newSlide,
                JsonRequestBehavior = JsonRequestBehavior.AllowGet
            });
        }
示例#3
0
        public JsonResult AddSlide(int Count)
        {
            var mng = new Pptx();
            var sm  = new SettingsManager();

            mng.SetFolder(sm.GetSetting("folder_presentation", ""));
            bool newSlide = mng.CloneSlidePart(Count);

            return(new JsonResult
            {
                Data = newSlide,
                JsonRequestBehavior = JsonRequestBehavior.AllowGet
            });
        }
示例#4
0
        public JsonResult SetParameters(string[] arrayParameters, int numberSlide)
        {
            var mng = new Pptx();
            var sm  = new SettingsManager();

            mng.SetFolder(sm.GetSetting("folder_presentation", ""));
            mng.SetPPTShapeText(arrayParameters, numberSlide);

            return(new JsonResult()
            {
                Data = "jbsdlj",
                JsonRequestBehavior = JsonRequestBehavior.AllowGet
            });
        }