ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Print functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
iListPrinter (Function)
In french: iListeImprimante
Returns the list of printers installed on the current computer.
Example
sListeImprimante is string
sListeImprimante = iListPrinter()
Syntax
<Result> = iListPrinter()
<Result>: Character string
List of printers in the following format:
<Imprimante 1> + RC + ... + <Imprimante N>

Where <Printer 1> ... <Printer N> correspond to the name of the printers.
Remarks
To display the list of printers in a List Box or Combo Box control, use the following syntax:
ListeAjoute(<Nom Champ Liste ou Combo>, <Résultat>)
Component: wd300prn.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
exemplo ilistPrinter
//Youtube
https://youtu.be/GkQLOltnskY
// buscanco impressoras
lista_impressoras is string=iListPrinter()
COMBO_IMPRESSORAS.DeleteAll()
COMBO_IMPRESSORAS.Add("Tela")
COMBO_IMPRESSORAS.Add(lista_impressoras)
ListSelectPlus(COMBO_IMPRESSORAS,1)
//imprimindo
IF COMBO_IMPRESSORAS..StoredValue="Tela" THEN
iPreview(ipvZoom100)
ELSE
iConfigure(COMBO_IMPRESSORAS..StoredValue)
END
iPrint(iFont(1)+"Teste de relatorio")
iEndPrinting()
amarildo
19 May 2023

Last update: 09/21/2024

Send a report | Local help