报告XP.ReportEngine基础类设计和接口开发。
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
namespace XP.ReportEngine.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// 报告生成选项 | Report generation options
|
||||
/// </summary>
|
||||
public class ReportGenerationOptions
|
||||
{
|
||||
/// <summary>
|
||||
/// 模板文件路径 | Template file path
|
||||
/// </summary>
|
||||
public string TemplatePath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 输出文件路径(可选,为 null 时仅返回 MemoryStream)| Output file path (optional)
|
||||
/// </summary>
|
||||
public string OutputFilePath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 输出格式 | Output format
|
||||
/// </summary>
|
||||
public ReportOutputFormat Format { get; set; } = ReportOutputFormat.Pdf;
|
||||
}
|
||||
|
||||
public enum ReportOutputFormat
|
||||
{
|
||||
Pdf,
|
||||
Excel,
|
||||
Csv
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user