要求输入两行单行句子。并且可以控制文字的大小
第三行开始输入长篇文字。关键是输入文字部分和控制文字大小部分的代码,谢谢!
第三行开始输入长篇文字。关键是输入文字部分和控制文字大小部分的代码,谢谢!
解决方案 »
- 请问SQL语句 怎么批量更新记录集?
- vsflexgrid控件一个很奇怪的问题
- vb6的控键能否继承.net控键啊?
- 时间不匹配!2005-5-24 下午 3:27 和 2005-5-24 。
- 在VB中用OPEN语句打开方式为二进制的情况下,发现一个文件里已写了的内容下次再进行写,还是存在,我的意思是..
- 如何关闭应用程序,知道EXE文件名,但没窗口!
- help!!!如何解决isam没有安装的错误
- 谁有学习数据库的好例子呀`!~可以查询,更新操作的例子~~我想学习呀`还有打印功能呀`给高分呀~
- 打开两个数据时,数据库名怎么表示
- 请教:在VB程序中实现FTP上载和下载的方法?
- 中国足球 “打平就出现"
- 窗口置顶后出现问题,请大家帮忙
'点击菜单 "工程/引用/Microsoft Word 9.0 Object Library" Dim wd As New Word.Application
wd.Documents.Add DocumentType:=wdNewBlankDocument
'插入一个5列3行的表格
wd.ActiveDocument.Tables.Add Range:=wd.Selection.Range, NumRows:=3, NumColumns _
:=5, DefaultTableBehavior:=wdWord9TableBehavior, AutoFitBehavior:= _
wdAutoFitFixed
wd.Selection.EndKey Unit:=wdStory '将光标移到最后
wd.Selection.InsertBreak Type:=wdPageBreak '插入分页符
wd.Visible = True
wd.ShowMe
End Sub
老大啊,我现在不想用表格的话,怎么办啊。我打印的是通知格式的东西
需要标题、发送时间和通知内容。三个数据。其中我想对通知的标题居中,字体变大。发送时间居右。
Selection.ParagraphFormat.Alignment = wdAlignParagraphCenter
Selection.Font.Size = 16
Selection.Font.Bold = wdToggle
Selection.TypeText Text:="sfdsdfsdfsdfsdf"
Selection.TypeParagraph
Selection.ParagraphFormat.Alignment = wdAlignParagraphJustify
Selection.TypeText Text:="dfgfgdfgdfgdfg"
Selection.TypeParagraph
Selection.ParagraphFormat.Alignment = wdAlignParagraphRight
Selection.TypeText Text:="dfdfdfdfdf"
wd.Documents.Add DocumentType:=wdNewBlankDocument
wd.Selection.EndKey Unit:=wdStory '½«¹â±êÒƵ½×îºó
wd.Visible = True
With wd.Selection.ParagraphFormat
.LeftIndent = CentimetersToPoints(0)
.RightIndent = CentimetersToPoints(0)
.SpaceBefore = 0
.SpaceBeforeAuto = False
.SpaceAfter = 0
.SpaceAfterAuto = False
.LineSpacingRule = wdLineSpace1pt5
.Alignment = wdAlignParagraphJustify
.WidowControl = False
.KeepWithNext = False
.KeepTogether = False
.PageBreakBefore = False
.NoLineNumber = False
.Hyphenation = True
.FirstLineIndent = CentimetersToPoints(0)
.OutlineLevel = wdOutlineLevelBodyText
.CharacterUnitLeftIndent = 0
.CharacterUnitRightIndent = 0
.CharacterUnitFirstLineIndent = 0
.LineUnitBefore = 0
.LineUnitAfter = 0
.AutoAdjustRightIndent = True
.DisableLineHeightGrid = False
.FarEastLineBreakControl = True
.WordWrap = True
.HangingPunctuation = True
.HalfWidthPunctuationOnTopOfLine = False
.AddSpaceBetweenFarEastAndAlpha = True
.AddSpaceBetweenFarEastAndDigit = True
.BaseLineAlignment = wdBaselineAlignAuto
End WithWith wd
.Selection.Font.Size = 18
.Selection.Font.Name = "ËÎÌå"
.Selection.Font.Bold = wdToggle
.Selection.ParagraphFormat.Alignment = wdAlignParagraphCenter
.Selection.TypeText Text:=Frmtz_neirong.lbl_biaoti.Caption
.Selection.TypeParagraph
.Selection.ParagraphFormat.Alignment = wdAlignParagraphRight
.Selection.Font.Size = 12
.Selection.Font.Bold = wdToggle
.Selection.TypeText Text:=Frmtz_neirong.lbl_fssj.Caption
.Selection.TypeParagraph
.Selection.ParagraphFormat.Alignment = wdAlignParagraphJustify
.Selection.TypeText Text:=Frmtz_neirong.RichTextBox1.Text
End With
wd.Visible = True
wd.ShowMe