In my application, all printers are listed using printer.printers command. This lists only printer names. Upon selection, it is saved in the Database.
Later on, this printer name is assigned using the AssignFilefunction to a text file.
And printing is done using Rewrite function.
If I save the selected printer as \\PCname\printer name in the database and then use it with Rewrite function then it works.
But if we save only printer name in the database then printing is not happening.
Is it necessary to save \\PCname\printer name path? or Is there any other solution.