Is there anyway to do a screen print even if the page contains multiple forms and foundsets?
I can’t give you details but servoy-plugins.de has a print screen plugin as far I know.
I just need something that will capture the current screenshot of my servoy forms and send it directly to the printer. I know there’s has to be a way to do this within servoy via javascript.
You can use currentcontroller.print(); Make sure that the “printable”-property of all tabpanels is checked.
Thanks, the problem I was having was with the tabs not printing. By enabling the printable setting on the tabs the following code works for me in landscape.
function PrintScreen()
{
currentcontroller.setPageFormat(240, 300, 20, 0, 0, 0, 0, 0);
currentcontroller.print(true,false);
}
However, I run into another problem. How do you refresh the screen after a print. My tab goes gray and blank. I have to click onto another form and back to refresh.
Thanks for all your help.
That doesn’t sound right, does it make difference if you put:```
application.updateUI();
Already tried application.updateUI(); with no success. Is there not a way in the smart client to do something like “window.print()”. This would simply print the current screen shot. In smart client (currentcontroller.print()) I run into issues with the right tabs being printed even though they are selected.
This post is similar to the issue I am having:
Any help on a print screen would be appreciated.
Please create a case about this in the support system.