terça-feira, 19 de janeiro de 2021

DICAS 3248 - WEBDEV - PERGUNTAS E RESPOSTAS 10 - RELATORIO - Como saber se um relatório foi impresso?



https://youtu.be/9Lwp6Vyoiac



Bom Dia Boa Tarde Boa Noite

Seja Membro do Canal

Esse Video Ao Vivo vai estrear as 19:00 do dia 22/01/2021 

DICAS 3248 - WEBDEV - PERGUNTAS E RESPOSTAS 10 - RELATORIO - Como saber se um relatório foi impresso?


ASSUNTOS


How to find out whether a report was printed?
Como saber se um relatório foi impresso?
Vamos criar uma janela para imprimir um relatorio 
vamos criar um botao para imprimir relatorio 
vamos usar wizard para chamar iprintreport
vamos verificar se foi impresso o relatorio 
vamos verificar se o relatorio foi cancelado durante a impressao


----

// 
iPreview(i100, "", True)
iPrintReport(RPT_Liste_empresa_v26)
IF iDocumentPrinted()=True THEN
Info("O Relatorio foi Impresso")
END
IF iDocumentCanceled()=True THEN
Info("A impressao atual foi cancelado")
END


=============== INDICE PERGUNTAS E RESPOSTA



=============== INDICE CURSO DE RELATORIOS

Blog - WinDev - Relatorio - 001/... Configura e Filtro
Blog - WinDev - Relatorio - 002/... IParameterReport
Blog - WinDev - Relatório - 003/... Marca D´Agua
Blog - WinDev - Relatorio - 004/... Layout 
Blog - WinDev - Relatorio - 005/... Campo Vertical - Angle 
Blog - WinDev - Relatorio - 006/... Como fazer quando sai duas paginas? 
Blog - WinDev - Relatorio - 007/... Imprimir Linha Multi Line
Blog - WinDev - Relatorio - 008/... Relatorio Valor Zero deixar Branco
Blog - WinDev - Relatorio - 009/... Relatorio Alinhar Texto 
Blog - WinDev - Relatorio - 010/... Colocar Totalizador
Blog - WinDev - Relatorio - 011/... Imprime Somente os Selecionados ou Todos da Tabela 
Blog - WinDev - Relatorio - 012/... Break e totalizadores de valores
Blog - WinDev - Relatorio - 013/... Retorno de Relatorio - Result 
Blog - WinDev - Relatorio - 014/... Zerar Totalizador  
Blog - WinDev - Relatorio - 015/... Relatorio - Totalmente Manual
Blog - WinDev - Relatorio - 016/... Linha Zebrada
Blog - WinDev - Relatorio - 017/... Posicoes do Relatorio Alterar
Blog - WinDev - Relatorio - 018/... Alterar Fonte
Blog - WinDev - Relatorio - 019/... Linha Acrescentar
Blog - WinDev - Relatorio - 020/... Relatorio - Gerar Pdf
Blog - WinDev - Relatorio - 021/... Filtro
Blog - WinDev - Relatorio - 022/... Pagina Inicial/Final - Data Hora
Blog - WinDev - Relatorio - 023/... Pular Página Break - IpageEnd()
Blog - WinDev - Relatorio - 024/... Imprimir Tabela com TablePrint
Blog - WinDev - Relatorio - 025/... Relatorio Mudar Orientação
Blog - WinDev - Relatorio - 026/... Mostrar impressoras/Selecionar e Imprimir
Blog - WinDev - Relatorio - 027/... IDestination - Destino do Relatorio
Blog - WinDev - Relatorio - 028/... Iprint - Relatorio Manual
Blog - WinDev - Relatorio - 029/... Dica Tabela e print
Blog - WinDev - Relatorio - 030/... Totalizadores
Blog - WinDev - Relatorio - 031/... Caption Mudar
Blog - WinDev - Relatorio - 032/... Intervalo Bancos
Blog - WinDev - Relatorio - 033/... Manual Linha - IHLine
Blog - WinDev - Relatorio - 034/... Borda - Iborder
Blog - WinDev - Relatorio - 035/... IPageNum
Blog - WinDev - Relatorio - 036/... Numero Com Espaco
Blog - WinDev - Relatorio - 037/... Fonte Seleciona - ISelectFont -
Blog - WinDev - Relatorio - 038/... Linha Mais de 2 - Mais informacoes no Campo
Blog - WinDev - Relatorio - 039/... Copias - IParameter - Icopies
Blog - WinDev - Relatorio - 040/... Pdf - Ler e Extrair Texto
Blog - WinDev - Relatorio - 041/... Imprimir Numero 000.001.500
Blog - WinDev - Relatorio - 042/... IListPrinter - Mostra Impressoras e Lista
Relatorio Inventario com Query - Relatorio 043/...
Relatorio - Sem Template - Dica Pedrosão - Relatorio - 044
Titulo Cabecalho - Alterar - WinDev - Relatorio - 045
Totais - Colocar Totais Abaixo ultima Linha Detalhe - WinDev - Relatorio - 046
Relatorio String Angulo 90% - WinDev - Relatorio - 047/...
Links Pagina e Email no Relatorio - WinDev - Relatorio - 048
PREVIEW TRADUZIR - WINDEV - RELATORIO - 049 - AULA 1211
TABELA E RELATORIO - COMO FAZER - RELATORIO 050 - AULA 1223
MANUAL - RELATORIO TOTALMENTE MANUAL - WINDEV RELATORIO 051 - AULA 1224
MEMORIA RELATORIO - AULA 1257 relatorio 052 tabela memoria
TOTAL BREAK - DICAS 1711 - PUBLICA - WINDEV RELATORIO 053 
GERAR PDF - DICAS 1889 - PUBLICA - WINDEV_23 - RELATORIO 54 - 
DICA 2150 - HANGOUT AO VIVO 10 06 2019 AS 19:00 - MOSTRAR CONSULTORIA COm joao sobre relatorios de como criar
DICAS 2151 WINDEV WEBDEV MOBILE RELATORIOS 59 CONSULTORIA JOAO 08062019
DICAS 2152 WINDEV WEBDEV MOBILE RELATORIOS 60 TOTAL RELATORIO
DICAS 2193 WINDEV WEBDEV MOBILE RELATORIO 61 IPREVIEW iMiniPreview
DICAS 2597 - WINDEV WEBDEV MOBILE - Relatorio 62 - Como eu Fiz Danf no Windev.
AO VIVO FACEBOOK - 2882 20:00 - 06/05/2020 - RELATORIOS COM TABELAS WINDEV
2885 RELATORIO SQL WINDEV TRASMITIDO FACEBOOK ERPAMARILDO
DICA 2912 PREVIEW PORTUGUES WINDEV




