PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → Suppress report printing message
Suppress report printing message
Débuté par Andy Marshman, 02 nov. 2019 20:53 - 2 réponses
Membre enregistré
2 messages
Posté le 02 novembre 2019 - 20:53
Hello,

I have the following code that produces a batch of PDFs from a report. When printing the PDFs is it possible to suppress the printing message?

The code below is run when cycling through another queries results.

// Create the directory if it does not already exists
IF fMakeDir(sOutputPath) = True THEN
sPdfFilename = sOutputPath + NumToString(QRY_DistinctNoteKeyNumb.KeyNumb)
iDestination(iGenericPDF, sPdfFilename)
iInitReportQuery(RPT_Notes, QRY_SelectedNoteObjects.Code, QRY_DistinctNoteKeyNumb.KeyNumb)
iPrintReport(RPT_Notes)
END IF


--
Regards

Andy
Posté le 09 novembre 2019 - 13:32
Hi Andy,

If you mean the cancel window that pops up when printing a report then this can be disabled using the iWindowCancel function.

Hope this helps :)

Kindest Regards,

Lee Shroder
Membre enregistré
2 messages
Posté le 11 novembre 2019 - 18:57
Hi Lee,

That's just what I needed. Thank you.

--
Regards

Andy