Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
Using PDF reDirect
 EXP Systems Forum : PDF reDirect : Using PDF reDirect
Topic: Word Macro Post Reply Post New Topic
Author Message
Niel1952
Newbie
Newbie


Joined: 11 Jan 06
Location: United Kingdom
Posts: 3
Quote Niel1952 Replybullet Topic: Word Macro
    Posted: 16 Jan 06 at 10:08AM

I'm not sure whther I should be posting this in the programming topic but I am posting it here for people who may not read that topic.

I suspect that there are people who need to regularly convert standard Word documents to pdfs.  The simplest way I have found is to have a macro, such as the one below added to the Word toolbar.  This macro will determine your current printer and, after converting the document to a pdf, revert the settings to that printer.  This macro will apply your default settings for Word and for PDF reDirect but you will still have to manually save the pdf document (and the Word document).

-------------------------------------------------------

Sub PDFreDirect()
'
' PDFreDirect Macro
' Macro created 16/01/2006 by Niel Ackermann
'
    strActivePrinter = ActivePrinter              'Checks for Active Printer
    ActivePrinter = "PDF reDirect v2"             'Changes Printer Driver to PDF reDirect v2
    Application.PrintOut FileName:="", Range:=wdPrintAllDocument, Item:= _
        wdPrintDocumentContent, Copies:=1, Pages:="", PageType:=wdPrintAllPages, _
        Collate:=True, Background:=True, PrintToFile:=False, PrintZoomColumn:=0, _
        PrintZoomRow:=0, PrintZoomPaperWidth:=0, PrintZoomPaperHeight:=0
       
    ActivePrinter = strActivePrinter              'Restores Original Active Printer
End Sub

-------------------------------------------------------

IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum