Páginas

segunda-feira, 17 de agosto de 2020

DICAS 3033 - WINDEV TUTORIAL 56 - RELATORIO CLIENTE - Imprimir - PARTE B



https://youtu.be/WzxzOMmLN2Y


Bom Dia/Boa Tarde/Boa Noite

Esse Ao Vivo vai estrear as 19:00 do dia 27/08/2020 

DICAS 3033 - WINDEV TUTORIAL 56 - RELATORIO CLIENTE - Imprimir  - PARTE B
Tutoriel WINDEV : Leçon 4.7.b. Imprimer une liste de clients - Impression de l'état

ASSUNTOS

EXPLICANDO O QUE SERA FEITO
INDO PARA JANELA PRINCIPAL MENU
CRIANDO UM MENU 
ADICIONANDO RELATORIOS E CHAMANDO SUBMENUS
FAZENDO O CODIGO PARA IMPRIMIR
FAZENDO NO MENU , SAIR DO PROGRAMA
COLOCAR TECLA DE ATALHO - ALT F4
REDIMENSIONADO JANELA COM TABELA E TABELA
TESTANDO O RELATORIO 

  iDestination
  iPrintReport
  YesNo
  EndProgram


Video original da Franca

https://youtu.be/grsRTqGDSE4


Playlist Windev TUTORIAL

======================
// lista clientes
// The report is printed in the report viewer
// O relatório é impresso no visualizador de relatórios
iDestination(iViewer)
// Prints the report
// IMPRIMA O RELATORIO
iPrintReport(RPT_relatorio_de_clientes)

======================

// Asks the user whether he wants to exit from the application
// Pergunta ao usuário se ele deseja sair do aplicativo

IF YesNo(No,"SAIR DA APLICACAO")=Yes THEN
EndProgram() 
END
======================












Starting the report print by programming
Our report being completed, we are going to create a menu in our "WIN_Menu" window to print this report directly.
  • To insert a menu into the "WIN_Menu" window:
    1. Display the "WIN_Menu" window in the editor (double-click its name in the "Explorer" pane for example).
    2. On the "Window" pane, in the "Bars and menus" group, expand "Main menu" and select "Add main menu".
    3. A menu is inserted into the window, below the title bar. This menu contains an option named "Menu".
    4. Select the "Menu" option:
      • Open the popup menu (right click).
      • Select "Add after".
    5. In the input area, type "Reports".
      Creating a menu option
    6. Select the "Reports" option:
      • Open the popup menu (right click).
      • Select "Transform to expand a submenu".
    7. In the input area that is displayed, type "List of customers". Press Enter to validate.
      Creating a menu option
  • To type the WLanguage code of the option "List of customers":
    1. Select the "List of customers" option in the editor.
    2. Open the popup menu (right click).
    3. Select "Code". The code editor appears.
    4. Write the following code in the event "Selecting the menu":
      // The report is printed in the report viewer
      iDestination(iViewer)
       
      // Prints the report
      iPrintReport(RPT_List_of_customers)
      Let's study this code:
      • iDestination allows you to configure the print destination. You can print:
        • in a text file,
        • in HTML format,
        • in PCL format,
        • in PDF, RTF, XLS or XML format,
        • on a fax.
        In our case, the report will be printed in the report viewer window.
      • iPrintReport is used to print a report.
  • Test the window and its menu options by clicking Run the element test among the quick access buttons.
  • We are now going to modify this menu by adding an option used to exit from the application.
    1. In the editor, select the "Menu" option.
    2. In the popup menu (right click), select "Transform to expand a submenu".
    3. In the input area that is displayed, type "Exit".
    4. We are going to associate this menu option with the "Alt + F4" shortcut:
      • Select the "Exit" option.
      • In the popup menu (right mouse click), select "Option description".
      • In the "General" tab, in the "Keyboard shortcut" area, select "F4" and check "Alt".
        Choosing a keyboard shortcut
      • Validate.
    5. Display the WLanguage code of the option and write the following WLanguage code in the event "Selecting the menu":
      // Asks the user whether he wants to exit from the application
      IF YesNo(No"Exit from the application?") = Yes THEN
      // End of application
      EndProgram()
      END
      Let's take a look at this WLanguage code:
      • YesNo is used to establish a dialog with the user by asking him a question. The user can give an answer to the question via 2 buttons: yes or no.
      • EndProgram (called if the user clicks "Yes") is used to end the application.
  • Run the window test by clicking test the element among the quick access buttons.

