Re: Printing to Multiple Trays Problem

From: JamesW (anonymous_at_discussions.microsoft.com)
Date: 04/07/04


Date: Wed, 7 Apr 2004 00:56:54 -0700

Thanks for the suggestion. I have tried installing the
driver locally and am still getting the same problem.
Only seems to want to print to tray 1.

James
>-----Original Message-----
>Far from being an expert, but;
>Is the driver installed on the local machine?
>My experience was the same, albeit not printing from a
macro, but I
>couldn't select trays until the driver was installed
locally.
>
>--
>Regards;
>Rob
>----------------------------------------------------------
--------------
>"JamesW" <anonymous@discussions.microsoft.com> wrote in
message
>news:1458d01c41bd9$b587de10$a001280a@phx.gbl...
>> I have the following macro that used to work for our
>> Laserjet 5si however we have changed the printer for a
>> Laserjet 4200 and the macro prints the whole document to
>> tray 1 rather than first page to tray 1 and other pages
to
>> tray 3. Printing to the LJ5N works fine. Any help
would
>> be appreciated.
>>
>> Sub Fourcopy()
>> '
>> ' Fourcopy Macro
>> ' Macro recorded 13/05/97 by Gateway 2000 licensed User
>> '
>> ActivePrinter = "\\admin2000\envhlth_4200tn1"
>> With ActiveDocument.PageSetup
>> .LineNumbering.Active = False
>> .Orientation = wdOrientPortrait
>> .Gutter = InchesToPoints(0)
>> Rem .HeaderDistance = InchesToPoints(0.5)
>> .FooterDistance = InchesToPoints(0.5)
>> .PageWidth = InchesToPoints(8.27)
>> .PageHeight = InchesToPoints(11.69)
>> .FirstPageTray = wdPrinterUpperBin
>> .OtherPagesTray = wdPrinterLowerBin
>> .SectionStart = wdSectionNewPage
>> Rem .OddAndEvenPagesHeaderFooter = False
>> Rem .DifferentFirstPageHeaderFooter = True
>> .VerticalAlignment = wdAlignVerticalTop
>> .SuppressEndnotes = False
>> .MirrorMargins = False
>> End With
>> Application.PrintOut FileName:="",
>> Range:=wdPrintAllDocument, Item:= _
>> wdPrintDocumentContent, Copies:=1, Pages:="",
>> PageType:=wdPrintAllPages, _
>> Collate:=True, Background:=False,
>> PrintToFile:=False
>> If ActiveWindow.View.SplitSpecial <> wdPaneNone Then
>> ActiveWindow.Panes(2).Close
>> End If
>> If ActiveWindow.ActivePane.View.Type = wdNormalView
Or
>> ActiveWindow. _
>> ActivePane.View.Type = wdOutlineView Or
>> ActiveWindow.ActivePane.View.Type _
>> = wdMasterView Then
>> ActiveWindow.ActivePane.View.Type = wdPageView
>> End If
>> ActiveWindow.ActivePane.View.SeekView =
>> wdSeekCurrentPageHeader
>> If Selection.HeaderFooter.IsHeader = True Then
>> ActiveWindow.ActivePane.View.SeekView =
>> wdSeekCurrentPageFooter
>> Else
>> ActiveWindow.ActivePane.View.SeekView =
>> wdSeekCurrentPageHeader
>> End If
>> Selection.ParagraphFormat.Alignment =
>> wdAlignParagraphRight
>> Selection.Font.Size = 8
>> Selection.TypeParagraph
>> Selection.Fields.Add Range:=Selection.Range,
>> Type:=wdFieldEmpty, Text:= _
>> "FILENAME \p ", PreserveFormatting:=True
>> ActiveWindow.ActivePane.View.SeekView =
>> wdSeekMainDocument
>> ActivePrinter = "\\admin2000\envhlth_LJ5N"
>> With ActiveDocument.PageSetup
>> .LineNumbering.Active = False
>> .Orientation = wdOrientPortrait
>> .Gutter = InchesToPoints(0)
>> Rem .HeaderDistance = InchesToPoints(0.5)
>> .FooterDistance = InchesToPoints(0.5)
>> .PageWidth = InchesToPoints(8.27)
>> .PageHeight = InchesToPoints(11.69)
>> .FirstPageTray = wdPrinterLowerBin
>> .OtherPagesTray = wdPrinterLowerBin
>> .SectionStart = wdSectionNewPage
>> Rem .OddAndEvenPagesHeaderFooter = False
>> Rem .DifferentFirstPageHeaderFooter = True
>> .VerticalAlignment = wdAlignVerticalTop
>> .SuppressEndnotes = False
>> .MirrorMargins = False
>> End With
>> Application.PrintOut FileName:="",
>> Range:=wdPrintAllDocument, Item:= _
>> wdPrintDocumentContent, Copies:=1, Pages:="",
>> PageType:=wdPrintAllPages, _
>> Collate:=True, Background:=False,
>> PrintToFile:=False
>> With ActiveDocument.PageSetup
>> .LineNumbering.Active = False
>> .Orientation = wdOrientPortrait
>> .Gutter = InchesToPoints(0)
>> Rem .HeaderDistance = InchesToPoints(0.5)
>> .FooterDistance = InchesToPoints(0.5)
>> .PageWidth = InchesToPoints(8.27)
>> .PageHeight = InchesToPoints(11.69)
>> .FirstPageTray = wdPrinterUpperBin
>> .OtherPagesTray = wdPrinterUpperBin
>> .SectionStart = wdSectionNewPage
>> Rem .OddAndEvenPagesHeaderFooter = False
>> Rem .DifferentFirstPageHeaderFooter = True
>> .VerticalAlignment = wdAlignVerticalTop
>> .SuppressEndnotes = False
>> .MirrorMargins = False
>> End With
>> Application.PrintOut FileName:="",
>> Range:=wdPrintAllDocument, Item:= _
>> wdPrintDocumentContent, Copies:=1, Pages:="",
>> PageType:=wdPrintAllPages, _
>> Collate:=True, Background:=False,
>> PrintToFile:=False
>> ActivePrinter = "\\admin2000\envhlth_LJ5"
>> End Sub
>
>
>.
>



Relevant Pages

  • Re: Explorer slow to find drives after Cameras installed
    ... Knowing that svchost.exe was the bug, as WIA is started from this, I seached ... This post hinted at a conflict or driver error of a device. ... After installing this ... The registry has been restored to its previous state before cleaning ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: No Sound on IBM ThinkPad T42
    ... The Control Panel for "Sounds and Audio Devices" shows no playback ... "Sound, video and game controllers": ... I figured that all I need to do is re-install my sound card driver. ... I'm not the only person having problems installing SoundMAX ...
    (microsoft.public.windowsxp.general)
  • Re: No Sound on IBM ThinkPad T42
    ... Sound was working fine for the last year until a Windows ... The Control Panel for "Sounds and Audio Devices" shows no playback devices ... I figured that all I need to do is re-install my sound card driver. ... I'm not the only person having problems installing SoundMAX ...
    (microsoft.public.windowsxp.general)
  • RE: Webcam installation problem
    ... I did what you advised me to do apart from installing the driver that is not ... available (the link you provided is not the producer of the camera). ... My laptop was bought in Italy while I bought the camera in the UK but I ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: USB host port 2
    ... So I included RETAILMSG in Usbd.cpp and I captured the debug messages. ... If I give driver dllname, then the following message has come. ... It seems there is a problem in installing the driver. ... "Unknown USB device". ...
    (microsoft.public.windowsce.platbuilder)