How to Print just First Page of the REPORT?

Hi !

There is a regular REPORT that is immediately sent to the printer for printing.
Can I print only the first page (abort printing after printing the first page) ?

Thanks ! :grinning:

The Report has a Preview Queue with the WMF page file names. You could try deleting all but the 1st record from that Queue.

If that does not work you could also try to REMOVE() the WMF files when you delete from the Queue.

AFAIK even though you remove the WMF from the QUEUE the RTL keeps its own shadow list and still deletes them all the from Temp folder.

The other way I recall doing this is to define another Report then building its Preview Queue as Copies of WMF files from the Original Report. I know that is how you merge 2 reports.


For anyone using a lot of Clarion Reports I suggest regularly running a Temp folder clean up on end user machines as there can be orphan WMF’s due to crashes or the user shutting down the program. On old systems when I implement this I typically find 1000’s of files.

Yep. When the report is closed.

Have you tried PropPrint:FromPage and PropPrint:ToPage?

You could possibly combine these with a filter so the report terminates when it reaches the end of the first page if it is a large report and you don’t need the extra 100 pages to be generated.

Thanks ! This is a new opportunity for me. :sunglasses:

My Clarion app creates all reports as pdf documents. There is a command line to print just page 1 but I haven’t tried it.

msedge --headless --print-to-pdf-no-header --print-to-pdf=“output.pdf” “input.pdf” --print-to-pdf-page=1