DICAS 2978 - WINDEV TUTORIAL 1 - 1.1B - WINDEV TEMA ESCURO E IDIOMA DO AMBIENTE
DICAS 2979 - WINDEV TUTORIAL 2 - 1.2- CRIAR JANELA E INSERIR TEXTO E EXIBIR
DICAS 2980 - WINDEV TUTORIAL 3 - 2.1- VARIAVEIS PARTE 1
DICAS 2981 - WINDEV TUTORIAL 4 - 2.2- VARIAVEIS ESCOPO - PARTE 2
DICAS 2982 - WINDEV TUTORIAL 5 - 2.1- VARIAVEIS OPERADORES PARTE 3
DICAS 2983 - WINDEV TUTORIAL 6 - 2.1.D - VARIAVEIS STRINGS PARTE 4
DICAS 2984 - WINDEV TUTORIAL 7 - 2.1.E - VARIAVEIS ARRAYS PARTE 5
DICAS 2985 - WINDEV TUTORIAL 8 - 2.2.A - CONDICOES IF-SWITCH PARTE 1
DICAS 2986 - WINDEV TUTORIAL 9 - 2.2.B - CONDICOES PARTE 2
DICAS 2987 - WINDEV TUTORIAL 10 - 2.3.A - LOOP PARTE 1
DICAS 2988 - WINDEV TUTORIAL 11 - 2.3.B - LOOP EXEMPLOS PARTE 2
DICAS 2989 - WINDEV TUTORIAL 12 - Lesson 2.4. The procedures - PARTE 1
DICAS 2990 - WINDEV TUTORIAL 13 - Leçon 2.4.b. Procedures Parametros - PARTE 2
DICAS 2991 - WINDEV TUTORIAL 14 - PROCEDURES REFERENCIA - PARTE 3
DICAS 2992 - WINDEV TUTORIAL 15 - PROCEDURES OPCIONAIS OU OBRIGATORIAS - PARTE 4
DICAS 2993 - WINDEV TUTORIAL 16 - PROCEDURES EXEMPLOS - PARTE 5
DICAS 2994 - WINDEV TUTORIAL 17 - PERGUNTAS E RESPOSTA - PARTE 1
DICAS 2995 - WINDEV TUTORIAL 18 - PERGUNTAS E RESPOSTA - PARTE 2
DICAS 2996 - WINDEV TUTORIAL 19 - WINDEV E OS BANCOS DE DADOS
DICAS 2997 - WINDEV TUTORIAL 20 - PROJETO E ANALISE - CRIACAO
DICAS 2998 - WINDEV TUTORIAL 21 - PROJETO E ANALISE - ARQUIVOS DADOS CLIENTE - PARTE 2
DICAS 2999 - WINDEV TUTORIAL 22 - PROJETO E ANALISE - ARQUIVOS DADOS CRIACAO ARQUIVO PEDIDO - PARTE 3
DICAS 3000 - WINDEV TUTORIAL 23 - PROJETO E ANALISE - IMPORTANDO CVS-ARQUIVO TEXTO - PARTE 4
DICAS 3001 - WINDEV TUTORIAL 24 - PROJETO E ANALISE - IMPORTANDO ARQUIVO PRODUTO - PARTE 5
DICAS 3002 - WINDEV TUTORIAL 25 - PROJETO E ANALISE - LINK - PARTE 6
DICAS 3003 - WINDEV TUTORIAL 26 - RAD COMPLETO
DICAS 3004 - WINDEV TUTORIAL 27 - VISAO GERAL
DICAS 3005 - WINDEV TUTORIAL 28 - Adicionar e Modificar Janelas PRODUTOS - PARTE A
DICAS 3006 - WINDEV TUTORIAL 29 - Adicionar e Modificar Janelas PRODUTOS Formulario - PARTE B
DICAS 3007 - WINDEV TUTORIAL 30 - Adicionar e Modificar Janelas PRODUTOS ALINHAR CAMPOS - PARTE C






Nenhum comentário:

Postar um comentário