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.font.bold=.T.
oWord.Selection.font.name=''
oWord.Selection.font.size=23
oWord.Selection.typetext("                  ")
oWord.Selection.font.size=12
oWord.Selection.TypeParagraph
oWord.Selection.font.name=''
oWord.Selection.font.size=10.5
oWord.Selection.TypeParagraph
oWord.Selection.typetext("  "+רҵ༶)
oWord.Selection.TypeParagraph
oWord.Selection.font.bold=.F.

oWord.ActiveDocument.Tables.Add(oWord.Selection.Range,reccount()+1,2)
oWord.ActiveDocument.Tables(1).Cell(1,1).Range.InsertAfter("ѧ")
oWord.ActiveDocument.Tables(1).Cell(1,1).Select
oWord.Selection.Cells.VerticalAlignment = 1
oWord.Selection.ParagraphFormat.Alignment = 1
oWord.ActiveDocument.Tables(1).Cell(1,2).Range.InsertAfter("")
oWord.ActiveDocument.Tables(1).Cell(1,2).Select
oWord.Selection.Cells.VerticalAlignment = 1
oWord.Selection.ParagraphFormat.Alignment = 1
For i=1 to reccount()
    Go i
    oWord.ActiveDocument.Tables(1).Cell(i+1,1).Range.InsertAfter(ѧ)
    oWord.ActiveDocument.Tables(1).Cell(i+1,1).Select
    oWord.Selection.Cells.VerticalAlignment = 1
    oWord.Selection.ParagraphFormat.Alignment = 1
    oWord.ActiveDocument.Tables(1).Cell(i+1,2).Range.InsertAfter()
    oWord.ActiveDocument.Tables(1).Cell(i+1,2).Select
    oWord.Selection.Cells.VerticalAlignment = 1
    oWord.Selection.ParagraphFormat.Alignment = 1
Endfor
oWord.Selection.movedown(7,1)

mypagenum=oWord.Selection.Sections(1).Headers(1).PageNumbers
mypagenum.NumberStyle=0
mypagenum.HeadingLevelForChapter=0
mypagenum.IncludeChapterNumber=.f.
mypagenum.ChapterPageSeparator=0
mypagenum.RestartNumberingAtSection=.f.
mypagenum.StartingNumber=0
oWord.Selection.Sections(1).Footers(1).PageNumbers.Add (1,.t.)

Use in ѧ

oWord.quit














