Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.Writeln("<<if [1!=1 || 2==2]>>Condition is true<<else>>Condition is false<</if>>");
builder.Writeln("<<if [1!=1 && 2==2]>>Condition is true<<else>>Condition is false<</if>>");
ReportingEngine engine= new ReportingEngine();
engine.BuildReport(doc, new object());
doc.Save(@"C:\Temp\out.docx");
1条答案
按热度按时间oxf4rvwz1#
您可以对多个条件使用常规C#或Java语法:
例如,请看下面的简单代码: