Use "D:\\2002-1-31\ѧ!ѧ"
oWord = CREATEOBJECT("Word.Application")
oWord.visible=.t.
oWord.documents.add
oWord.ActiveWindow.View.Type=3

With oWord.ActiveDocument.PageSetup
	.LineNumbering.Active = .F.
	.TopMargin = 72
	.BottomMargin = 72
	.LeftMargin = 90
	.RightMargin = 90
	.Gutter = 0
	.HeaderDistance = 42.55
	.FooterDistance = 49.6
	.PageWidth = 595.35
	.PageHeight = 841.95
	.OddAndEvenPagesHeaderFooter = .F.
	.DifferentFirstPageHeaderFooter = .F.
	.SuppressEndnotes = .F.
	.MirrorMargins = .F.
	.TwoPagesOnOne = .F.
Endwith

oWord.Selection.TypeParagraph
oWord.Selection.font.bold=.T.
oWord.Selection.font.name='_GB2312'
oWord.Selection.font.size=23
oWord.Selection.typetext("             ѧ   ")
oWord.Selection.TypeParagraph
oWord.Selection.font.bold=.F.
oWord.Selection.font.size=10.5
oWord.Selection.typetext("NO."+ѧ)

oWord.ActiveDocument.Tables.Add(oWord.Selection.Range,8,1)
oWord.ActiveDocument.Tables(1).Cell(3,1).Range.InsertAfter(" ĸ  ")
oWord.ActiveDocument.Tables(1).Cell(5,1).Range.InsertAfter("   ")
oWord.ActiveDocument.Tables(1).Cell(3,1).Select
oWord.Selection.Cells.width=426
oWord.Selection.Cells.VerticalAlignment = 1
oWord.Selection.ParagraphFormat.Alignment = 1
oWord.Selection.font.bold=.T.
oWord.Selection.font.size=14
oWord.ActiveDocument.Tables(1).Cell(5,1).Select
oWord.Selection.Cells.width=426
oWord.Selection.Cells.VerticalAlignment = 1
oWord.Selection.ParagraphFormat.Alignment = 1
oWord.Selection.font.bold=.T.
oWord.Selection.font.size=14

oWord.ActiveDocument.Tables(1).Cell(1,1).Select
oWord.Selection.Cells.Split(1,2)
oWord.ActiveDocument.Tables(1).Cell(2,1).Select
oWord.Selection.Cells.Split(1,2)
oWord.ActiveDocument.Tables(1).Cell(6,1).Select
oWord.Selection.Cells.Split(1,2)
oWord.ActiveDocument.Tables(1).Cell(7,1).Select
oWord.Selection.Cells.Split(1,2)
oWord.ActiveDocument.Tables(1).Cell(8,1).Select
oWord.Selection.Cells.Split(1,2)
oWord.ActiveDocument.Tables(1).Cell(4,1).Select
oWord.Selection.Cells.Split(4,5)
oWord.ActiveDocument.Tables(1).Cell(1,1).Select
oWord.Selection.Cells.Split(5,4)
oWord.ActiveDocument.Tables(1).Cell(1,5).Select
oWord.Selection.Cells.width=74
oWord.ActiveDocument.Tables(1).Cell(1,4).Select
oWord.Selection.Cells.Split(1,2)
oWord.ActiveDocument.Tables(1).Cell(2,4).Select
oWord.Selection.Cells.Split(1,2)
oWord.ActiveDocument.Tables(1).Cell(1,2).Select
oWord.Selection.Cells.Split(1,2)
oWord.ActiveDocument.Tables(1).Cell(2,2).Select
oWord.Selection.Cells.Split(1,2)

