oPrinter=CREATEOBJECT("Scheduler.CPrinterParameter") oPrinter.Orientation=2 oPrinter.PaperBin= 7 && sppbAuto oPrinter.PaperSize= 1 && sppcLetter oPrinter.PrinterDeviceName=thisform.SelectPrinterCombo.DisplayValue thisform.ogb.goprint(thisform.frmfirstdayofweek,thisform.frmlastdayofweek,'06:00 AM','12:00 PM',oPrinter)Here is the text from the help file.
Syntax: Function GoPrint(vStartDateRoom, vEndDateRoom, [vStartTimeRoom], [vEndTimeRoom], [oPrinterParamters As CPrinterParameter]) As Boolean Definition: This method print a specified part of a schedule. Given the start/end date and rooms and the start/end times, this defined section is sent to the printer. This method can print an arbitrarily large schedule, but must have the needed hard drive temp space available. Each printed page takes about a Mb of hard drive space. After the print is completed this temp area is released. The "pvStart" and "pvEnd" parameters are the start and end dates or rooms. This parameter will be rooms if ViewMode property is a settings that excludes days, otherwise it is dates. An error is raised if invalid data is specified. The oPrinterParamters object has the properties: Copies, Orientation, PaperBin, PaperSize, PrinterDeviceName, PrintQuality. The "PrinterDeviceName" property of the oPrinterParamters object is the printer name. This must be a valid printer installed on the system. If the printer does not exist then an error is raised. The SchedulePrinters collection is a read-only collection of the system printers. Use one of these printer to specify the "PrinterDeviceName". The "lOrientation" property of the oPrinterParamters object allows you to print Portrait or Landscape. The constants for this are as follows: vbPRORPortrait = 1 vbPRORLandscape = 2Here is I