Skip to main content



      Home
Home » Archived » BIRT » How client can print report from viewer to local printer ?
How client can print report from viewer to local printer ? [message #256070] Mon, 24 September 2007 16:27
Eclipse UserFriend
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>
Previous Topic:Finding out report format type
Next Topic:Build Birt ReportEngine
Goto Forum:
  


Current Time: Fri May 09 16:58:50 EDT 2025

Powered by FUDForum. Page generated in 0.03860 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top