1
在使用vb.net我有這樣的代碼:打印第一頁打印只Word文檔
Dim objWordApp As New word.Application
Dim objDoc As word.Document
objWordApp.Documents.Open("c:\integra-billing\final\" + wordfilename, False, True)
objWordApp.Visible = False
objDoc = objWordApp.ActiveDocument
objWordApp.DisplayAlerts = word.WdAlertLevel.wdAlertsNone
'now print the word document
objWordApp.PrintOut()
'now close it
objWordApp.Documents.Close(word.WdSaveOptions.wdDoNotSaveChanges)
objWordApp.Quit()
objWordApp = Nothing
打開,打印和關閉Word文檔
我怎樣才能使這個只打印第一頁
word文檔