tag:blogger.com,1999:blog-15319370.post7445810499566340078..comments2024-03-05T11:16:00.846+01:00Comments on Roland Bouman's blog: Back to blogging....rpboumanhttp://www.blogger.com/profile/13365137747952711328noreply@blogger.comBlogger10125tag:blogger.com,1999:blog-15319370.post-84937328330864803992011-07-08T12:45:12.439+02:002011-07-08T12:45:12.439+02:00Hi swathi, please post questions like this on a ge...Hi swathi, please post questions like this on a general forum.rpboumanhttps://www.blogger.com/profile/13365137747952711328noreply@blogger.comtag:blogger.com,1999:blog-15319370.post-73938205031229697732011-07-08T12:42:23.752+02:002011-07-08T12:42:23.752+02:00Hi,
I want to generate report using struts2.0,jsp
...Hi,<br />I want to generate report using struts2.0,jsp<br />it is generating but when i want to generate report in client side the preview is not generated in client side its generating in my system(i.e, Server)<br />how to generate report in client side...<br />and my code for generating report is......<br />ClassicEngineBoot.getInstance().start();<br />ResourceManager manager = new ResourceManager();<br />manager.registerDefaults();<br />URLConnection uc;<br />URL url = null;<br />String s = request.getContextPath();<br />final String path = System.getProperty("catalina.home") + "/webapps" + s + "/reports/"+"job_card.prpt" ;<br />url = new URL("http://localhost:8080/"+s+"/reports/job_card.prpt");<br />// url = new URL(pathimage);<br />try {<br />uc = url.openConnection();<br />} catch (IOException e) {<br />e.printStackTrace();<br />}<br />org.pentaho.reporting.libraries.resourceloader.Resource res = manager.createDirectly(url, MasterReport.class);<br /><br />System.out.println("before pdf report creation");<br />try {<br />HtmlReportUtil.createDirectoryHTML((MasterReport) ((org.pentaho.reporting.libraries.resourceloader.Resource) res).getResource(), "http://localhost:8080/LvhtGre1/reports/reportgre.pdf");<br />} catch (ReportProcessingException e) {<br />log.setError(e, "Print Preview in GRE");<br />e.printStackTrace();<br />} catch (IOException e) {<br />log.setError(e, "Print Preview in GRE");<br />e.printStackTrace();<br />}<br />MasterReport report = (MasterReport) ((org.pentaho.reporting.libraries.resourceloader.Resource) res).getResource();<br />ReportParameterValues paramValues = report.getParameterValues();<br /><br />int code = Integer.parseInt(goodsReceivingEntry.getCode().toString());<br />paramValues.put("jobcode", code);<br />paramValues.put("plant_id", plant_id);<br />// Set Dimension<br />Toolkit tk = Toolkit.getDefaultToolkit();<br />Dimension d = tk.getScreenSize();<br />int width = d.width - 400;<br />int height = d.height - 100;<br />int X = (d.width / 2) - (width / 2); // Center horizontally.<br />int Y = (d.height / 2) - (height / 2); // Center vertically.<br /><br />try {<br /><br /><br /><br />HtmlReportUtil.createStreamHTML(report, "http://localhost:8080/LvhtGre1/reports/reportgre.html");<br /><br />} catch (ReportProcessingException e) {<br />log.setError(e, "Print Preview in GRE");<br />e.printStackTrace();<br />} catch (IOException e) {<br />log.setError(e, "Print Preview in GRE");<br />e.printStackTrace();<br />}<br /><br />final PreviewDialog preview = new PreviewDialog(report);<br />preview.setBounds(X, Y, width, height);<br />preview.setPreferredSize(new Dimension(width, height));<br />preview.setMaximumSize(new Dimension(width, height));<br />preview.setMinimumSize(new Dimension(width, height));<br />// preview.setVisible(false);<br />preview.pack();<br />preview.setVisible(true);swathihttps://www.blogger.com/profile/13889249970759727587noreply@blogger.comtag:blogger.com,1999:blog-15319370.post-30103609007048547732010-11-18T17:15:59.453+01:002010-11-18T17:15:59.453+01:00Hi Gustavo!
(this is Roland. Matt's blog is ...Hi Gustavo! <br /><br />(this is Roland. Matt's blog is here http://www.ibridge.be/)<br /><br />Thanks for your support! I'm glad the book is useful to you.<br /><br />If you just need help with some problem, the best spot is probably forums.pentaho.org, or otherwise the ##pentaho IRC channel on freenode.<br /><br />Thanks, and kind regards,<br /><br />Roland Boumanrpboumanhttps://www.blogger.com/profile/13365137747952711328noreply@blogger.comtag:blogger.com,1999:blog-15319370.post-19904674227556754522010-11-18T16:31:03.423+01:002010-11-18T16:31:03.423+01:00Good morning Mat,
Let me start off by congratulat...Good morning Mat,<br /><br />Let me start off by congratulating you for such a great book "Pentaho Kettle Solutions" which I purchased in Amazon. It has been of great use to me. I have been using PDI for about 1.5 years now, but recently I have a problem that I hope you could help me with. Where should I post this ?<br />ThanksGustavo Lopezhttps://www.blogger.com/profile/05344274595761171152noreply@blogger.comtag:blogger.com,1999:blog-15319370.post-74462239294232240072010-08-13T00:22:03.813+02:002010-08-13T00:22:03.813+02:00Congratulations for finishing the book!Congratulations for finishing the book!Josep Curtohttps://www.blogger.com/profile/01128717031047516860noreply@blogger.comtag:blogger.com,1999:blog-15319370.post-5612128986771173972010-08-12T08:24:37.197+02:002010-08-12T08:24:37.197+02:00Good to have you back. I had a moment to take a gl...Good to have you back. I had a moment to take a glance at Quipu. Looks interesting and I look forward to reading a blog post your experiences with the application.Anonymoushttps://www.blogger.com/profile/15305358115090289012noreply@blogger.comtag:blogger.com,1999:blog-15319370.post-72395989400047703532010-08-11T16:52:01.811+02:002010-08-11T16:52:01.811+02:00Hi all! thanks for the comments :)
@Lenz: by &quo...Hi all! thanks for the comments :)<br /><br />@Lenz: by "speed difference" you mean that Firefox is slow and chromium is fast? At least, that is the impression I get. For regular browsing, I use chrome. Firefox (+firebird) is my development platform. <br /><br />BTW, nowadays, Opera is more and more often the winner in JavaScript benchmarks. I think its amazing to see how such a relatively small company, with a marginal market share too, manages to deliver a browser of such a high quality. Simply awesome :) Pity it isn't open source.rpboumanhttps://www.blogger.com/profile/13365137747952711328noreply@blogger.comtag:blogger.com,1999:blog-15319370.post-59675099347024793442010-08-11T16:11:42.422+02:002010-08-11T16:11:42.422+02:00Hi Roland! Welcome back - good to see you around. ...Hi Roland! Welcome back - good to see you around. Thanks for the pointer to the JS1k contest. I'm surprised by the speed differences when looking at the demos with Firefox 3.6 and Chromium...LenZhttp://www.lenzg.net/noreply@blogger.comtag:blogger.com,1999:blog-15319370.post-22939932531807938852010-08-11T06:46:46.784+02:002010-08-11T06:46:46.784+02:00Good to see you back!Good to see you back!Shlomi Noachhttps://www.blogger.com/profile/11874165719204714241noreply@blogger.comtag:blogger.com,1999:blog-15319370.post-3768003071760833992010-08-11T04:48:40.683+02:002010-08-11T04:48:40.683+02:00I'm waiting for the book! I've the other P...I'm waiting for the book! I've the other PDI book which is great too. I hope this adds to that. It beats hunting down for answers on the wiki/web.Anonymousnoreply@blogger.com