oWord.ActiveDocument.Tables(1).Cell(1,1).Select
oWord.Selection.Cells.width=68
oWord.ActiveDocument.Tables(1).Cell(2,1).Select
oWord.Selection.Cells.width=68
oWord.ActiveDocument.Tables(1).Cell(3,1).Select
oWord.Selection.Cells.width=68
oWord.ActiveDocument.Tables(1).Cell(4,1).Select
oWord.Selection.Cells.width=68
oWord.ActiveDocument.Tables(1).Cell(5,1).Select
oWord.Selection.Cells.width=68
oWord.ActiveDocument.Tables(1).Cell(6,1).Select
oWord.Selection.Cells.width=68
oWord.ActiveDocument.Tables(1).Cell(8,1).Select
oWord.Selection.Cells.width=68
oWord.ActiveDocument.Tables(1).Cell(9,1).Select
oWord.Selection.Cells.width=68
oWord.ActiveDocument.Tables(1).Cell(10,1).Select
oWord.Selection.Cells.width=68
oWord.ActiveDocument.Tables(1).Cell(11,1).Select
oWord.Selection.Cells.width=68
oWord.ActiveDocument.Tables(1).Cell(13,1).Select
oWord.Selection.Cells.width=68
oWord.ActiveDocument.Tables(1).Cell(14,1).Select
oWord.Selection.Cells.width=68
oWord.ActiveDocument.Tables(1).Cell(15,1).Select
oWord.Selection.Cells.width=68
oWord.ActiveDocument.Tables(1).Cell(1,2).Select
oWord.Selection.Cells.width=61
oWord.ActiveDocument.Tables(1).Cell(1,3).Select
oWord.Selection.Cells.width=45
oWord.ActiveDocument.Tables(1).Cell(2,2).Select
oWord.Selection.Cells.width=61
oWord.ActiveDocument.Tables(1).Cell(2,3).Select
oWord.Selection.Cells.width=45
oWord.ActiveDocument.Tables(1).Cell(1,4).Select
oWord.Selection.Cells.width=63
oWord.ActiveDocument.Tables(1).Cell(2,4).Select
oWord.Selection.Cells.width=63
oWord.ActiveDocument.Tables(1).Cell(3,3).Select
oWord.Selection.Cells.width=63
oWord.ActiveDocument.Tables(1).Cell(4,3).Select
oWord.Selection.Cells.width=63
oWord.ActiveDocument.Tables(1).Cell(5,3).Select
oWord.Selection.Cells.width=63
oWord.ActiveDocument.Tables(1).Cell(8,3).Select
oWord.Selection.Cells.width=63
oWord.ActiveDocument.Tables(1).Cell(9,3).Select
oWord.Selection.Cells.width=63
oWord.ActiveDocument.Tables(1).Cell(10,3).Select
oWord.Selection.Cells.width=63
oWord.ActiveDocument.Tables(1).Cell(11,3).Select
oWord.Selection.Cells.width=63
oWord.ActiveDocument.Tables(1).Cell(3,2).Select
oWord.Selection.Cells.width=106
oWord.ActiveDocument.Tables(1).Cell(4,2).Select
oWord.Selection.Cells.width=106
oWord.ActiveDocument.Tables(1).Cell(5,2).Select
oWord.Selection.Cells.width=106
oWord.ActiveDocument.Tables(1).Cell(3,4).Select
oWord.Selection.Cells.width=114
oWord.ActiveDocument.Tables(1).Cell(4,4).Select
oWord.Selection.Cells.width=114
oWord.ActiveDocument.Tables(1).Cell(5,4).Select
oWord.Selection.Cells.width=114
oWord.ActiveDocument.Tables(1).Cell(1,5).Select
oWord.Selection.Cells.width=50
oWord.ActiveDocument.Tables(1).Cell(1,6).Select
oWord.Selection.Cells.width=64
oWord.ActiveDocument.Tables(1).Cell(2,5).Select
oWord.Selection.Cells.width=50
oWord.ActiveDocument.Tables(1).Cell(2,6).Select
oWord.Selection.Cells.width=64
oWord.ActiveDocument.Tables(1).Cell(8,2).Select
oWord.Selection.Cells.width=106
oWord.ActiveDocument.Tables(1).Cell(9,2).Select
oWord.Selection.Cells.width=106
oWord.ActiveDocument.Tables(1).Cell(10,2).Select
oWord.Selection.Cells.width=106
oWord.ActiveDocument.Tables(1).Cell(11,2).Select
oWord.Selection.Cells.width=106
oWord.ActiveDocument.Tables(1).Cell(8,4).Select
oWord.Selection.Cells.width=80
oWord.ActiveDocument.Tables(1).Cell(9,4).Select
oWord.Selection.Cells.width=80
oWord.ActiveDocument.Tables(1).Cell(10,4).Select
oWord.Selection.Cells.width=80
oWord.ActiveDocument.Tables(1).Cell(11,4).Select
oWord.Selection.Cells.width=80
oWord.ActiveDocument.Tables(1).Cell(8,5).Select
oWord.Selection.Cells.width=109
oWord.ActiveDocument.Tables(1).Cell(9,5).Select
oWord.Selection.Cells.width=109
oWord.ActiveDocument.Tables(1).Cell(10,5).Select
oWord.Selection.Cells.width=109
oWord.ActiveDocument.Tables(1).Cell(11,5).Select
oWord.Selection.Cells.width=109
oWord.ActiveDocument.Tables(1).Cell(6,2).Select
oWord.Selection.Cells.width=358
oWord.ActiveDocument.Tables(1).Cell(13,2).Select
oWord.Selection.Cells.width=358
oWord.ActiveDocument.Tables(1).Cell(14,2).Select
oWord.Selection.Cells.width=358
oWord.ActiveDocument.Tables(1).Cell(15,2).Select
oWord.Selection.Cells.width=358
oWord.ActiveDocument.Tables(1).Cell(3,4).Select
oWord.Selection.Cells.width=115
oWord.ActiveDocument.Tables(1).Cell(4,4).Select
oWord.Selection.Cells.width=115
oWord.ActiveDocument.Tables(1).Cell(5,4).Select
oWord.Selection.Cells.width=115
oWord.ActiveDocument.Tables(1).Cell(1,6).Select
oWord.Selection.Cells.width=65
oWord.ActiveDocument.Tables(1).Cell(2,6).Select
oWord.Selection.Cells.width=65

