PdcReports.PrinterNames

From External Bemet Wiki
Jump to navigation Jump to search

Declaration

PrinterNames as IStrings

Description

Notes

This list returns all the possible names of the printers for the reportbuilder.

Code example

This example code shows all the possible printernames on a computer.

dim objReports
dim objPrinters
dim intCnt
dim strPrinterNames

  set objReports = pdc.Reports
  set objPrinters = objReports.PrinterNames
  for intCnt = 0 to objPrinters.Count - 1
    strPrinterNames = strPrinterNames & objPrinters(intCnt) & vbCrLf
  next
  msgbox strPrinterNames

Availability

Available since Februar 2011 (from version 4.2).