PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Versions 18 and later
iPhone/iPad Most of these functions are now available for the iPhone/iPad applications.
New in version 18
iPhone/iPad Most of these functions are now available for the iPhone/iPad applications.
iPhone/iPad Most of these functions are now available for the iPhone/iPad applications.
Versions 21 and later
Universal Windows 10 App Most of these functions are now available for the applications in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App Most of these functions are now available for the applications in Universal Windows 10 App mode.
Universal Windows 10 App Most of these functions are now available for the applications in Universal Windows 10 App mode.
AndroidiPhone/iPadUniversal Windows 10 App Caution: Only the print in PDF format is available.
iAddBookmarkAdds a bookmark into the print preview or during the export in PDF.
iBorderPrints a border at specified coordinates.
iChangeSubReportSourceModifies by programming the report associated with a sub-report in a composite report.
iCloseReportStops printing the current report immediately.
iColumnEndForces a column break in a multi-column report.
iColumnNumReturns the number of the current column in a multi-column report.
iConfigureConfigures the printer for a print performed in WLanguage:
  • by opening the configuration window.
  • by modifying the printer used for the current print.
iConfigureReportConfigures the printer by opening the configuration window (WINDEV and WINDEV Mobile).
iCreateFontCreates a new print font.
iCurrentFileReturns the name of the file currently generated.
iDestinationConfigures the print destination.
iDidotFontSelects the unit that will be used for the height of the fonts (created by iCreateFont): DIDOT point or PICA point.
iDirImageHTMLUsed to select the directory in which the images must be generated during a print in HTML format.
iDocumentCanceledUsed to find out whether the current print was canceled by the user.
iDocumentPrintedAllows you to find out whether the user has requested to print the document from the print preview.
iEllipsePrints an ellipse (in a rectangle).
iEndPrintingSignals the end of the document to print and actually starts printing the data stored in the printer spooler via the following functions: iPrint, iPrintImage, iNewLine, etc.
iEndReportForces the report print to stop.
iEscapeSends an ESCAPE command or a data command to a printer.
iFontSelects the default font.
iForceComplementForces the printing of a Body Complement block.
iGroupAddAdds a report to a group of reports.
iGroupConfigureModifies the parameters of a report found in a group of reports.
iGroupPrintStarts printing a report found in a group of reports.
iHLinePrints an horizontal line at specified coordinates.
iHPosiHPos is kept for backward compatibility.
iImageHeightCalculates the height of the image to print (in millimeters).
iImageWidthCalculates the width of the image to print (in millimeters).
iInfoPrinterRetrieves the characteristics of the current or default printer.
iInitReportQueryInitializes the query linked to the report (for a query with parameters).
iInitReportQueryConnectionInitializes the query linked to the report.
iInitSubReportInitializes the parameters of a sub-report of a composite report.
iLastFileReturns:
  • the full name of the last file generated during the print (PDF, RTF, text, ...).
  • the list of created duplicate files.
iLinePrints a line at specified coordinates.
iLinkAdds a link to a URL address into the HTML page currently printed.
iListNestedReportsReturns:
  • the list of nested reports currently printed (reports run by iPrintReport in one of the processes of the report currently printed).
  • the list of sequenced reports currently printed (iSequenceAdd).
iListPrinterReturns the list of printers installed on the current computer.
iMarginDefines the "logical" print margins.
iMMToPicaConverts the coordinates of a point (expressed in millimeters) into system coordinates.
iNestedHeaderFooterPrints (or not) the page headers and footers of nested report.
iNewLinePrints a line (in Windows standard, with a rounded end) at specified coordinates.
iPageEndForces the move to the next page during the report print.
iPageHeightCalculates the height of printable page (in millimeters) while taking the top or bottom margins into account.
iPageHeightLeftCalculates the available height (in millimeters) left on the current page while taking into account the defined margins (top or bottom).
iPageNumReturns or initializes the number of the page currently printed.
iPageWidthCalculates the width (in millimeters) of the printable page while taking the left or right margins into account.
iParameterRetrieves the printer configuration and configures the print.
iParameterDuplicateConfigures the automatic creation of the duplicate copy generated during the next print.
iParameterExportUsed to configure the exports performed from the print preview:
  • parameters for sending emails.
  • parameters for creating the different files.
iParameterPDFDefines the options for the generated PDF file.
iParameterPreviewConfigures the print preview:
  • display a message regarding the resources of current computer.
  • display (or not) each button found in the print preview.
