on ‎2006 Dec 22 6:49 AM
Hi all,
I have some information on a grid (with a scroll- down) that I would like to print. Now when I right-click on the grid & Print, it prints only the portion of the grid(rows) that are currently visible on the screen leaving out the rows that are not visible(even though they are part of the grid/report)!!!!
The other option I see here is to export it as a csv and then do a print.
Is there any better way to print reports in xMII? Any ideas appreciated. Thanks....
Request clarification before answering.
Hi Srini,
You could consider calling an irpt page in a new window. The irpt page would contain the same layout but instead of using applet tags to generate iGrids, you could use Servlet tags to generate the data in html format. Add a window.print() call to the body onload event to auto print the page.
The Help Documentation section entitled "Report Generation" describes how the reporting subsystem works, and how it can be used to generate reports, format them for display or printing, and how to pass parameters to them.
Diana Hoppe
SAP xMII Support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Srini,
A shortcut would be to display the Grid results on a page and print. We'll be using the xMII illuminator service to get the query results in HTML Format.
http://<server>:<port>/Lighthammer/Illuminator?QueryTemplate=<path to query template>/PlasticBottleBatchQT&Content-type=text/html&IllumLoginName=<your username>&IllumLoginPassword=<your password>
and then maybe use the following piece of code ?
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Test Page !</title>
<script language = "javascript">
function printIT(){
var myURL = "http://<server>:<port>/Lighthammer/Illuminator?QueryTemplate=<path to query template>/PlasticBottleBatchQT&Content-type=text/html&IllumLoginName=<your username>&IllumLoginPassword=<your password>";
var windowReference = window.open(myURL,'windowName','width=600,height=400');
windowReference.print();
}
</script>
</head>
<body>
<p>
<input type="button" value="Button" name="B3" onclick="javascript:printIT()"></p>
</p>
<p> </p>
</body>
</html>If you change the extension of your file to .irpt then you will not possibly need to pass the login parameters in the URL.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.