Isolved this issue by creating a public variable: PUBLIC _npagetotal _npagetotal = 0 Then, using the ReportListener component to control the reports, analyze the pagetotal property after the report runs. If it returns <> 0, it means there was content in the report and if it returns 0 (zero), there was no content. */ control of printed pages _npagetotal = 0 LOCAL loreportlistener loreportlistener = CREATEOBJECT("ReportListener") loreportlistener.LISTENERTYPE = 0 loreportlistener.QUIETMODE = .T. REPORT FORM pathgeral + '\report\danfe_nfce_2.frx' OBJECT loreportlistener _npagetotal = loreportlistener.pagetotal RELEASE loreportlistener IF _npagetotal<> 0 THEN * PERFORMS AN ENDIF ACTION
🔸 Guys, I created this blog to keep content, research and tips that at some point I needed and it took work to locate. The content is free, you can use it at will, but remember to validate and adapt to your needs. 🔸 Pessoal, criei esse blog para ir guardando conteúdos, pesquisas e dicas que em algum momento precisei e deu trabalho localizar. O conteúdo é gratuito, podem usar a vontade, mas lembre-se de validar e adaptar para a sua necessidade.