AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / Desarrollar para Linux
  • Overview
  • Required configuration
  • How to directly open the PDF generated during a print job?
  • Printing reports to PDF in Linux
  • Limitations: report fields supported in Linux
  • Printing in WLanguage in Linux
  • Step 1: Configuring the print parameters
  • Step 2: Creating print fonts
  • Step 3: Printing characters and images
  • Step 4: Start printing
  • List of print functions available in Linux
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Overview
WEBDEV and WINDEV allow you to print to PDF in Linux using WLanguage functions. It is possible to:
  • print to PDF in WLanguage.
  • print reports as PDF documents using the report viewer.
Print jobs with WLanguage functions are just like standard print jobs.
This help page presents the limitations that come with printing in Linux.

Required configuration

To use the print features in WEBDEV Linux, you must install:
  • the QT library (Core and GUI), version 5 or later.
    In Ubuntu, the QT library can be installed with the following commands:
    sudo apt-get install libqtcore5
    sudo apt-get install libqtgui5
  • the LibFreeType.so library (32 or 64-bit), version 6 or later.
    Attention: PC SOFT framework seeks libfreetype.so library. If only the libfreetype.so.6 file exists, you must create a symbolic link via the following command:
    ln -s /usr/lib/libfreetype.so.6 /usr/lib/libfreetype.so
Note: It's possible to install Microsoft fonts under Linux, to obtain states more faithful to their preview under Windows.. Under Ubuntu, these fonts can be added by following the procedure below: http://doc.ubuntu-fr.org/msttcorefonts.
Remark: The following Linux distributions are supported:
  • Debian 5.02
  • Ubuntu 10.04

How to directly open the PDF generated during a print job?

To directly open the PDF document created for the print job, use the following commands:
xdg-open url
or
gnome-open url
Printing reports to PDF in Linux
The different steps for printing reports in Linux are as follows:
  • Step 1: Print destination configuration.
    This configuration is defined with iDestination. Only PDF printing is available in Linux. iDestination must be used with the PDF file generation constants (iPDF or iGenericPDF).
  • Step 2: Start printing.
    The report is printed by iPrintReport.

Limitations: report fields supported in Linux

The following controls are supported in a report printed in Linux:
  • Static Text control (RTF is not supported).
  • Calculated control.
  • Image control.
  • Preset control.
  • Shape control.
  • Internal Report control.
  • Link control.
  • Edit control.
  • Bar Code control.
  • Chart control.
  • Check Box control.
  • Organizer control.
  • Scheduler control.
  • Spreadsheet control.
The following controls are not supported:
  • RTF Static Text control.
  • Pivot Table control.
  • Gantt Chart control.
  • Signature control.
  • HTML Static control.
Printing in WLanguage in Linux
The steps for printing in WLanguage as are follows:

Step 1: Configuring the print parameters

This step is used to choose the print parameters for the document (quality, orientation).
This step is optional.
The different operations are as follows:
  1. Selecting the parameters for printing the document (iParameter). When printing in Linux, you have the ability to only configure the format of the page or its orientation.
  2. Re-defining the print margins (iMargin). The top, bottom, left and right margins can be modified. If this function is not called, the default margins (differ according to the selected printer) will be used.
Caution: The sequence of operations described above must be followed.. If a print is in progress, iParameter cancels the current print.

Step 2: Creating print fonts

This step allows you to define and choose the different fonts that will be used in the printed document.
It is only possible to choose specific fonts for printing: these fonts can only be used when printing with WLanguage functions.
This step is optional.
The default font is used if no font is specified for the print job.
  • Font: Don't care
  • Font 0,
  • size: 12 pica points,
  • normal style.
  • color: black
The print fonts are created by iCreateFont.
Remarks:
  • Only the TrueType fonts (*.ttf) can be used in Linux.
  • If fonts other than basic fonts must be used, they must be installed on the WEBDEV server (by using the directories of the distribution used). For more details, see the documentation of the distribution used.

Step 3: Printing characters and images

This step consists in "sending the different elements to print to the printer":
  • text,
  • images,
  • drawings, ...