PlayList WebDev tutorial Amarildo Webdev
Playlist Windev Tutorial Amarildo Windev
PlayList Windev Mobile 
Amarildo
Donwloads Windev
Windev
WxSolucoes
Matos Informatica
Repositorio Windev
Inscricao Evento Pcsof
Site forum Google 
Video sobre 3 Mil Videos Windev 
Video sobre Alfaserver servidor 











Como saber se um relatório foi impresso?

Problemáticos

Ao imprimir um relatório, é bastante comum direcionar a impressão para uma visualização.
Em alguns casos, um documento em papel deve ser impresso fisicamente.
Como saber programando se o documento foi impresso ou não?

Soluções

Várias funções estão disponíveis:
  • iDocumentPrinted é usado para descobrir se o relatório foi impresso na visualização.
  • iDocumentCanceled é usado para descobrir se o usuário:
    • fechou a visualização da impressão antes do final das impressões,
    • clicou no botão Cancelar na janela de impressão atual.
iDocumentCanceled (Function)
In french: iImpressionAbandonnée
Used to find out whether the current print was canceled by the user.
Remark: If the user cancels a current print, the print functions have no effect until the next call to iEndPrinting. However, the WLanguage code continues to run.
IF iDocumentCanceled() = True THEN
        Info("The current print was canceled")
END
Syntax
<Result> = iDocumentCanceled()
<Result>: Boolean
True if the user:
  • closed the report viewer before printing was completed,
  • clicked the Cancel button in the current print window.
iDocumentPrinted (Function)
In french: iImpressionDemandée
Allows you to find out whether the user has requested to print the document from the report viewer.
Example
iDestination(iViewer)
iPrint("Text")
iEndPrinting()
IF iDocumentPrinted() = True THEN
Info("You have requested to print the document")
END
Syntax
<Result> = iDocumentPrinted()
<Result>: Boolean
  • True if the user has requested to print the document from the report viewer,
  • False otherwise.

Caution: This function cannot be used to find out whether the print was successfully performed. If the printer has a physical problem, the function always returns the same result. 

Teste

Teste
teste