cancel
Showing results for 
Search instead for 
Did you mean: 

Printing iGrid data

Former Member
0 Kudos

hi

i am facing the problem of printing iGrid value.

if the Grid has no scroll bar than i can easily print the value.

But Grid has scroll bar i can't print entire data.

Is there any way to solve this problem.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi John,

I guess you are using right click -> Print option on Applet.

That won't give the complete set of data in a page.

For actually printing the entire data, you can use a .irpt page(which can be invoked on click of a button adjacent to applet) with a xMII servlet call. The servlet will return you data and you can apply any predefined xsl to render it appropriate format.

Thanks,

Ravi Kumar.

Former Member
0 Kudos

Hi Ravi

Can you explain little more about generating irpt page in xMII.

Thanks for your reply.

Regards

John

Former Member
0 Kudos

Hi John,

Please go through help documentation for understanding What IRPT is and how it functions...!

On the irpt page you can declare an xMII servlet like this sort.

<SERVLET NAME="Illuminator">

<PARAM NAME="QueryTemplate" VALUE="<QueryName>">

<PARAM NAME="Content-Type" VALUE="text/xml">

<PARAM NAME="Stylesheet" VALUE="http://localhost/Illuminator/StyleSheets/Samples/DataWithPageBreaks.xsl">

<PARAM NAME="Param.1" VALUE=""> <PARAM NAME="Param.2" VALUE=""> </SERVLET> You can even change the Stylesheet by customizing the xsl located on xMII Server and giving its path above. The parameters , are parameters(Param.1,Param.2) for query above.

The best thing in irpt is that the above parameters can be initialized on page load directly by sending them through url.So ur url will include &StartDate=<someval>&EndDate=<someval>

Regards,

Ravi Kumar.

agentry_src
Active Contributor
0 Kudos

You could also display the data in a pdf document and then print that. Or email it or save it to a folder...

Or right click and open the data as a csv. It will generally present the document in an Excel format (depending on your settings) and that is easily printed.

Lots of options to choose from.

Mike

Edited by: Michael Appleby on Jun 4, 2008 7:40 PM

0 Kudos

Hi Mike,

I like that option with PDF!

But now I have the problem to get that pdf on a html. I can save the pdf file to a location but it was nice if I can get the pdf as a result in html after a action with a button.

Regards

Arno

Former Member
0 Kudos

Hi,

You can use Window.open("PDF path") which will open the pdf file in a Browser. Then you can print it . You could place this code in a button.

Regards

Maha