How client can print report from viewer to local printer ? [message #256070] |
Mon, 24 September 2007 16:27 |
Eclipse User |
|
|
|
Originally posted by: mehrdad_mk.hotmail.com
How client can print report from viewer to local printer ?
using viewer with 'frameset?' can not detect my client printer and when
i'm using with 'run?' ( than generate HTML report) only blank frame will
be printed by explorer .i just want to print report context.
i also try to print by print() function of javascript.but result was the
same.
my script language is php and source that generate report is as following:
<?php
$fname = "c:/temp/rep1.rptdesign";
$dest = "http://localhost:8080/Viewer/run?__report=";
$dest .= urlencode( realpath( $fname ) );
?>
<script language="javascript">
function Do_Print(target)
{
traget.focus();
traget.print();
}
</script>
<body>
<iframe name="I1" id="I1" src="<?=$dest;?>" width="100%"
height="100%"></iframe>
<input type="button" name="button" id="button" value="Print"
onclick="Do_Print(I1);" />
</body>
|
|
|
Powered by
FUDForum. Page generated in 0.03860 seconds