oWord.ActiveDocument.Tables(1).Cell(1,7).Select
oWord.Selection.MoveDown(5,4,2)
oWord.Selection.Cells.Merge

oWord.ActiveDocument.Tables(1).Cell(1,1).Range.InsertAfter("")
oWord.ActiveDocument.Tables(1).Cell(1,3).Range.InsertAfter("Ա")
oWord.ActiveDocument.Tables(1).Cell(1,5).Range.InsertAfter("")
oWord.ActiveDocument.Tables(1).Cell(1,5).Select
With oWord.Selection.Cells(1)
	.TopPadding = 0
	.BottomPadding = 0
	.LeftPadding = 3
	.RightPadding = 1
	.WordWrap = .T.
	.FitText = .F.
Endwith
oWord.ActiveDocument.Tables(1).Cell(2,1).Range.InsertAfter("")
oWord.ActiveDocument.Tables(1).Cell(2,3).Range.InsertAfter("")
oWord.ActiveDocument.Tables(1).Cell(2,5).Range.InsertAfter("ò")
oWord.ActiveDocument.Tables(1).Cell(2,5).Select
With oWord.Selection.Cells(1)
	.TopPadding = 0
	.BottomPadding = 0
	.LeftPadding = 3
	.RightPadding = 1
	.WordWrap = .T.
	.FitText = .F.
Endwith
oWord.ActiveDocument.Tables(1).Cell(3,1).Range.InsertAfter("Ժϵ")
oWord.ActiveDocument.Tables(1).Cell(3,3).Range.InsertAfter("רҵ༶")
oWord.ActiveDocument.Tables(1).Cell(4,1).Range.InsertAfter("")
oWord.ActiveDocument.Tables(1).Cell(4,3).Range.InsertAfter("ҵ绰")
oWord.ActiveDocument.Tables(1).Cell(5,1).Range.InsertAfter("ֻ")
oWord.ActiveDocument.Tables(1).Cell(5,3).Range.InsertAfter("ͥ绰")
oWord.ActiveDocument.Tables(1).Cell(6,1).Range.InsertAfter("ַͥ")
oWord.ActiveDocument.Tables(1).Cell(8,1).Range.InsertAfter("")
oWord.ActiveDocument.Tables(1).Cell(8,2).Range.InsertAfter("λ")
oWord.ActiveDocument.Tables(1).Cell(8,3).Range.InsertAfter("ְ")
oWord.ActiveDocument.Tables(1).Cell(8,4).Range.InsertAfter("ò")
oWord.ActiveDocument.Tables(1).Cell(8,5).Range.InsertAfter("ϵ绰")
oWord.ActiveDocument.Tables(1).Cell(13,1).Range.InsertAfter("س")
oWord.ActiveDocument.Tables(1).Cell(13,1).Select
oWord.Selection.Orientation=.T.
oWord.Selection.Cells.VerticalAlignment = 1
oWord.Selection.ParagraphFormat.Alignment = 1
oWord.Selection.Cells.Height=128
oWord.ActiveDocument.Tables(1).Cell(14,1).Range.InsertAfter("μӻ")
oWord.ActiveDocument.Tables(1).Cell(14,1).Select
oWord.Selection.Orientation=.T.
oWord.Selection.Cells.VerticalAlignment = 1
oWord.Selection.ParagraphFormat.Alignment = 1
oWord.Selection.Cells.Height=128
oWord.ActiveDocument.Tables(1).Cell(15,1).Range.InsertAfter("ҽ")
oWord.ActiveDocument.Tables(1).Cell(15,1).Select
oWord.Selection.Orientation=.T.
oWord.Selection.Cells.VerticalAlignment = 1
oWord.Selection.ParagraphFormat.Alignment = 1
oWord.Selection.Cells.Height=128
oWord.ActiveDocument.Tables(1).Cell(1,2).Range.InsertAfter()
oWord.ActiveDocument.Tables(1).Cell(1,4).Range.InsertAfter(Ա)
oWord.ActiveDocument.Tables(1).Cell(1,6).Range.InsertAfter(iif(empty(),"",))
oWord.ActiveDocument.Tables(1).Cell(2,2).Range.InsertAfter()
oWord.ActiveDocument.Tables(1).Cell(2,4).Range.InsertAfter()
oWord.ActiveDocument.Tables(1).Cell(2,4).Select
With oWord.Selection.Cells(1)
        .TopPadding = 0
        .BottomPadding = 0
        .LeftPadding = 0
        .RightPadding = 0
        .WordWrap = .T.
        .FitText = .F.
