pddPrintPage.aspx.cs 928 B

1234567891011121314151617181920212223242526272829
  1. using SiteCore;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Web;
  7. using System.Web.UI;
  8. using System.Web.UI.WebControls;
  9. using Utils;
  10. public partial class pddPrintPage : System.Web.UI.Page
  11. {
  12. protected void Page_Load(object sender, EventArgs e)
  13. {
  14. string valuestr = CommonHelper.GetString("value");
  15. StringBuilder str = new StringBuilder();
  16. str.AppendLine("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
  17. str.AppendLine("<layout width=\"73\" height=\"5\" left=\"0\" top=\"2\" style=\"zIndex:1;font-size:18px;font-weight:bold;\">");
  18. str.AppendLine(" <text style=\"fontFamily:SimHei;fontSize:10;align:center;\">");
  19. str.AppendLine( valuestr);
  20. str.AppendLine(" </text>");
  21. str.AppendLine("</layout>");
  22. Response.Clear();
  23. Response.Write(str.ToString());
  24. Response.End();
  25. }
  26. }