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 una aplicación o un sitio web / Controles, ventanas y páginas / Controles: tipos disponibles / Control Procesador de texto
  • Overview of the Word Processing control
  • Creating a Word Processing control
  • Characteristics of Word Processing control
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 of the Word Processing control
The Word processing control is an advanced control that allows the end user to create and edit documents in docx format directly on a WINDEV application. The benefits are immediate: time-saving, consistent interface, no additional software to install/drive/manage..
This control allows you to:
  • Open, create, modify and save "docx" files,
  • Convert docx files to PDF or to HTML to send emails,
  • Manage images and tables,
  • Manage text areas,
  • Save documents in HFSQL databases,
  • Use a spelling checker,
  • Print documents, etc.
This control features a menu that includes the most common actions. This menu can be displayed:
Several keyboard shortcuts are also available:
ShortcutEffectShortcutEffect
Ctrl + ASelects the entire text. Ctrl + CCopies the selection to the clipboard.
Ctrl + FStarts the search.Ctrl + BMakes the selection bold
Ctrl + HStarts find/replaceCtrl + IItalicizes the selection
Ctrl + S Saves the documentCtrl + USwitches the selection to underlined
Ctrl + VPastes the content of the clipboard. Ctrl + XCust the selection and places it in the clipboard.
Ctrl + YRedoes the last action. Ctrl + ZUndoes the last action.
Ctrl + mouse wheelChanges the zoom.Ctrl + 0Sets zoom at 100%
Ctrl + homeMoves to the beginning of the document.Ctrl + EndMoves to the end of the document.
Page UpDisplays the previous page.Page DownDisplays the next page.
Creating a Word Processing control
To create a Word Processing control:
  1. On the "Creación" tab, in the "Controles gráficos" group, expand "Ofimática" and click "Word processing".
  2. Click at the desired location to create the control.
Observación: Las dimensiones del control que se creó se optimizan para ocupar el espacio disponible en la ubicación indicada. Si el tamaño del control no es el indicado, pulse Ctrl+Z: el control volverá al tamaño predeterminado.
To view the characteristics of the control, select "Description" in the context menu.
Characteristics of Word Processing control
The "General" tab in the description window of the Word Processing control proposes the following options:
  • Documento inicial: Indicates the initial document displayed in the Word Processing control.
  • Edit options:
    • Toolbar management: you can choose whether or not to display a Word Processing control toolbar.. The available options are as follows:
      • None: The field will not display any toolbars..
      • Ribbon: Field manipulation options are grouped together in a ribbon..
      • Mini toolbar: Field manipulation options will be grouped together in a mini toolbar..
    • Ribbon source FI / Mini toolbar source FI: In the case of a ribbon or mini toolbar, this parameter specifies whether the display should be customized or not.. The available options are as follows:
      • "None": the default ribbon (or mini toolbar) will be used..
      • "Predefined window": the default ribbon (or mini toolbar) can be customized..
        To do so, select "Customize". In this case, an internal window is automatically added to your project, in the WDAAF internal component. This internal window can be modified as required. This window contains all the code required to manage the Word Processing control. It is recommended to check for UI errors and make sure the window works properly after any change is made.
        If you use the ribbon , the "IW_WINDEVAAF_WPRibbon" window is added.
        If you use the mini toolbar, the "IW_WINDEVAAF_WPBar" window is added.
      • Internal project window: If your project contains internal windows, you can use one of these windows to propose a specific ribbon or mini toolbar..
        Any internal window of your project can be used to create this bar.
    You can also apply the project skin template.
  • Permitir cambiar de documento (Abrir, Nuevo, etc.): adapts ribbon to allow user to manipulate external documents. This option is used to display the "New", "Open" and "Save" buttons of ribbon. If this option is checked, the document opening and backup must be performed by the application.
    Note: This option is not taken into account if the ribbon is fully customized (with an internal application window, for example)..
  • Limitar la edición para simplificar la exportación HTML: adapts ribbon and document display to show only options taken into account by HTML export. If this option is checked:
    • the following options are not available:
      • Management of headers and footers,
      • Management of page layout,
      • Management of page breaks.
    • the document is forced to be displayed in "Display for the Web" mode.
  • Other settings:
    • Activar [Revisar ortografía] de forma predeterminada: Indicate whether the spelling checker should be activated.. For more details, see Check spelling based on Hunspell dictionaries.
    • Detectar y definir el formato de los enlaces automáticamente: Enables automatic detection of links (http type) present in the document displayed in the field. In this case, links are detected during input, after pressing Space, Tab or Enter. If these links are valid, they can be opened with Ctrl + Click.
      Note: This option is checked by default.
Versión mínima requerida
  • Versión 22
Comentarios
The Word Processing Control (WPC)
Bisher fehlten Infos, wie das Worddokument, das in der WPC steht, in die Datenbank kommt. Nach längerem Versuchen habe ich herausgefunden, dass das Memofeld (in das das Worddokument abgelegt werden soll) in der Datenbankbeschreibung vom Typ BINARY sein muss - also kein TextMemo sondern ein BinaryMemo. Dann geht es wie gewohnt durch einfache Zuweisung:
Datenbankfeld = WordProcessingControl-Name
Dann HADD oder HMODIFY usw. usw.

Up until now, there was no information about how the Word document in the WPC gets into the database. After a long time of trying, I found out that the memo field (in which the Word document is to be stored) in the database description has to be of type BINARY - so not a TextMemo but a BinaryMemo. Then it works as usual with a simple assignment:
Database field = WordProcessingControl name
Then HADD or HMODIFY etc. etc.
Gerhard
21 02 2025
Video Word
https://youtu.be/0vd8qLaSWSA
amarildo
21 07 2018

Última modificación: 21/09/2024

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