PdcReports.PrinterNames

From External Bemet Wiki
Revision as of 11:55, 21 May 2012 by Mike (talk | contribs) (Created page with "== Declaration == PrinterNames as IStrings == Description == == Notes == This list returns all the possible names of the printers for the reportbuilder. == Code example ==...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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).