In every page, I want to display Date of print. I have used new Date()
, but it is showing system time of server. I want to display current system time (client).
How can print this in JR report?
In every page, I want to display Date of print. I have used new Date()
, but it is showing system time of server. I want to display current system time (client).
How can print this in JR report?
Don't use an applet, you can use a little JavaScript.
See this question: Auto insert date and time in form input field?
For example:
<form action="generate_report" method="post">
<input id="report_date" name="report_date" />
</form>
<script type="text/javascript">
document.getElementById('report_date').value = Date();
</script>
Pass the value of report_date
into the report's parameter list.