Hii,
I'm developing an application for a hospital. The hospital demands that whenever a new patient is registered, the printer should print out a sticker of 3 inch by 1 inch.
Also, the application should print out a receipt for the payment the patient has made. The receipt page is 5 inch by 7 inch. I really don't know how to format the text content according to the page which is to be printed.
How do I provide the spacing and positioning of the text in the java code according to the printer page?
please help me with the packages to use or interfaces to implement.
any help would be appreciated.