public bool SaveDocument(IDocumentModel documentModel, Stream stream, IExporterOptions options)
        {
            BBCodeExporter exporter = new BBCodeExporter((DocumentModel)documentModel, (BBCodeDocumentExporterOptions)options);

            exporter.Export(stream);
            return(true);
        }
Esempio n. 2
0
 public XlsExporter(DataTable table, String fileName = "", String sheetName = "")
 {
     try
     {
         Options = new XlsExporterOptions();
         Export(table, fileName, sheetName);
     }
     catch (Exception)
     {
         throw;
     }
 }
 public AccessExporter(DataTable table, String fileName = "", String sheetName = "", Boolean dropTable = false)
 {
     try
     {
         Options = new AccessExporterOptions();
         Export(table, fileName, sheetName);
     }
     catch (Exception)
     {
         throw;
     }
 }
 public CsvHelperExporter(DataTable table,
                           String fileName = "",
                           String delimiter = "",
                           Boolean quoteAllFields = false,
                           String quote = "")
 {
     try
     {
         Options = new CsvHelperExporterOptions();
         Export(table, fileName, delimiter, quoteAllFields, quote);
     }
     catch (Exception)
     {
         throw;
     }
 }
Esempio n. 5
0
 public TextExporter(DataTable table, 
                     String fileName = "", 
                     String delimiter = "", 
                     Boolean quoteHeaders = false,
                     Boolean quoteFields = false, 
                     String quote = "")
 {
     try
     {
         Options = new TextExporterOptions();
         Export(table, fileName, delimiter, quoteHeaders, quoteFields, quote);
     }
     catch (Exception)
     {
         throw;
     }
 }
 public OpenXmlExporter(DataTable table,
                       String fileName = "",
                       String sheetName = "",
                       IList<FieldFormatItem> formats = null,
                       Boolean autoFilter = false,
                       Int32 startRow = 1,
                       Int32 startColumn = 1,
                       Boolean freezeHeaderRow = false)
 {
     try
     {
         Options = new OpenXmlExporterOptions();
         Export(table, fileName, sheetName, formats, autoFilter, startRow, startColumn, freezeHeaderRow);
     }
     catch (Exception)
     {
         throw;
     }
 }
        public bool SaveDocument(DevExpress.Office.IDocumentModel documentModel, Stream stream, IExporterOptions options)
        {
            DocumentModel model = (DocumentModel)documentModel;

            model.InternalAPI.SaveDocumentMhtContent(stream, (EmlDocumentExporterOptions)options);
            return(true);
        }
Esempio n. 8
0
        //
        // Constructors

        public TextExporter()
        {
            Options = new TextExporterOptions();
        }
        //
        // Constructors

        public OpenXmlExporter()
        {
            Options = new OpenXmlExporterOptions();
        }
Esempio n. 10
0
        //
        // Constructors

        public AccessExporter()
        {
            Options = new AccessExporterOptions();
        }
        //
        // Constructors

        public CsvHelperExporter()
        {
            Options = new CsvHelperExporterOptions();
        }
Esempio n. 12
0
        //
        // Constructors

        public XlsExporter()
        {
            Options = new XlsExporterOptions();
        }
Esempio n. 13
0
        //
        // Constructors

        public ExcelExporter()
        {
            Options = new ExcelExporterOptions();
        }