Computing.Net > Forums > Programming > Print Current Page --> Macro

Print Current Page --> Macro

Reply to Message Icon

Original Message
Name: ChanSahib
Date: July 18, 2005 at 00:51:34 Pacific
Subject: Print Current Page --> Macro
OS: ME/XP
CPU/Ram: 512
Comment:

I am trying to get create a macro that will print the current page of the document AND override this warning
"The Margins of section 1 are set outside the
printable area of the page. Do you want to continue?"

the VBA code is
################
Sub PrintCurrent()
'
' PrintCurrent Macro
' Macro recorded 18/07/2005 by x917096
'automatically generated code by Word

Application.PrintOut FileName:="", Range:=wdPrintCurrentPage, Item:= _
wdPrintDocumentContent, Copies:=1, Pages:="", PageType:=wdPrintAllPages, _
Collate:=True, Background:=True, PrintToFile:=False, PrintZoomColumn:=0, _
PrintZoomRow:=0, PrintZoomPaperWidth:=0, PrintZoomPaperHeight:=0
End Sub
################
I can't edit the original document (at work you see) - and just want a button to print the current page. I can create a macro to print the current page - but I keep getting the warning about the margins, which I would like to overide without having the dialogue appear. - Is there a simple little line of code I can append to the Macro to supress the dialogue?

Anyone have any ideas?


Report Offensive Message For Removal








Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Print Current Page --> Macro

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




How often do you use Computing.Net?

Every Day
Once a Week
Once a Month
This Is My First Time!


View Results

Poll Finishes In 2 Days.
Discuss in The Lounge