예제 #1
0
        private void BtnGenerateFromSelection_Click(object sender, RibbonControlEventArgs e)
        {
            Excel.Range SelectionRg = Globals.KlipAddIn.Application.Selection;
            KlipWriter  kw          = new KlipWriter();

            kw.GenerateKlip(SelectionRg.Parent, SelectionRg.Row, SelectionRg.Row + SelectionRg.Rows.Count - 1);
        }
예제 #2
0
        private void BtnGenerate_Click(object sender, RibbonControlEventArgs e)
        {
            Excel.Worksheet sh = Globals.KlipAddIn.Application.ActiveSheet;
            KlipWriter      kw = new KlipWriter();

            kw.GenerateKlip(sh, 2, sh.FirstEmptyRow() - 1);
        }
예제 #3
0
        protected override object RequestComAddInAutomationService()
        {
            if (kw == null)
            {
                kw = new KlipWriter();
            }

            return(kw);
        }