¹ØÓÚÓÃvb´¦ÀítxtµÄÎÊÌâ
ÓÉÓÚÿÔ´ӱðµÄ¹«Ë¾ËÍÀ´Ò»¸ötxtÎļþ£¬¸ñʽÈçÏ£º
0023939608011»Æ¸ùÑø 1000 0100100 E
0025069060011»ÆÕñÔ« 4440 0100200 Y
0038270387011ÕÔÈÙÐÂ 1680 0100300 Y
0024431448011»Æ¹ÛÅó 360 0100400 Y
0023759723011Àî¹ØÕ× 600 0100500 Y
ÎÒÏëÏÈ°ÑtxtÎļþ´¦Àí³ÉÿÁÐÓÃÒ»¸ö¿Õ¸ñ·Ö¿ª£¬·½±ãµ¼ÈësqlÊý¾Ý¿â£¬±¾À´ÏëÓà Mid º¯Êý´¦Àí£¬µ«ÊÇÎÒ²»ÄÜÈ·¶¨ËÍÀ´µÄtxtÎļþ¸ñʽһÑù£¬ÓÈÆäÊÇÿÁÐÖ®¼äµÄ¿Õ¸ñÊý£¬Èç¹û²»Í¬¾Í»á³öÎÊÌâÁË¡£
Çë½Ìϸ÷λÎÒÓ¦¸ÃÓÃʲô·½·¨¿ÉÒÔ´¦Àí£¬Âé·³´ó¼Ò°ÑÀý×Ó´úÂëҲдÏ£¬ÎÒvb±È½Ï²ËµÄ£¬ºÇºÇ
do while(instr(s," ")>0)
s=replace(s," "," ")
loop
ÓÃÕýÔòÓ¦¸Ã·½±ãµã£
Ïà¹ØÎÊ´ð£º
ΪʲôCдµÄDLLÎļþC¡¢PBÄܵ÷ÓÃVB²»Äܵ÷Óã¿
VBÀïΪʲôÓеÄDLLÖ±½Óͨ¹ýÒýÓÿÉÒÔʹÓã¿ÓеÄÐèҪͨ¹ýdeclareÉêÃ÷Íⲿº¯Êý£¿ÕâЩDLLÓÐʲô²î±ð£¿
1¡¢ÎªÊ²Ã´PBÄÜͨ¹ýDECLAREÉùÃ÷¶øVB²»ÐУ¿
2¡¢Èç¹ûÕâ¸ödllÖÐµÄ ......
Printer.ScaleMode = 6
6±íʾºÁÃ×
Printer.PaperSize = vbPRPSA4
'³õʼ×ø±ê
x = 1
y = 4
'×î´óµÄÏß¿ð
Printer.DrawStyle = 0
Printer.Line (x, y)-(x + 132.5, y) ......
Private Sub cmdModify_Click()
Dim iRet As Integer
If dltUser.Text = "" Then
MsgBox "ÇëÑ¡ÔñÒªÐ޸ĵÄÓû§£¡", vbOKOnly ......
Private Sub DataList1_Click()
If DataList1.Text = "" Then
Lbl_EmpId = ""
Lbl_EmpName = ""
Lbl_Birth = ""
Lbl_Sex = ""
Lbl_Political_ ......
VB code:
Private objXml As New DOMDocument60
Private xmlRoot As IXMLDOMElement
Public Function xmlNode()
Set objXml = New DOMDocument
objXml.async = False
objXml.Load ("E:\Li ......