Exemplo n.º 1
0
        protected void DoAddPageBreak(BookOptions options)
        {
            var book = options?.Book?.Document ?? Document;

            book.AppendText("\f");
            WriteTextToConsole("\f");
        }
Exemplo n.º 2
0
        protected override bool NeedSynchronization(BookOptions options)
        {
            bool result = base.NeedSynchronization(options);

            if (options is SpreadTableOptions spreadOptions)
            {
                result |= (spreadOptions._Spreadsheet != null && spreadOptions._Spreadsheet == Host?.Spreadsheet) ||
                          (spreadOptions._Spreadsheet == null && string.IsNullOrWhiteSpace(spreadOptions._FileName));
            }

            return(result);
        }
Exemplo n.º 3
0
 public SCBook AddPageBreak(BookOptions options = null)
 {
     ExecuteSynchronized(options, () => DoAddPageBreak(options));
     return(this);
 }