The PDF print job (configured with iDestination) will only be started when iEndPrinting is called.
Several WLanguage functions allow you to print text, images, etc. For more details, see the list of print functions that can be used in Linux.
Note: Printing images: In Linux, images in JPEG, BMP, PNG and GIF formats can be printed.

Step 4: Start printing

This step consists in starting the print job (iEndPrinting).
List of print functions available in Linux
The following print functions are available in Linux:
función iResetReinicia los ajustes de impresión (márgenes, fuente, formato de papel, orientación, ...) almacenados en la biblioteca de impresión.
iAreaHeightCalculates the height of a fixed-width area required to print the entire text that uses the current font.
iBorderPrints a border at specified coordinates.
iChangeSubReportSourceModifies through programming the report associated with a sub-report in a composite report.
iCloseReportStops printing the current report immediately.
iColumnEndFuerza un salto de columna en un informe de varias columnas.
iColumnNumReturns the number of the current column in a multi-column report.
iConfigureReportConfigures the printer by opening the configuration window (WINDEV and WINDEV Mobile).
iCreateFontCreates a new print font.
iCurrentFileDevuelve el nombre del archivo generado actualmente.
iDestinationConfigura el destino de impresión.
iDidotFontSelects the unit to be used for font height (created with function iCreateFont): DIDOT point or PICA point.
iDocumentCanceledPermite saber si la impresión actual ha sido cancelada por el usuario.
iDocumentPrintedDetermines whether the user printed the document from the report viewer.
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.
iEscapeEnvía un comando ESCAPE o un comando de datos a una impresora.
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.
iGroupPrintInicia la impresión de un informe que se encuentra en un grupo de informes.
iHLineImprime una línea horizontal en las coordenadas especificadas.
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 subreport of a composite report.
iLastFileDevuelve:
  • el nombre completo del último archivo generado durante la impresión (PDF, RTF, Text, ...).
  • la lista de archivos duplicados creados.
iLineImprime una Line en las coordenadas especificadas.
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).
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.
iNewLineImprime una Line (en el estándar de Windows, con un extremo redondeado) en las coordenadas especificadas.
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.
iPageWidthCalcula la anchura (en milímetros) de la página imprimible teniendo en cuenta los márgenes izquierdo o derecho.
iParameterRetrieves the printer configuration and configures the print.
iParameterPDFDefine las opciones para el archivo PDF generado.
iParameterReportConfigures the printer by opening the configuration window.
iPicaToMMConverts the coordinates of a point (expressed in system coordinates) into millimeters.
iPrintSends the character string passed as parameter to the print buffer.
iPrintAreaImprime un texto en un área rectangular.
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.
iPrintImageSends the image file to print to the print buffer.
iPrintingNationModifies the current language for the next print (programmed print or report print).
iPrintReportPrints a report created with the report editor.
iPrintWordSends the character string passed in parameter to the print buffer.
iReportPrintingStatusReturns the status of the current print.
iResetNbPagesReinicializa el número actual de páginas, utilizado en los controles predefinidos como "Número de páginas" y "Número de páginas y número de páginas".
iRoundBorderPrints a border with rounded outlines at specified coordinates.
iSelectFontCreates a new print font from the standard Windows font selection window...
iSequencingAddAdds a report into a sequence of report prints.
iSequencingPrintImprime una secuencia de reportes.
iSkipLineForces one or more line break.
iSkipPageForces a page skip: the corresponding code is sent to the printer spooler.
iSubstBlockSubstitutes one block of the report with another block while the report is printed.
iTextHeightCalculates the height of the font for the text to print (in millimeters).
iTextWidthCalculates the width (in millimeters) of the text to print, according to the specified font.
iVLineImprime una Line vertical en unas coordenadas determinadas.
iWindowCancelConfigura la ventana de impresión de Cancel..
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.
Note: iImprimexxx functions only work with newer Linux distributions..
Versión mínima requerida
  • Versión 10
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 30/09/2024

Señalar un error o enviar una sugerencia | Ayuda local