Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

VB²Ù×÷WORD

 Dim wdapp As Word.Application
    Dim wddoc As Word.Document
    Dim wdtable As Word.Table
   
    Set wdapp = CreateObject("word.application")
   
    Set wddoc = wdapp.Documents.Add
   
    wdapp.Visible = True
    wdapp.Activate
   
    wdapp.Caption = "ICUÈËÔ±ÅŰà±í"
   
    wdapp.Selection.Font.Name = "ËÎÌå"
    wdapp.Selection.Font.Size = 22
    wdapp.Selection.ParagraphFormat.Alignment = wdAlignParagraphCenter
    wdapp.Selection.TypeText Text:="±êÌâ"
    wdapp.Selection.TypeParagraph
    wdapp.Selection.TypeParagraph
    wdapp.Selection.Font.Name = "ËÎÌå"
    wdapp.Selection.Font.Size = 20
 
'Ìí¼Ó±í¸ñ
     Set wdtable = wdapp.ActiveDocument.Tables.Add(wdapp.Application.Selection.Range, Grid1.Rows, NumColumns _
                    :=8, DefaultTableBehavior:=wdWord9TableBehavior, AutoFitBehavior:= _
                    wdAutoFitFixed)
   
    wdtable.Range.ParagraphFormat.Alignment = wdAlignParagraphCenter
    wdtable.Range.Font.Name = "ËÎÌå"
    wdtable.Range.Font.Size = 10.5
   
    wdtable.Cell(1, 1).Range.Text = "ÐÕÃû"
    wdtable.Cell(1, 2).Range.InsertAfter "ÐÇÆÚÒ»"
    wdtable.Cell(1, 3).Range.InsertAfter "ÐÇÆÚ¶þ"
    wdtable.Cell(1, 4).Range.InsertAfter "ÐÇÆÚÈý"
    wdtable.Cell(1, 5).Range.InsertAfter "ÐÇÆÚËÄ"
    wdtable.Cell(1, 6).Ra


Ïà¹ØÎĵµ£º

VB´íÎó´úÂë

3,Return without GoSub
5,Invalid procedure call
6,Overflow
7,Out of memory
9,Subscript out of range
10,This array is fixed or temporarily locked
11,Division by zero
13,Type mismatch
14,Out of string space
16,Expression too complex
17,Cant perform requested operation
18,User int ......

ΪʲôÎÒµÄVBÏÔʾÕÒ²»µ½¿É²åÈëµÄISAM£¿

VB6ÀïÃæµÄ°²×°ÄÚÈÝÖÐÓÐJET £¨IISAM£©²¿¼þ£¬°²×°Ê±¼ÓÒÔÑ¡Ôñ,Äã¿ÉÒÔÐÞ¸´°²×°ÄãµÄVB6¡£¾ßÌå×ö·¨ÈçÏ£º
1¡¢ÖØÐÂÆô¶¯VB°²×°³ÌÐò£¬Ñ¡È¡¹¤×÷Õ¾¹¤¾ßºÍ×é¼þ=¡·Ìí¼Ó¡¢É¾³ý³ÌÐò=¡·Êý¾Ý·ÃÎÊ=¡·¸ü¸ÄÑ¡Ïî=¡·Ñ¡ÖÐJet IIsam

2¡¢ÖØ×°VB£¬°²×°Ê±Ñ¡×Ô¶¨Ò壬ȫ²¿Ñ¡ÖС£ ......

VBʵÏÖÈí¼þÊÔÓÃÆÚ

 ´ó¼Ò¶¼ÖªµÀ¹²ÏíÈí¼þ¶¼ÓÐËüÃǵÄÊÔÓÃÆÚ£¬¼´¸øÄãÒ»¸ö¹Ì¶¨µÄÆÚÏÞÃâ·ÑʹÓᣠ  
 Ó¦ÓеŦÄÜ£º
    1£©¸ø¶¨Ò»¸öÊÔÓÃÆÚÏÞ£¬ÔÚϵͳÿ´ÎÆô¶¯Ê±»áÅжÏÈí¼þÒѾ­Ê¹ÓÃÁ˼¸Ì죬»¹Óм¸Ìì¿ÉÒÔ¼°Æô¶¯µÄ´ÎÊý¡£
    2£©µ±ÏµÍ³ÈÕÆÚ±»Ð޸ijÉÍùÈÕµÄÈÕÆÚºó£¬ÏµÍ³ÄÜ×Ô¶¯Åб𣬽ûÖ¹ÐÞ¸ÄÈÕÆÚ £¬²»Ó ......

ÇóÖúVBͨѶÊý¾Ýʶ±ð

VBѧµÄÓõͼ²»¾«£¬±à¸ö³ÌÐòÓÃÁ˺ܳ¤Ê±¼äÁË£¬ÏÖÔÚÕâ¸öͨѶ²¿·Ö»¹Ã»×öºÃ£¬ÇóÖú´ó¼Òһϣº
  ctrMSComm.Output = "@01R"    '¶ÁÃüÁî
   instar = ctrMSComm.Input         '¶ÁͨѶ
wy_I = val(HEX_to_DEC(Mid(instar, 29, 4))) * (20 / 4095#)
&n ......

ÈçºÎʵÏÖVBÓëEXCELµÄÎÞ·ìÁ¬½Ó

 http://social.msdn.microsoft.com/Forums/zh-TW/232/thread/5b0e0eb7-9cd7-420a-9f56-e588154174ba
http://www.mndsoft.com/blog/article.asp?id=903
http://topic.csdn.net/t/20051015/14/4328396.html
¡¡¡¡VBÊdz£ÓõÄÓ¦ÓÃÈí¼þ¿ª·¢¹¤¾ßÖ®Ò»£¬ÓÉÓÚVBµÄ±¨±í¹¦ÄÜÓÐÏÞ£¬¶øÇÒÒ»µ«±¨±í¸ñʽ·¢Éú±ä»¯£¬¾ÍµÃÏàÓ¦Ð޸ijÌÐò£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