31 lines
791 B
C#
31 lines
791 B
C#
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
|
||
}
|
||
}
|