Reports with jsp and excel?
Hello all..
I'm Struggling with my application when i need reports.. i use jsp and servlets. How can i build reports and load them into a excel spreadsheet?
PD: i dont have time to work with jasper reports.. :/ so if there's a faster and easier solution please let me know!
Thanks.
JExcel and POI are commonly used
Similar Messages
-
How to create rtf template to view report in Word and Excel, with numeric f
Hi,
Please help me!
How to create rtf template to view report in Word and Excel, with numeric formatted fields (like this 999 999 999,99 with spaces between numbers) and then end user be able to process those fields with Excel tools (sum, etc).
Thank you.From what I have seen Excel can not handle 999 999 999.00. You can use 999999999.00 and then format it as you want in the xls bt you can not have values like 999 999 999.00 coming from publisher output and have functions on the values in Excel
Tim -
REPORT GENERATION TOOLKIT AND EXCEL
i have a problem with report generation toolkit and excel
the problem is:
i must read & write from a excel worksheet when this is open but when i using the report generation the worksheet is open another time
have some solution for this problem?
sorry for my englishYou need to close Exel when before your VI is running. Excel can not have two instances running at the same time.
Joe -
Hi guys Pls tell me a way to connect db4 database with jsp and which driver
hi guys
Pls tell me a way to connect db4 database with jsp and
also tell me which driver i have to use
also tell me how to connect with excel sheetstake a look at the follwing links. There, you'll find all what you need :
DB4:
http://www.oracle.com/database/berkeley-db/je/index.html
http://www.oracle.com/technology/products/berkeley-db/je/index.html
http://www.oracle.com/database/berkeley-db/db/index.html
http://www.oracle.com/database/docs/berkeley-db-je-datasheet.pdf
Excel:
http://64.18.163.122/rgagnon/javadetails/java-0516.html
Hope That Helps -
I need to make a report with graphs, and generate an exit file to word
I have to do the acquisition for a laboratory and to make inmediately a report with graphics and a constant test about the method of the experimentation
Probably your best bet is to use ActiveX and control Word from LabVIEW, this way, you can act as you were using Word directly, automating all the steps to create your report. Look for examples in the developer zone, although there will be more examples relating Excel, that can show you the way to act. If you need to use this intensively, i think NI has created a Word toolokit that you can buy.
For any particular question, just ask.
Good luck -
Is there any ECC report with PurchOrder and Purchase Requisition Selection
Hi there,
for one of my BI report reconciliation with ECC requirement, I would like to know how many POs are there without Purchase requisitions, same way want to know how many POs are there with Purchase requisition.
I know some tables where we can find this info, unfortunately I cannot ask my user to go and check in Tables for Acceptance testing. So I am looking for any standard ECC report with POs and PRs as Columns
Due to time constraints, I cannot go build any ABAP queries in ECC at the moment,
Any insights are greatly appreciated.
ThanksHi Curious ,
Check if the following link is helpful. The link is from the SDN Wiki for creating a Z Report in R/3 for Purchase Requisition.
http://wiki.sdn.sap.com/wiki/display/ABAP/PurchaseRequisitionDetail+Report
Or try the following transactions:
ME5A - Purchase Requisitions: List Display
ME53 - Display Purchase Requisition
ME53N - Display Purchase Requisition
Hope this helps your cause.
Regards,
Kush Kashyap -
Generating reports in RTF and Excel on Sun Solaris
hi,
Could any one of u out there kindly tell me if it is possible to generate reports in RTF and Excel formats on a Report Server running in Sun Solaris machine. We use Reports 6i.
Because I am able to generate a report in RTF format on report running in Windows NT machine, but on Solaris i get a message that the Reports Server terminated abnormally!.
Thanks,
Prabhu SCould you please tell us whether you fllowed any special procedures
or made some specific settings to launch RTF reports ?Can't help much, I'm afraid. The report and web server settings were
all made before I got here, and are not visible to me.
We can get RTF from report builder/generate-to-file and when running
reports on the web. Our servers are all Sun/Solaris boxes, although
we display on DOS boxes. Excel we get from a program, not from the
report server.
Report builder 6.0.8.10.1, database claims to be 8.1.7.0.0.
Sorry I can't help much more than saying "yes, it can be done".
Allan Plumb -
Connecting Crystal reports with dashboards and passing parameters
Hi ,
Can anyone have any document on Connecting Crystal reports with dashboards and passing parameters.
I would appreciate for this.
Thank You.Hi Ganesh,
You can refer the following links for connecting Crystal reports with dashboards:
Dashboard integration in Crystal Reports using flash variables | Clariba Blog
https://websmp102.sapag.de/~sapidp/011000358700001426732009E/Xcelsius_EmbeddingInCR2008.pdf
http://events.asug.com/2012BOUC/0315_Integrating_SAP_Dashboards_into_SAP_Crystal_Reports.pdf
Regards,
Renu -
Enhancing Customer Reports with Commands and Parameters
Hi All,
I am implementing the mentioned tutorial. I have succesfully deployed the AccessStatisticApplication PAR on portal. While scheduling the report from Content Management -> Reports -> Running Reports, it is giving error "<b>Can't find bundle for base name com.sap.netweaver.km.stats.reports.DocumentAccessReport, locale en_US</b>". Has anyone faced the problem, can anyone please help to remove this runtime error.
Related Link: <a href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/7d28a67b-0c01-0010-8d9a-d7e6811377c0">Enhancing Customer Reports with Commands and Parameters</a>
Regards
Poonam<i>True, the application property service is apparently not to be used for a real-life scenario</i>
You can definitely use the application property service in production scenarios - it's used by other components in a standard KM install, i.e. out-of-the-box.
<i>in our case it forced the server down with deadlocks. </i>
This should definitely not happen! Did you get SAP support to take a look at this? Was it the most popular documents report that caused this, or some other custom code? There should be no such problem with this service, since it's been around for quite some time and in production use.
<i>
Even if the code sample is not to be used for real-life scenarios it could at least make use of something else than the application property service which isnt't optimal for this use.
</i>
The application property service is good for a lot of scenarios, so it is realistic to use in in real-life scenarios. The only time I have seen this approach (storing the number of hits on documents in the database) fail is in very high-load scenarios.
<i>Could you provide me with a link to the documentation for the logging framework?</i>
<a href="http://http://help.sap.com/saphelp_nw70/helpdata/en/d2/5c830ca67fd842b2e87b0c341c64cd/frameset.htm">Logging and Tracing</a> on help.sap.com and <a href="https://help.sap.com/javadocs/NW04S/current/en/index.html">Logging and Tracing API (J2EE Engine API)</a> for NW 7.0. -
Help with JSP and logic:iterate
I have some queries hope someone can help me.
I have a jsp page call request.jsp:
====================================
<%@ page import="java.util.*" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<html>
<body>
<%@ page import="RequestData" %>
<jsp:useBean id="RD" class="RequestData" />
<%Iterator data = (Iterator)request.getAttribute("Data");%>
<logic:iterate id="element" name="RD" collection="<%=data%>">
<jsp:getProperty name="RD" property="requestID" />
<%=element%><br>
</logic:iterate>
</body>
</html>
And I have the RequestData.java file:
======================================
private int requestID = 1234;
public int getRequestID() { return requestID; }
The jsp page display:
======================
0 RequestData@590510
0 RequestData@5b6d00
0 RequestData@514f7f
0 RequestData@3a5a9c
0 RequestData@12d7ae
0 RequestData@e1666
Seems like the requestID is not returned. Does anybody know this?
I have done the exact one using JSP and servlets, trying to learn using JSP and custom tags. The one with JSP and servlet looks like:
============================================
<%@ page import="RequestData" %>
<%Iterator data = (Iterator)request.getAttribute("Data");
while (data.hasNext()) {
RequestData RD = (RequestData)data.next();
out.println(RD.getRequestID() );
}%>Oh think I got it...
but one thing I'm not sure is...
If I use "<jsp:useBean id="RD" class="RequestData" />", do I still need "<%@ page import="RequestData" %>"?
I tried without and it gives me error... -
Integrating Crystal Report with JSP
Could any one send me a sample code how to integrate crystal Report
with JSP. If so it will be a grade help for my project work.
Thanks RasikaThe best place to pick up sample code is straight from the horses mouth. [url http://www.businessobjects.com/products/dev_zone/java/default.asp?ref=devzone_main] Crystal java zone
-
Please help .............................
<html>
<head><title>Table Linking Sample</title></head>
<body>
<%@ page import= "java.net.*" %>
<%@ page import= "java.util.Locale" %>
<%@ page import= "com.crystaldecisions.sdk.occa.report.application.ReportClientDocument " %>
<%@ page import= "com.crystaldecisions.sdk.occa.report.lib.PropertyBag" %>
<%@ page import= "com.crystaldecisions.sdk.occa.report.lib.Strings" %>
<%@ page import= " com.crystaldecisions.sdk.occa.report.lib.PropertyBagHelper" %>
<%@ page import= "com.crystaldecisions.sdk.occa.report.reportsource.IReportSource" %>
<%@ page import= "com.crystaldecisions.sdk.occa.report.data.* " %>
<%@ page import= "com.crystaldecisions.report.web.viewer.CrystalReportViewer" %>
<%
//Create a report document object
ReportClientDocument rptDoc = new ReportClientDocument();
//assume RAS service is running on the same machine as RAS SDK -
//and attach this report to the local machine
InetAddress ip = InetAddress.getLocalHost();
rptDoc.setReportAppServer(ip.getHostName ());
//instead of opening an existing .rpt, create a new empty report
rptDoc.newDocument();
//Create two table objects
Table tblA = new Table();
Table tblB = new Table();
//Create a connection info object and property bag for the connection
ConnectionInfo ci = new ConnectionInfo();
PropertyBag pb = new PropertyBag();
//place all of the database connection information into the property bag
pb.put(PropertyBagHelper.CONNINFO_DATABASE_DLL, "crdb_odbc.dll");
pb.put(PropertyBagHelper.CONNINFO_DATABASE_NAME , "jstud.mdb");
pb.put(PropertyBagHelper.CONNINFO_SERVER_NAME, "localhost");
pb.put(PropertyBagHelper.CONNINFO_SERVER_TYPE, "ODBC (RDO)");
//attach the property bag to the connection info object
ci.setAttributes(pb);
ci.setUserName("");
ci.setPassword("");
ci.setKind(ConnectionInfoKind.SQL);
//set the names of the tables to be added
tblA.setName("Customer");
tblB.setName("Orders");
//attach the tables to the connection info object
tblA.setConnectionInfo(ci);
tblB.setConnectionInfo(ci);
//Use the Database Controller to add the two tables to the report
rptDoc.getDatabaseController().addTable(tblA, null);
rptDoc.getDatabaseController().addTable(tblB, null);
//retrieve the two tables back from the report document
IDatabase db = rptDoc.getDatabase();
Tables tables = db.getTables();
int tableAindex = tables.findByAlias("Customer");
int tableBindex = tables.findByAlias("Orders");
ITable tableAobj = tables.getTable(tableAindex);
ITable tableBobj = tables.getTable(tableBindex);
//retrieve the fields from each table,
//these fields will be needed for linking
Fields fieldsA = tableAobj.getDataFields();
Fields fieldsB = tableBobj.getDataFields();
//Create a new table link object and two strings (arrays of string)
TableLink tblLink = new TableLink();
Strings sourceFields = new Strings();
Strings targetFields = new Strings();
//Create a single link between tableA and tableB:
//which linked the customer ID field from Customer Table...
sourceFields.add("Customer ID");
//... to the Customer ID field of the Orders Table.
targetFields.add("Customer ID");
tblLink.setJoinType(TableJoinType.leftOuterJoin);
tblLink.setSourceTableAlias("Customer");
tblLink.setSourceFieldNames(sourceFields);
tblLink.setTargetTableAlias("Orders");
tblLink.setTargetFieldNames(targetFields);
rptDoc.getDatabaseController().addTableLink(tblLink);
//Find and add the Customer Name field from the customer table to the report's details section
int fieldIndex = fieldsA.find("Customer Name", FieldDisplayNameType.fieldName, Locale.CANADA );
IField fieldobjA = fieldsA.getField(fieldIndex);
//Find and add the Order ID field from the Orders table
fieldIndex = fieldsB.find("Order ID", FieldDisplayNameType.fieldName, Locale.CANADA);
IField fieldobjB = fieldsB.getField (fieldIndex);
rptDoc.getDataDefController().getResultFieldController().add(-1, fieldobjA);
rptDoc.getDataDefController().getResultFieldController().add(-1, fieldobjB);
Good coding practice would place the following code in its own page.
The above code would re-direct to that page, first storing
the reportSource in a session variable
//Create a viewer to preview the report with
CrystalReportViewer tc1 = new CrystalReportViewer();
tc1.setName("m_Crystal_Report_Viewer");
tc1.setOwnPage(true);
tc1.setEnableDrillDown (true);
//Pass the report to the viewer, and view the report
IReportSource reportSource = rptDoc.getReportSource();
tc1.setReportSource(reportSource);
tc1.processHttpRequest(request, response, getServletConfig().getServletContext(), out);
%>
</body>
</html>
while i am executing i am getting a exception like.............
org.apache.jasper.JasperException: Unable to compile class for JSP
Generated servlet error:
Only a type can be imported. com.crystaldecisions.sdk.occa.report.application.ReportClientDocument resolves to a package
An error occurred at line: 16 in the jsp file: /Crystal.jsp
Generated servlet error:
ReportClientDocument cannot be resolved or is not a type
An error occurred at line: 16 in the jsp file: /Crystal.jsp
Generated servlet error:
ReportClientDocument cannot be resolved or is not a type
please help...............Kindly assist me where i can find the these <%@ page import= "com.crystaldecisions.sdk.occa.report.application.ReportClientDocument " %>
<%@ page import= "com.crystaldecisions.sdk.occa.report.lib.PropertyBag" %>
<%@ page import= "com.crystaldecisions.sdk.occa.report.lib.Strings" %>
<%@ page import= " com.crystaldecisions.sdk.occa.report.lib.PropertyBagHelper" %>
<%@ page import= "com.crystaldecisions.sdk.occa.report.reportsource.IReportSource" %>
<%@ page import= "com.crystaldecisions.sdk.occa.report.data.* " %>
<%@ page import= "com.crystaldecisions.report.web.viewer.CrystalReportViewer" %>
packages? -
Reports with output to excel - special characters not displayed correctly.
Hi,
I have a portal with data from 5 continents. In many places special or national characters are used in names. My portal can show most of these characters correctly and so can my version of Microsoft Office Excel. When text with these characters are copy/pasted from the screen to an excel sheet, they are also shown correctly in excel. The problem arises in portal reports, where output is set to Excel, then special characters are often displayed as strange double characters, for example á is shown as á . Does anybody have a solution to that?
Thanks
ArneNo answers have been posted yet and now I have found a solution myself. The portal report is run and output set to Excel. The resulting file is opened, and a new row is inserted in the top of the sheet. In the first field in this row is written the characters *\xEF\xBB\xBF*. It is called a UTF-8 BOM, and when written in the start of a text file, it will tell the program that opens it, that UTF-8 encoding is used.<br><br>
The file is saved with the file type CSV (semicolon separated) (*.csv) and excel is closed. When you click on the CSV-file, it is opened by excel, and now all characters with accents, circumflexes and umlauts are shown correctly.<br><br>
The solution was found here: http://www.roosmaa.net/importing-utf-8-csvs-in-excel/ -
SCSM2012 R2 Custom Reports with Weekly and monthly schedule to email
Hi
I am able to pull standard ListofIncidents Reports, want a similar kind of report with a Weekly and monthly scheduled reports to email, I have tried using pull reports from Cubes to Excel and do a custom reports but is not showing like standard ListofIncidents
Reports. Could you please guide me on this.
Thanks and Regards,
Pradeep Kumar
Pradeep KuimarHi,
Would you please check the articles below regarding to publishing and Subscribing to Service Manager Reports:
http://blogs.technet.com/b/servicemanager/archive/2010/06/30/publishing-and-subscribing-to-service-manager-reports.aspx
How to Schedule a Standard Service Manager Report
https://technet.microsoft.com/en-us/library/hh519682.aspx
Hope this can be helpful for you!
Regards,
Yan Li
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] -
How can i work simultaniously with labVIEW and Excel ?
Hello . I study engineering and need some help with labVIEW, and the connection to microsoft excel.
Hi
NI offers an "Report generation toolkit". You get some VI's with this toolkit and so you can directly create your reports from LV.
Another possibility is the communication through ActiveX. There is a nice link with application notes and LV examples for that:
http://zone.ni.com/devzone/devzone.nsf/webcategories/C3E56C69D399361E86256AB7006A9149?opendocument&node=DZ53003_US
Regards,
Luca
Maybe you are looking for
-
I NEED TO TRANSFER THE BOOKMARKS FROM ONE USER TO ANOTHER IN THE SAME COMPUTER??
I have created the recommended second user site on my computer. Also I have Administrator user site on the same computer that I do not wish to use sometimes. Both users are having the same Mozilla browser (win7) but the second user does not have book
-
Can't save PowerPoint as images with automator
I am trying to use automator to create a set of slides from power point for a screensaver. I want the user to be able to drag the power point onto the automator App, generate an image from each slide, and save it to the 'Slideshow' folder and delete
-
Variable Bind Data in Oracle 9i
Hi everyone, I am trying to write a query in Oracle 9i which can resolve bound data names and values, but can't seem to find a way to do so. I have a 10g query which works great, but uses v$sql_bind_capture to find the variable names. 10g query: SELE
-
How to set the Reverse date to be the same as the Actual GI date by default
Hello, On VL09 (reverse goods movement) screen, default reversal date is the system date. Users have to select the line, click on define date button and enter the correct cancellation date to the local date field on the pop-up. I want the reversal da
-
Getting error msg: Session could not be started
Since the update of itunes and ios i get an error msg saying could not sync iphone because a session could not be started. Have an iphone 4