Esempio n. 1
0
        /// <summary>
        /// Loads the input template
        /// </summary>
        /// <param name="sender">contains a reference to the control/object that raised the event</param>
        /// <param name="e">contains the event data</param>
        private void btnInput_Click(object sender, RoutedEventArgs e)
        {
            string inputPath = "syncfusion.xlsiodemos.winui.Assets.XlsIO.ExcelTopdfwithChart.xlsx";

            Assembly      assembly = typeof(EditMacro).GetTypeInfo().Assembly;
            Stream        input    = assembly.GetManifestResourceStream(inputPath);
            InputTemplate obj      = new InputTemplate();

            obj.GetInputTeamplate(input, "ExcelTopdfwithChart.xlsx", ".xlsx");
        }
Esempio n. 2
0
        private void button2_Click(object sender, RoutedEventArgs e)
        {
            //Launching the Input Template using the default Application.[MS Excel Or Free ExcelViewer]
            string        inputPath = "syncfusion.xlsiodemos.winui.Assets.XlsIO.SortingData.xlsx";
            Assembly      assembly  = typeof(Sorting).GetTypeInfo().Assembly;
            Stream        input     = assembly.GetManifestResourceStream(inputPath);
            InputTemplate obj       = new InputTemplate();

            obj.GetInputTeamplate(input, "SortingData.xlsx", ".xlsx");
            input.Dispose();
        }
        /// <summary>
        /// Open the Input Template
        /// </summary>
        /// <param name="sender">Contains a reference to the control/object that raised the event</param>
        /// <param name="e">Contains the event data</param>
        private void btnInput_Click(object sender, RoutedEventArgs e)
        {
            using (ExcelEngine excelEngine = new ExcelEngine())
            {
                IApplication application = excelEngine.Excel;

                application.DefaultVersion = ExcelVersion.Xlsx;

                //Launching the Input Template using the default Application.[MS Excel Or Free ExcelViewer]
                string        inputPath = "syncfusion.xlsiodemos.winui.Assets.XlsIO.TemplateMarker.xlsx";
                Assembly      assembly  = typeof(TemplateMarker).GetTypeInfo().Assembly;
                Stream        input     = assembly.GetManifestResourceStream(inputPath);
                InputTemplate obj       = new InputTemplate();
                obj.GetInputTeamplate(input, "TemplateMarker.xlsx", ".xlsx");
                input.Dispose();
            }
        }