Home
TeamSite
Word Printing Macros Issue with Worksite
System
We are having an issue with a basic Word 2003 macro that only prints out the first page of a document only. When we create a new document or even one saved locally (not in Worksite) the macro below runs fine. If we then save that exact same document into Worksite the macro does not print just the first page it prints the entire document out.
Sub PrintPage1Only()
ActiveDocument.ActiveWindow.PrintOut _
Range:=wdPrintFromTo, From:="1", To:="1"
End Sub
Any Ideas?
Find more posts tagged with
Comments
taibooz
i can bypass by using this code in the macro. There should be a sample template that you can down load from interwoven support web site
Private Sub objExtensibilitySink_DocumentBeforePrint(ByVal Doc As Object, _
IgnoreIManagePrint As Boolean, _
Cancel As Boolean)
Dim objDocument As IManage.NRTDocument
If objDocument Is Nothing Then Exit Sub 'not using iManage print function
' Tell the iManage integration not to intercept print functions
IgnoreIManagePrint = True
' Free pointer before exiting
Set objDocument = Nothing
End Sub