both are made in exactly the same way, the only difference is: in ricotta, the curds are strained in a muslin cloth for about 10 minutes. with paneer, the curds are also strained in a muslin cloth, then bundled up in the cloth and then squeezed out.