EndWith
oWord.ActiveDocument.Tables(1).Cell(2,6).Range.InsertAfter(ò)
oWord.ActiveDocument.Tables(1).Cell(3,2).Range.InsertAfter(Ժϵ)
oWord.ActiveDocument.Tables(1).Cell(3,4).Range.InsertAfter(רҵ༶)
oWord.ActiveDocument.Tables(1).Cell(4,2).Range.InsertAfter()
oWord.ActiveDocument.Tables(1).Cell(4,4).Range.InsertAfter(ҵ绰)
oWord.ActiveDocument.Tables(1).Cell(5,2).Range.InsertAfter(ֻ)
oWord.ActiveDocument.Tables(1).Cell(5,4).Range.InsertAfter(ͥ绰)
oWord.ActiveDocument.Tables(1).Cell(6,2).Range.InsertAfter(ַͥ)
oWord.ActiveDocument.Tables(1).Cell(9,1).Range.InsertAfter()
oWord.ActiveDocument.Tables(1).Cell(9,2).Range.InsertAfter(׹λ)
oWord.ActiveDocument.Tables(1).Cell(9,3).Range.InsertAfter(ְ)
oWord.ActiveDocument.Tables(1).Cell(9,4).Range.InsertAfter(ò)
oWord.ActiveDocument.Tables(1).Cell(9,5).Range.InsertAfter(ϵ绰)
oWord.ActiveDocument.Tables(1).Cell(10,1).Range.InsertAfter(ĸ)
oWord.ActiveDocument.Tables(1).Cell(10,2).Range.InsertAfter(ĸ׹λ)
oWord.ActiveDocument.Tables(1).Cell(10,3).Range.InsertAfter(ĸְ)
oWord.ActiveDocument.Tables(1).Cell(10,4).Range.InsertAfter(ĸò)
oWord.ActiveDocument.Tables(1).Cell(10,5).Range.InsertAfter(ĸϵ绰)
oWord.ActiveDocument.Tables(1).Cell(13,2).Range.InsertAfter(س)
oWord.ActiveDocument.Tables(1).Cell(14,2).Range.InsertAfter(μӻ)
oWord.ActiveDocument.Tables(1).Cell(15,2).Range.InsertAfter(ҽ)

Local pho
pho=allt(Ƭ·)
If !empty(pho) and file(pho)=.T.
	oWord.ActiveDocument.Tables(1).Cell(1,7).Select
	With oWord.Selection.Cells(1)
		.TopPadding = 0
		.BottomPadding = 0
		.LeftPadding = 0
		.RightPadding = 0
		.WordWrap = .T.
		.FitText = .F.
	Endwith
	oWord.Selection.InlineShapes.AddPicture(allt(Ƭ·),.F.,.T.)
	oWord.Selection.Cells.VerticalAlignment = 1
	oWord.Selection.ParagraphFormat.Alignment = 1
Endif
oWord.Selection.MoveDown(7,1)

Use in ѧ
oWord.quit







