以编程方式创建次线程
2009-09-07 10:27
190 查看
Public Sub setBarcode(code As String)
ThisDocument.Sections(1).Range.Tables(1).Select '条形码位置
If Selection.InlineShapes.Count = 1 Then
ThisDocument.Sections(1).Range.Tables(1).Select
Selection.InlineShapes(1).Delete
End If
Set ab = Selection.InlineShapes.AddOLEObject(ClassType:="BARCODE.BarcodeCtrl.1", FileName:="", LinkToFile:=False, DisplayAsIcon:=False)
With ab.OLEFormat
.Activate
Set abObject = .Object
End With
abObject.Style = 7 '条码类型,C-39码
abObject.LineWeight = 3
abObject.Value = code '要打印的字符
'abObject.ShowData = 0
ab.Width = 240
ab.Height = 50
End Sub
ThisDocument.Sections(1).Range.Tables(1).Select '条形码位置
If Selection.InlineShapes.Count = 1 Then
ThisDocument.Sections(1).Range.Tables(1).Select
Selection.InlineShapes(1).Delete
End If
Set ab = Selection.InlineShapes.AddOLEObject(ClassType:="BARCODE.BarcodeCtrl.1", FileName:="", LinkToFile:=False, DisplayAsIcon:=False)
With ab.OLEFormat
.Activate
Set abObject = .Object
End With
abObject.Style = 7 '条码类型,C-39码
abObject.LineWeight = 3
abObject.Value = code '要打印的字符
'abObject.ShowData = 0
ab.Width = 240
ab.Height = 50
End Sub
相关文章推荐
- [Java并发编程]-创建线程的两种方式及区别
- 【Java并发编程】Thread方式创建线程
- 并发编程学习总结(一) :java 创建线程的三种方式的优缺点和实例(转载自:http://blog.csdn.net/u011784767/article/details/51315007)
- Java多线程编程小结+java中创建线程的的几种方式
- JAVA并发编程学习笔记------线程的三种创建方式
- java并发编程实践 part 01 --> 线程创建方式
- Linux多线程编程之创建两个子线程,分别执行子线程函数(注意编译方式)
- POSIX定时器-线程方式创建定时器
- Python使用面向对象方式创建线程实现12306售票系统
- 菜鸟学编程---线程的创建
- iOS创建线程的三种方式
- Java并发编程:线程间协作的两种方式:wait、notify、notifyAll和Condition
- java多线程总结一: 线程的两种创建方式及优劣比较
- 创建java线程方式之三实现Callable接口
- 多线程编程-线程的创建和终止
- 创建线程的几种方式
- android编程实现为程序创建快捷方式的方法
- 多线程——用创建线程的两种方式分别解决经典窗口卖票问题
- Java知识点整理:第十四章:java多线程编程、创建一个线程、异步与同步、java反射、类加载
- 线程创建的四种方式