Insert a button into View page in Visual Editor and name it 'Print'. Add the following code to ClientBefore event and make sure other button events do not contain any code.
Replace "categories" with the actual table name.
var url = new URL(location.href);
location.href="categories_print.php?selection[]="+url.searchParams.get("editid1");
ASPRunner.NET version
var url = new URL(location.href);
location.href="categories/print?selection[]="+url.searchParams.get("editid1");
Classic ASP version
var url = new URL(location.href);
location.href="categories_print.asp?selection[]="+url.searchParams.get("editid1");