📄 barcodeinfo.html
字号:
public void <B>setDispatchUnit</B>(java.lang.String unit)</PRE>
<DL>
<DD>设置发文单位
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>unit</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.setBarcodeNumber("12345678"); attr.setDispatchUnit("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> - 当发文单位unit为空或者长度为一个空格
<DD><CODE><A HREF="../../../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 当参数unit为1个字节
<DD><CODE><A HREF="../../../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 当发文单位unit大于40</DL>
</DD>
</DL>
<HR>
<A NAME="setDocumentLevel(int)"><!-- --></A><H3>
setDocumentLevel</H3>
<PRE>
public void <B>setDocumentLevel</B>(int level)</PRE>
<DL>
<DD>设置紧急程度 公文 紧急程度为0~2
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>level</CODE> - 紧急程度 <pre> 0 无 1 急件 2 特急 </pre> <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.setBarcodeNumber("12345678"); attr.setDocumentLevel(2); 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> - 当参数level超出0~2范围</DL>
</DD>
</DL>
<HR>
<A NAME="setIssueName(java.lang.String)"><!-- --></A><H3>
setIssueName</H3>
<PRE>
public void <B>setIssueName</B>(java.lang.String name)</PRE>
<DL>
<DD>设置文种或刊名
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>name</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.setBarcodeNumber("12345678"); attr.setIssueName("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> - 当name文种或刊名长度大于30</DL>
</DD>
</DL>
<HR>
<A NAME="setIssueNumber(java.lang.String)"><!-- --></A><H3>
setIssueNumber</H3>
<PRE>
public void <B>setIssueNumber</B>(java.lang.String number)</PRE>
<DL>
<DD>设置文号或期号
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>number</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.setBarcodeNumber("12345678"); attr.setIssueNumber("2"); 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> - 当文号或期号number为空
<DD><CODE><A HREF="../../../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 当文号或期号number长度大于30</DL>
</DD>
</DL>
<HR>
<A NAME="setProductLevel(int)"><!-- --></A><H3>
setProductLevel</H3>
<PRE>
public void <B>setProductLevel</B>(int level)</PRE>
<DL>
<DD>设置发布层次,层次范围为0~4
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>level</CODE> - 发布层次 <pre> 0 省军级 1 市地师级 2 县团级 3 公开发布 4 特定范围 </pre> <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.setBarcodeNumber("12345678"); attr.setTelegraphLevel(2); attr.setDate("20051201"); attr.setProductLevel(1); 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> - 当参数level超出0~4范围</DL>
</DD>
</DL>
<HR>
<A NAME="setSecretDate(java.lang.String)"><!-- --></A><H3>
setSecretDate</H3>
<PRE>
public void <B>setSecretDate</B>(java.lang.String date)</PRE>
<DL>
<DD>设置保密期限
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>date</CODE> - 保密期限 <pre> 0 无 1 一年 2 二十年 3 三十年 </pre> <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.setBarcodeNumber("12345678"); attr.setSecretLevel(2); attr.setSecretDate("50年"); barcode.setBarcodeInfo(attr); barcode.setForeground(java.awt.Color.RED); barcode.setBackground(java.awt.Color.BLUE); doc.insertBarcode(barcode); </pre></DL>
</DD>
</DL>
<HR>
<A NAME="setSecretLevel(int)"><!-- --></A><H3>
setSecretLevel</H3>
<PRE>
public void <B>setSecretLevel</B>(int level)</PRE>
<DL>
<DD>设置秘密等级 秘密等级范围为0~3
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>level</CODE> - 秘密等级 <pre> 0 无 1 秘密 2 机密 3 绝密 </pre> <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.setBarcodeNumber("12345678"); attr.setSecretLevel(2); 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> - 当参数level超出0~3范围</DL>
</DD>
</DL>
<HR>
<A NAME="setTelegraphLevel(int)"><!-- --></A><H3>
setTelegraphLevel</H3>
<PRE>
public void <B>setTelegraphLevel</B>(int level)</PRE>
<DL>
<DD>设置紧急程度 电报 紧急程度为0~4
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>level</CODE> - 紧急程度 <pre> 0 无 1 平急 2 加急 3 特急 4 特提 </pre> <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.setBarcodeNumber("12345678"); attr.setTelegraphLevel(2); 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> - 当参数level超出0~4范围</DL>
</DD>
</DL>
<HR>
<A NAME="setTitle(java.lang.String)"><!-- --></A><H3>
setTitle</H3>
<PRE>
public void <B>setTitle</B>(java.lang.String title)</PRE>
<DL>
<DD>设置文件标题
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>title</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.setBarcodeNumber("12345678"); 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> - 当文件标题title为null
<DD><CODE><A HREF="../../../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 当文件标题title长度大于150</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/Barcode.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/BarcodeInfo.html" target="_top"><B>框架</B></A>
<A HREF="BarcodeInfo.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="#constructor_summary">构造方法</A> | <A HREF="#method_summary">方法</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
详细信息: 字段 | <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 + -