This topic is locked

print the selected row directly in the list view

11/12/2022 5:37:34 AM
PHPRunner General questions
ruzgarajans author

Hello,
I want to print the selected row directly in the list view.
Could you please help me with the required button?
I wonder if a button can open windows print window after adding record
thank you to everyone who helped
(first the viewing page opens, then it is necessary to create a pdf and then download the pdf file to the computer. this work process is not suitable for barcode tag. too long)

fhumanes 11/12/2022

Hello,

The solution that I propose is much more complex, but it will give you all the possibilities you require, including the generation of bar codes.

https://fhumanes.com/blog/impresos/informes-con-jasper-php/

You can check that it is very fast and allows you to adjust the printing objects to the size of the sheet.

Cheers,
fernando

ruzgarajans author 11/12/2022

hi,
I am not a professional coder. I am sorry. i need a little simpler tutorial

img alt

I want a button to open pdf in the shortest way. this is true. your example is correct.
but i couldn't do it . regards teacher. ( my english may be bad i'm sorry)

I downloaded your samples.
I had user password authorization issues
( Fatal error: Uncaught PDOException: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) in D:\sunucu\wamp64\www\faturasablonu\jasperPHP_20211007\quilhasoft\jasperphp\src\ado\TConnection.php on line 58
( ! ) PDOException: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) in D:\sunucu\wamp64\www\faturasablonu\jasperPHP_20211007\quilhasoft\jasperphp\src\ado\TConnection.php on line 58)

ruzgarajans author 11/13/2022

I found this code in the tutorial library.

  1. it does not show the CODE128 barcode in the pdf document created on the printer page (I purchased the plugin) but I can see the barcode lines in the list and view page.
  2. this code is good but is it possible to show a printer dialog as well

var params = {
pageType: 'print',
keys: row.getKeys()
};
Runner.PDF.open( params, pageObj );
return false;

img alt

img alt
No view barcod ( CODE128) :(