I cant print directly from nextcloud

i have installed nextcloud on a vps and installed printer from apps of nextcloud and connected to a printer and when i print files from nextcloud using printer app it shows “landscape: Print succeeded!” but still i didnt get printed the file

What Nextcloud version are you using?
Have you checked the app requirements for the app?
You find the installation instructions and hints how to test the environment here.

i am currently using Nextcloud 19.0.4. i have installed cups , cups-bsd packages but i dont know how to configure default printer to a linux vps. Anyone please show me the steps to configure printer to ubuntu vps