PageScript 32 - User guide for [x]Harbour and Xbase++ - Version 3.0.3

Print Preview Window

The Print Preview Window

Function reference

PSAbort()

PSAsciiToAnsi()

PSBarCode()

PSBeginDoc()

PSBeginDocEx()

PSBeginEmuDoc()

PSBeginRawDoc()

PSBitmap()

PSEllipse()

PSEllipseEx()

PSEndDoc()

PSEndEmuDoc()

PSEndRawDoc()

PSFrame()

PSFrameEx()

PSGetAsciiToAnsi()

PSGetBin()

PSGetBorderColor()

PSGetBorderThickness()

PSGetCaps()

PSGetCoorSystem()

PSGetCopies()

PSGetCPI()

PSGetDecimalSep()

PSGetDefPrinter()

PSGetDefaultPrinter()

PSGetDuplex()

PSGetFillColor()

PSGetFillPattern()

PSGetFonts()

PSGetFontAngle()

PSGetFontBColor()

PSGetFontCount()

PSGetFontFColor()

PSGetFontJustify()

PSGetFontName()

PSGetFontNames()

PSGetFontSize()

PSGetFontStyle()

PSGetJustify()

PSGetLPI()

PSGetMaxHeight()

PSGetMaxWidth()

PSGetOrientation()

PSGetPageSize()

PSGetPaperBin()

PSGetPaperBins()

PSGetPaperBinCount()

PSGetPaperBinNames()

PSGetPaperBinNumbers()

PSGetPaperCount()

PSGetPaperNames()

PSGetPaperNumbers()

PSGetPrinter()

PSGetPrinters()

PSGetPrinterCaps()

PSGetPrinterCapsEx()

PSGetPrinterCount()

PSGetPrinterHandle()

PSGetPrinterNames()

PSGetTextHeight()

PSGetTextWidth()

PSGetTitle()

PSGetUnit()

PSGetUseDIB()

PSGetVersion()

PSGetXerox()

PSInit()

PSIsPreviewVisible()

PSLine()

PSLineEx()

PSNewPage()

PSPrintDialog()

PSPrintFile()/PSPrintEmuFile()

PSPrintRawFile()

PSSetAsciiToAnsi()

PSSetBin()

PSSetBorder()

PSSetBorderColor()

PSSetBorderThickness()

PSSetClipperComp()

PSSetCoorSystem()

PSSetCopies()

PSSetCPI()

PSSetDecimalSep()

PSSetDevice()

PSSetDirectPrint()

PSSetDuplex()

PSSetFileName()

PSSetFill()

PSSetFillColor()

PSSetFillPattern()

PSSetFont()

PSSetFontAttributes()

PSSetFontAngle()

PSSetFontBColor()

PSSetFontFColor()

PSSetFontName()

PSSetFontSize()

PSSetFontStyle()

PSSetJustify()

PSSetLPI()

PSSetOrientation()

PSSetPageSize()

PSSetPaperBin()

PSSetPDFOwnerPassword()

PSSetPrinter()

PSSetPWBounds()

PSSetPWColors()

PSSetPWPosition()

PSSetPWSize()

PSSetPWState()

PSSetPWZoomLevel()

PSSetRowCol()

PSSetTitle()

PSSetUnit()

PSSetUseDIB()

PSSetXerox()

PSTextBox()

PSTextBoxEx()

PSTextOut()

PSTextOutEx()

PSVersion()

PSWaterMark()

RGB()

Obsolete or unsupported

These functions are either unsupported or became obsolete in this version of PageScript 32 for xbase like programming languages.

PSPrnChanged()

PSRefreshPrinters()

PSSendMail()

PSSetPrintPreview()

PSSetTimeSlice()

PSShowIcon()

PSShutDown()

The Print Preview Window

The Print Preview Window lets your user preview a print job before it's sent to a physical printer.

PageScript 32 Print Preview window

Controlling the position, size and zoom factor

You can control the position, size and state of the window by calling the appropriate functions/methods :

PSSetPWBounds()
PSSetPWPosition()
PSSetPWSize()
PSSetPWState() (Enhanced)
PSSetPWZoomLevel()

Introduced in V 3.0.0.0

If you'd like the Print Preview Window to retain its state, position and size automatically, call PSSetPWState(PWS_AUTO) at program start, but after calling PSInit().

Controlling the colors (new in V 3.0.0.0)

You can also control some of the colors used in the window to match your application's color scheme :

PSSetPWColors()

Tollbar buttons

When the Print Preview Window is shown, your user uses the toolbar buttons located at the top of the window to :

  • Go to the first page
  • Go to the previous page
  • Go to the next page
  • Go to the last page
  • Print the document
  • Fit the page so that the page is fully visible (view full page)
  • Fit the page so that its width fills the vewable area
  • Decrease the zoom factor
  • Increase the zoom factor

Using the mouse (new in V 3.0.0.0 and enhanced in 3.0.2.0)

Your user may control the vertical scrollbar using the scroll wheel of the mouse.

Pressing the Ctrl key and scrolling teh mouse wheel controls the zoom factor.

Using the keyboard (new in V 3.0.0.0 and enhanced in 3.0.2.0)

Some parts of the Print Preview Window may be controlled using the keyboard. Here's a liste of the available keys and they do :

  • Keypad plus key = Increase the zoom factor by 10%
  • Keypad minus key = Decrease the zoom factor by 10%
  • PgUp = Previous page
  • PgDn = Next page
  • P = Calls the printer dialog
  • Esc = Closes the window
  • Up arrow = Scrolls the viewport down
  • Down arrow = Scrolls the viewport up