Example #1
0
        private void Print(string filePath)
        {
            XLSPrinter xlsPrinter = new XLSPrinter(filePath);

            xlsPrinter.PageSetup.LeftMargin = 25;
            xlsPrinter.PageSetup.TopMargin  = 5;
            //xlsPrinter.PageSetup.RightMargin = 40;
            //xlsPrinter.PageSetup.BottomMargin = 100;
            xlsPrinter.PrinterName = cbPrint.SelectedItem.ToString();
            xlsPrinter.printExcel();
        }
Example #2
0
        private void Print(string filePath)
        {
            XLSPrinter xlsPrinter = new XLSPrinter(filePath);

            xlsPrinter.PageSetup.LeftMargin = 25;
            xlsPrinter.PageSetup.TopMargin = 5;
            //xlsPrinter.PageSetup.RightMargin = 40;
            //xlsPrinter.PageSetup.BottomMargin = 100;
            xlsPrinter.PrinterName = cbPrint.SelectedItem.ToString();
            xlsPrinter.printExcel();
        }