string html = PrintTable(printvalue);
Page.ClientScript.RegisterStartupScript(this.Page.GetType(), "", @"PrintView('" + html + "');", true);
<script language="javascript" type="text/javascript">
var LODOP; //声明为全局变量
function PrintView(htmlHead) {
LODOP = getLodop();
LODOP.PRINT_INIT("打印控件功能演示_Lodop功能_表单一");
LODOP.SET_PRINT_STYLE("FontSize", 18);
LODOP.SET_PRINT_STYLE("Bold", 1);
LODOP.ADD_PRINT_HTM(40, 18, "97%", 200, htmlHead);
LODOP.PREVIEW();
};
</script>
这样写不对。老是报错,谁能教我一下
繁花如伊
相关分类