📄 barcode.html
字号:
barcode.setPDF417(true); barcode.setContent("aaa"); barcode.setForeground(java.awt.Color.RED); barcode.setBackground(java.awt.Color.BLUE); doc.insertBarcode(barcode); </pre></DL>
</DD>
</DL>
<HR>
<A NAME="setBarcodeInfo(application.workbooks.workbook.documents.document.barcode.BarcodeInfo)"><!-- --></A><H3>
setBarcodeInfo</H3>
<PRE>
public void <B>setBarcodeInfo</B>(<A HREF="../../../../../../application/workbooks/workbook/documents/document/barcode/BarcodeInfo.html" title="application.workbooks.workbook.documents.document.barcode 中的类">BarcodeInfo</A> attr)</PRE>
<DL>
<DD>设置公文二维条码信息
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>attr</CODE> - 公文二维条码信息 <p> <b>例子:</b> <pre> Documents docs = Application.getWorkbooks().getActiveWorkbook().getDocuments(); Document doc = docs.getActiveDocument(); Barcode barcode = new Barcode(); barcode.setPDF417(false); BarcodeInfo attr = barcode.getBarcodeInfo(); attr.setTitle("test"); barcode.setBarcodeInfo(attr); barcode.setForeground(java.awt.Color.RED); barcode.setBackground(java.awt.Color.BLUE); doc.insertBarcode(barcode); </pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 当参数为空时</DL>
</DD>
</DL>
<HR>
<A NAME="setCodeColumns(int)"><!-- --></A><H3>
setCodeColumns</H3>
<PRE>
public void <B>setCodeColumns</B>(int codeColumns)</PRE>
<DL>
<DD>设置列数,最小3列,最大32列。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>codeColumns</CODE> - 列数<p> <b>例子:</b> <pre> Documents docs = Application.getWorkbooks().getActiveWorkbook().getDocuments(); Document doc = docs.getActiveDocument(); Barcode barcode = new Barcode(); barcode.setPDF417(true); barcode.setContent("aaa"); barcode.setAutoSize(false); barcode.setCodeColumns(4); barcode.setForeground(java.awt.Color.RED); barcode.setBackground(java.awt.Color.BLUE); doc.insertBarcode(barcode); </pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 当列数codeColumns小于3或者大于32.</DL>
</DD>
</DL>
<HR>
<A NAME="setCodeRows(int)"><!-- --></A><H3>
setCodeRows</H3>
<PRE>
public void <B>setCodeRows</B>(int codeRows)</PRE>
<DL>
<DD>设置行数,最小5行,最大90行。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>codeRows</CODE> - 行数 <p> <b>例子:</b> <pre> Documents docs = Application.getWorkbooks().getActiveWorkbook().getDocuments(); Document doc = docs.getActiveDocument(); Barcode barcode = new Barcode(); barcode.setPDF417(true); barcode.setContent("aaa"); barcode.setAutoSize(false); barcode.setCodeRows(5); barcode.setForeground(java.awt.Color.RED); barcode.setBackground(java.awt.Color.BLUE); doc.insertBarcode(barcode); </pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 当行数codeRows小于5或者大于90.</DL>
</DD>
</DL>
<HR>
<A NAME="setContent(java.lang.String)"><!-- --></A><H3>
setContent</H3>
<PRE>
public void <B>setContent</B>(java.lang.String content)</PRE>
<DL>
<DD>设置条形内容
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>content</CODE> - 条形内容 <p> <b>例子:</b> <pre> Documents docs = Application.getWorkbooks().getActiveWorkbook().getDocuments(); Document doc = docs.getActiveDocument(); Barcode barcode = new Barcode(); barcode.setPDF417(true); barcode.setContent("aaa"); barcode.setForeground(java.awt.Color.RED); barcode.setBackground(java.awt.Color.BLUE); doc.insertBarcode(barcode); </pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 当条形内容content为空或者空格.</DL>
</DD>
</DL>
<HR>
<A NAME="setErrorLevel(int)"><!-- --></A><H3>
setErrorLevel</H3>
<PRE>
public void <B>setErrorLevel</B>(int errorLevel)</PRE>
<DL>
<DD>设置容错等级
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>errorLevel</CODE> - 容错等级, <pre> 以下为取值常量: ERROR_LEVEL_AUTO 容错等级 - 0 ERROR_LEVEL_0 容错等级 - 1 ERROR_LEVEL_1 容错等级 - 2 ERROR_LEVEL_2 容错等级 - 3 ERROR_LEVEL_3 容错等级 - 4 ERROR_LEVEL_4 容错等级 - 5 ERROR_LEVEL_5 容错等级 - 6 ERROR_LEVEL_6 容错等级 - 7 ERROR_LEVEL_7 容错等级 - 8 ERROR_LEVEL_8 容错等级 - 9 </pre> <p> <b>例子:</b> <pre> Documents docs = Application.getWorkbooks().getActiveWorkbook().getDocuments(); Document doc = docs.getActiveDocument(); Barcode barcode = new Barcode(); barcode.setPDF417(true); barcode.setContent("aaa"); barcode.setErrorLevel(Barcode.ERROR_LEVEL_4); barcode.setForeground(java.awt.Color.RED); barcode.setBackground(java.awt.Color.BLUE); doc.insertBarcode(barcode); </pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 当容错等级errorLevel小于0或者大于9.</DL>
</DD>
</DL>
<HR>
<A NAME="setForeground(java.awt.Color)"><!-- --></A><H3>
setForeground</H3>
<PRE>
public void <B>setForeground</B>(java.awt.Color foregroundColor)</PRE>
<DL>
<DD>设置前景色
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>foregroundColor</CODE> - 前景色 <p> <b>例子:</b> <pre> Documents docs = Application.getWorkbooks().getActiveWorkbook().getDocuments(); Document doc = docs.getActiveDocument(); Barcode barcode = new Barcode(); barcode.setPDF417(true); barcode.setContent("aaa"); barcode.setForeground(java.awt.Color.RED); barcode.setBackground(java.awt.Color.BLUE); doc.insertBarcode(barcode); </pre></DL>
</DD>
</DL>
<HR>
<A NAME="setModuleHeight(int)"><!-- --></A><H3>
setModuleHeight</H3>
<PRE>
public void <B>setModuleHeight</B>(int moduleHeight)</PRE>
<DL>
<DD>设置模块高度
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>moduleHeight</CODE> - 模块高度 <p> <b>例子:</b> <pre> Documents docs = Application.getWorkbooks().getActiveWorkbook().getDocuments(); Document doc = docs.getActiveDocument(); Barcode barcode = new Barcode(); barcode.setPDF417(true); barcode.setContent("aaa"); barcode.setModuleHeight(4); barcode.setForeground(java.awt.Color.RED); barcode.setBackground(java.awt.Color.BLUE); doc.insertBarcode(barcode); </pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 当模块高度moduleHeight小于1或者大于76.</DL>
</DD>
</DL>
<HR>
<A NAME="setModuleWidth(int)"><!-- --></A><H3>
setModuleWidth</H3>
<PRE>
public void <B>setModuleWidth</B>(int moduleWidth)</PRE>
<DL>
<DD>设置模块宽度
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>moduleWidth</CODE> - 模块宽度 <p> <b>例子:</b> <pre> Documents docs = Application.getWorkbooks().getActiveWorkbook().getDocuments(); Document doc = docs.getActiveDocument(); Barcode barcode = new Barcode(); barcode.setPDF417(true); barcode.setContent("aaa"); barcode.setModuleWidth(4); barcode.setForeground(java.awt.Color.RED); barcode.setBackground(java.awt.Color.BLUE); doc.insertBarcode(barcode); </pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 当模块宽度moduleWidth小于1或者大于76.</DL>
</DD>
</DL>
<HR>
<A NAME="setPDF417(boolean)"><!-- --></A><H3>
setPDF417</H3>
<PRE>
public void <B>setPDF417</B>(boolean isPDF417)</PRE>
<DL>
<DD>设置是PDF417还是公文条形码。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>isPDF417</CODE> - true为PDF417 ;false为公文条形码 <p> <b>例子:</b> <pre> Documents docs = Application.getWorkbooks().getActiveWorkbook().getDocuments(); Document doc = docs.getActiveDocument(); Barcode barcode = new Barcode(); barcode.setPDF417(true); barcode.setContent("aaa"); barcode.setAutoSize(true); barcode.setForeground(java.awt.Color.RED); barcode.setBackground(java.awt.Color.BLUE); doc.insertBarcode(barcode); </pre></DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="跳过导航链接"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>概述</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>软件包</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>类</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>树</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>索引</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>帮助</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
上一个类
<A HREF="../../../../../../application/workbooks/workbook/documents/document/barcode/BarcodeInfo.html" title="application.workbooks.workbook.documents.document.barcode 中的类"><B>下一个类</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../../index.html?application/workbooks/workbook/documents/document/barcode/Barcode.html" target="_top"><B>框架</B></A>
<A HREF="Barcode.html" target="_top"><B>无框架</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>所有类</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../../../allclasses-noframe.html"><B>所有类</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
摘要: 嵌套 | <A HREF="#field_summary">字段</A> | <A HREF="#constructor_summary">构造方法</A> | <A HREF="#method_summary">方法</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
详细信息: <A HREF="#field_detail">字段</A> | <A HREF="#constructor_detail">构造方法</A> | <A HREF="#method_detail">方法</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
版权所有 2001-2006 无锡永中科技有限公司
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -