Пример #1
0
        public void SettingPageInfo()
        {
            PrintInfoDialog PrintInfoDialog = new PrintInfoDialog();

            PrintInfoDialog.PrintSet = ActiveSheet.PrintInfo;
            if (PrintInfoDialog.ShowDialog() == DialogResult.OK)
            {
                ActiveSheet.PrintInfo = PrintInfoDialog.PrintSet;
            }
        }
Пример #2
0
        /// <summary>
        /// 显示页面设置对话框
        /// </summary>
        private void ShowPageSettingDialog()
        {
            PrintInfoDialog PrintInfoDialog = new PrintInfoDialog();

            PrintInfoDialog.PrintSet = FpSpread.ActiveSheet.PrintInfo;
            if (PrintInfoDialog.ShowDialog() == DialogResult.OK)
            {
                FpSpread.ActiveSheet.PrintInfo = PrintInfoDialog.PrintSet;
            }
        }