You may want to ask this question in the Word VBA group. [EMAIL PROTECTED] As you are looking for Word VBA information. They have a good group over there, and they should be able to answer question.

 

 

-----Original Message-----
From: AccessDevelopers@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of uhitmiaysuu
Sent: Friday, August 26, 2005 10:50 AM
To: AccessDevelopers@yahoogroups.com
Subject: [AccessDevelopers] Print Pages in Word and Print TIFF files

 

Hi,
I have 2 problems. First, I have a code to open a 24-page word doc
but I would like to print only pages 1, 7 and 24 as soon as it opens.

sample:
Dim WordObj As Object
Set WordObj = CreateObject("Word.Application")

WordObj.Documents.Open "C:\AT&T.DOC"
WordObj.PrintOut Background:=True, Pages:="1,7,24" `this one doesn't
work, it prints out all 24 pages    
WordObj.Quit SaveChanges:=No

Set WordObj = Nothing
Question: how can I print specific pages only?

My second problem is how to automatically print .TIFF file
(hyperlink) when I click on the link.

sample:
Me.Package.SetFocus
DoCmd.RunCommand acCmdOpenHyperlink
DoCmd.PrintOut  `this will print only the form and not the tiff file
Question: how to print it tiff file?

I appreciate all your help.
Thanks,
Julius '2000 ver





This email and any attachments contain information from Baker & Taylor which may
be confidential, privileged and/or protected by other legal rules. If you are not the
intended recipient, you are hereby advised that any disclosure, copying, distribution or
use of the contents of this email is prohibited. If you have received the email in error,
please notify us by reply email immediately and then delete the email and your reply
from your email system. NOTE: Baker & Taylor accepts no liability for the contents of
this email. This email shall not operate to bind Baker & Taylor to any contract, order
or other obligation.




Please zip all files prior to uploading to Files section.




YAHOO! GROUPS LINKS




Reply via email to