iParameterReportConfigures the printer by opening the configuration window.
iParameterWatermarkAdds a watermark into a report (report created in the report editor or printed report).
iParameterXLSDefines the options for the XLS file generated during the print.
iPicaToMMConverts the coordinates of a point (expressed in system coordinates) into millimeters.
iPreviewConfigures the print destination.
iPrintSends the character string passed in parameter to the print buffer.
iPrintBarCodePrints a bar code (inside a rectangle).
iPrintBlockForces a report block to print.
iPrintBodyComplementForces a body complement block to print while specifying the height of complement block.
iPrintDocPrints a document in "docx" format.
iPrintDuplicatePrints a duplicate copy of a report.
iPrintImageSends the image file to print to the print buffer.
iPrintingNationModifies the current language for the next print (programmed print or report print).
iPrintPDFPrints the content:
  • of a PDF file.
  • of a buffer containing a PDF.
  • of a PDF Reader control.
iPrintReportPrints a report created with the report editor.
iPrintSignaturePrints a signature in a rectangular area. This signature will be used to sign the generated PDF files or the duplicates
iPrintWordSends the character string passed in parameter to the print "buffer".
iPrintZonePrints a text in a rectangular area.
iPrintZoneHTMLPritns a text in HTML format in a rectangular area.
iPrintZoneRTFPrints a text in RTF format in a rectangular area.
iReportPrintingStatusReturns the status of the current print.
iResetRe-initializes the print settings (margins, font, paper format, orientation, ...) stored in the print library.
iResetNbPagesReinitializes the current number of pages, used in the preset controls such as "Number of pages" and "Page number and number of pages".
iRoundBorderPrints a border with rounded outlines at specified coordinates.
iSelectFontCreates a new print font from the standard window for font selection...
iSequencingAddAdds a report into a sequence of report prints.
iSequencingAddDocAdds a print of Word Processing document into a sequence of report prints.
Versions 23 and later
iSequencingAddPDF
New in version 23
iSequencingAddPDF
iSequencingAddPDF
Adds a print of PDF document into a sequence of report prints.
iSequencingPrintPrints a sequence of reports.
iSkipLineForces one or more line break.
iSkipPageGenerates a page break: the corresponding code is sent to the printer queue.
iSubstBlockSubstitutes a report block for another block while the report is printed.
iTextHeightCalculates the height of the font for the text to print (en millimeters).
iTextWidthCalculates the width (in millimeters) of the text to print, according to the specified font.
iTransparentMagentaModifies the management mode of Magenta color in order for this color to be considered as being transparent (or not) in all the forthcoming prints.
iVLinePrints a vertical line at specified coordinates.
iVPosiVPos is kept for backward compatibility.
iWindowCancelConfigures the display of the window used to cancel the current print...
iXPosUsed to manage the horizontal position (X coordinate) of print cursor in the page.
iYPosUsed to manage the vertical position (Y coordinate) of print cursor in the page.
iZoneHeightCalculates the necessary height of a fixed-width area in order for the entire text using the current font to be printed in this area.
Related Examples:
Printing by programming Unit examples (WINDEV): Printing by programming
[ + ] Operating mode of a print performed by programming (which means without using the report editor)
WD Printout Parameters Sample components (WINDEV): WD Printout Parameters
[ + ] This example is used to illustrate the iParameter function.
This function is used to retrieve the different settings defined for a given printer.

The default printer settings can be modified in Windows directly.
Caution, these settings will be used in all your applications.

Managing the network printers:
To modify the default settings of a printer network, make sure that you have the rights for "Managing printers". Otherwise, the modifications made will be ignored.
Minimum required version
  • Version 9
This page is also available for…
Comments
 // GET AND SET THE PRINTER STANDARD WINDOWS
sCurrentPrinter is string = iInfoPrinter() //Impressora Atual

sDefaultPrinter is string = iInfoPrinter(False) // Impressora Padrao do Painel de Controle

sDriverUsadoImpressoraPadrao is string = iInfoPrinter(False,iDriverName) //"winspool"

sNomeImpressoraPadrao is string = iInfoPrinter(False,iPrinterName) //"LX300"

sPortaImpressoraPadrao is string = iInfoPrinter(False,iDeviceName) //"LPT1:"

sListaTodasImpressorasInstaladas is string = iListPrinter() //LX300 CR HP1200 CR FAX CR CutePDF

//IMPORTANTE:

ok_situacao_01 is boolean = iConfigure("HP1200", False) // Mudar para a HP1200

IF ok_situacao_01 = True

Info("Impressora foi alterada com sucesso no painel de controle")

Info("
Printer has been successfully changed on the control panel")

ELSE
Info(ErrorInfo())
END

// OU

ok_situacao_02 is boolean = iConfigure("HP1200", True) // Mudar para a HP1200

IF ok_situacao_02 = True

Info("Impressora foi alterada com sucesso somente enquanto tiver usando o aplicativo windev")

Info("
Printer has been successfully changed only while you are using the WINDEV application")

ELSE
Info(ErrorInfo())
END

//Meu muito obrigado pela ajuda José Jorge Matos (Portugal).
adrianoboller
Apr. 30 2016
Blog com videos e Exemplos de Relatorios
http://windevdesenvolvimento.blogspot.com.br/2015/09/windev-curso-relatorio-1-configura.html

De matos AMARILDO
Jan. 21 2016