Load() 공개 메소드

public Load ( Stream inStream ) : void
inStream Stream
리턴 void
예제 #1
0
 /// <summary>
 /// 一部执行模板编译、渲染并返回结果
 /// </summary>
 /// <param name="odfPath"></param>
 /// <returns></returns>
 public static OdfTemplate RenderTemplate(string odfPath, IDictionary<string, object> context)
 {
     var odf = new OdfTemplate();
     odf.Load(odfPath);
     odf.Compile();
     var resultDoc = odf.Render(context);
     return resultDoc as OdfTemplate;
 }