コード例 #1
0
        public HtmlClipboardExporter()
            : base()
        {
            this.IncludeColumnHeaders = true;
            this.FormatSettings       = new HtmlFormatSettings();
            m_indentationString       = string.Empty;

            // We keep a reference to the innerStream to return it when clipboard export is finished
            m_memoryStream = new MemoryStream();
            m_baseStream   = new CF_HtmlStream(m_memoryStream);
        }
コード例 #2
0
        protected override void ResetExporter()
        {
            m_tempBuffer        = null;
            m_indentationString = string.Empty;

            // We must NOT close or dispose the previous MemoryStream since we pass this
            // instance to the Clipboard directly and it becomes responsible of
            // closing/disposing it
            m_memoryStream = new MemoryStream();
            m_baseStream   = new CF_HtmlStream(m_memoryStream);
        }