Page 1 of 1

I want to directly print the report from the Java backend service, without previewing or confirmation of printing

Posted: Wed Dec 24, 2025 6:43 am
by 562756104@qq.com
I want to directly print the report from the Java backend service, without previewing or confirmation of printing。

The Java report printing function you currently provide is based on Java Swing forms. Is there any sample code that allows the Spring Boot backend to directly call the printer to print the report content without requiring a preview or a print confirmation interface

Re: I want to directly print the report from the Java backend service, without previewing or confirmation of printing

Posted: Tue Dec 30, 2025 9:07 am
by Vadim
Hello

Directly call the printer from Swing is the only way.
Also you can export the report to PDF, image, etc and print it with external tools.