![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Hello,
I have some code that pulls up a Word document, and prints it. Here's a snipit of code: Sub CommandButtonFileCoverII_Click() On Error Resume Next Dim objDoc Dim strCurrentPrinter' As String Dim objWord Set objDoc = GetWordDocFileCoverII("\\tgps8\drawing$\Jobs\Task_ Templates\Template-FILE COVER.dot") Call FillFieldsFileCoverII(objDoc) objDoc.Application.Options.PrintBackground = True Call RestoreWordFileCoverII 'MsgBox "The name of the active printer is " & objDoc.Application.ActivePrinter strCurrentPrinter = objDoc.Application.ActivePrinter ' store the current active printer On Error Resume Next ' ignore printing errors objDoc.Application.ActivePrinter = "DYMO" ' change to another printer if Item.UserProperties("PrintHold") = False then objDoc.PrintOut ' print the active sheet end if I want to also pull up a PDF file and print that. How can I go about that? Does anybody have any sample code? Thanks Joel |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How can I change print preferences to print emails? | cmsteiner90 | Outlook - General Queries | 2 | October 24th 06 04:41 PM |
Outlook memo for print - I want to only print 1 page | JL | Outlook - Using Forms | 1 | April 25th 06 12:52 AM |
D-Link DP-301U print server will not print from Outlook, OE, or Firefox | KLS | Outlook - General Queries | 2 | March 22nd 06 11:52 AM |
D-Link DP-301U print server will not print from Outlook, OE, or Firefox | KLS | Outlook Express | 4 | March 22nd 06 03:14 AM |
Print Preview and Print Untyped messages | dhknoxville | Outlook - Installation | 2 | March 10th 06 03:51 PM |