<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>WEB打印控件LODOP的使用说明和样例目录</title>
</head>
<body>
<h2><b><font color="#009999">WEB打印控件Lodop(V6.x)使用说明及样例</font></b></h2>
<table cellpadding="0" cellspacing="0" border="0" width="569"><tr valign="top" ><td align="right" nowrap width="6"></td><td width="812"><table width="777" height="45"><tr><td style="vertical-align: top" width="747" height="18"><p><b><font color="#0000FF" face="黑体" size="3">Lodop</font></b>(标音:劳道谱,俗称:露肚皮)是专业WEB控件,用它既可裁剪输出页面内容,又可用程序代码直接实现</p></td></tr><tr><td style="vertical-align: top" width="747" height="1"><p>复杂打印。控件功能强大,却简单易用,所有调用如同<font size="2">JavaScript</font>扩展语句,主要接口函数如下:</p></td></tr></table></td></tr></table><table cellpadding="0" cellspacing="0" border="0" width="550" height="202"><tr valign="top" ><td align="right" nowrap width="6" height="202"></td><td width="812" height="202"><table width="775" height="174"><tr><td style="vertical-align: top" width="13" height="1"><font color="#0000FF"><font size="1">●</font></font></td><td style="vertical-align: top" width="752" height="1"><font color="#0000FF" size="2">PRINT_INIT(strPrintTaskName)打印初始化</font>
</td></tr><tr><td style="vertical-align: top" width="13" height="18"><font size="1" color="#0000FF">●</font></td><td style="vertical-align: top" width="752" height="18"><font color="#0000FF" size="2">SET_PRINT_PAGESIZE(intOrient,intPageWidth,intPageHeight,strPageName)设定纸张大小</font>
</td></tr><tr><td style="vertical-align: top" width="13" height="18"><font color="#0000FF"><font size="1">●</font></font></td><td style="vertical-align: top" width="752" height="18"><font color="#0000FF" size="2">ADD_PRINT_HTM(intTop,intLeft,intWidth,intHeight,strHtml)增加超文本项</font>
</td></tr><tr><td style="vertical-align: top" width="13" height="18"><font color="#0000FF"><font size="1">●</font></font></td><td style="vertical-align: top" width="752" height="18"><font color="#0000FF" size="2">ADD_PRINT_TEXT(intTop,intLeft,intWidth,intHeight,strContent)增加纯文本项</font>
</td></tr>
<tr><td style="vertical-align: top" width="13" height="18"><font color="#0000FF"><font size="1">●</font></font></td><td style="vertical-align: top" width="752" height="18"><font color="#0000FF" size="2">ADD_PRINT_TABLE(intTop,intLeft,intWidth,intHeight,strHtml)增加表格项</font>
</td></tr>
<tr>
<td style="vertical-align: top" width="13" height="1"><font size="1" color="#0000FF">●</font></td><td style="vertical-align: top" width="752" height="1">
<font color="#0000FF" size="2">ADD_PRINT_SHAPE(intShapeType,intTop,intLeft,intWidth,intHeight,intLineStyle,intLineWidth,intColor)画图形</font>
</td>
</tr>
<tr>
<td style="vertical-align: top" width="13" height="1"><font size="1" color="#0000FF">●</font></td><td style="vertical-align: top" width="752" height="1">
<font color="#0000FF" size="2">SET_PRINT_STYLE(strStyleName,
varStyleValue)设置对象风格</font>
</td>
</tr>
<tr>
<td style="vertical-align: top" width="13" height="1"><font size="1" color="#0000FF">●</font></td><td style="vertical-align: top" width="752" height="1"><font color="#0000FF" size="2">PREVIEW打印预览</font>
</td>
</tr>
<tr>
<td style="vertical-align: top" width="13" height="1"><font size="1" color="#0000FF">●</font></td><td style="vertical-align: top" width="752" height="1"><font color="#0000FF" size="2">PRINT直接打印</font>
</td>
</tr>
<tr>
<td style="vertical-align: top" width="13" height="14"><font size="1" color="#0000FF">●</font></td><td style="vertical-align: top" width="752" height="14"><font color="#0000FF" size="2">PRINT_SETUP打印维护</font>
</td>
</tr>
<tr>
<td style="vertical-align: top" width="13" height="1"><font size="1" color="#0000FF">●</font></td><td style="vertical-align: top" width="752" height="1"><font color="#0000FF" size="2">PRINT_DESIGN打印设计</font>
</td>
</tr>
</table></td></tr></table><table cellpadding="0" cellspacing="0" border="0" width="572"><tr valign="top" ><td align="right" nowrap width="6"></td><td width="812"><table width="774" height="144"><tr><td style="vertical-align: top" width="744" height="18"><p>可邮件<a href="mailto:gungho999@sina.com">gungho999@sina.com</a>索取技术手册或访问<a href="http://www.c-lodop.com/download.html" target="_blank">官网:www.c-lodop.com</a>下载更多详细资料。</p></td></tr>
<tr>
<td style="vertical-align: top" width="744" height="18">最基本的打印过程至少有<b>初始化语句</b>、<b>添内容语句</b>和<b>打印语句</b>三部分组成,例如:</td>
</tr>
<tr>
<td style="vertical-align: top; border: 1 dotted #0000FF" width="744" height="52">
<font color="#0000FF" size="2">
LODOP.PRINT_INIT("打印任务名");
</font><font size="2">//首先一个初始化语句</font>
<font color="#0000FF" size="2"><br>
LODOP.ADD_PRINT_TEXT(0,0,100,20,"文本内容一");</font><font size="2">//然后多个ADD语句及SET语句</font>
<font color="#0000FF" size="2"><br>
LODOP.PRINT();
</font><font size="2">//最后一个打印(或预览、维护、设计)语句</font></td>
</tr>
<tr><td style="vertical-align: top" width="744" height="18"><p>下面通过演示样例来理解,为容易看懂源代码,每个样例尽量简单,一个样例代</p></td></tr><tr><td style="vertical-align: top" width="744" height="18">表一类或多类功能,在实际应用中它们都可以混合并存或交叉使用。</td></tr></table></td></tr></table><table cellpadding="0" cellspacing="0" border="0" width="572"><tr valign="top" ><td align="right" nowrap width="6"></td><td width="812"><table width="681" height="571"><tr><td width="667" colspan="2" height="18">
<p><b><font color="#009999" face="宋体" size="3">样例清单</font></b></p>
</td></tr>
<tr>
<td width="16" height="18">1.
</td><td style="vertical-align: top" width="651" height="18"><p >如何在页面内嵌入控件见<font color="#0000ff"><a href="PrintSample1.html" target="_blank">样例一</a></font>
</p></td>
</tr>
<tr>
<td width="16" height="18">2.
</td><td style="vertical-align: top" width="651" height="18"><p >如何选材打印当前页面内容见<font color="#0000ff"><a href="PrintSample2.html" target="_blank">样例二</a></font>
</p></td>
</tr>
<tr>
<td width="16" height="18">3.
</td><td style="vertical-align: top" width="651" height="18"><p >如何用代码生成打印页见<a href="PrintSample3.html" target="_blank">样例三</a>
</p></td>
</tr>
<tr>
<td width="16
评论0