Java results in excel
Hi,
I have written a program in java that gives me some results. i would like the resutls to be in excel in the form of graphs. Does anyone know how to do this? thank you for your help
I suggest you look at apache-poi.
I would set a template file which has the chart as you would want them and use POI to alter the data the charts use.
Similar Messages
-
How can I Convert BO 6.5 results to Excel 2007?
Post Author: Leptuski
CA Forum: General Feedback
Hello anyone there!
Kindly inform me if it is possible for me to save a BO 6.5 result to excel 2007. I actually need the surplus rows that Excel 2007 affords me. Whenever I try to 'save as', I get the option to save using the old version of excel. This is inspite of having uninstalled MS Office 2003 on my system and installing 2007.
All suggestions are welcome. Thanks!
Leptuskihave a look here:
http://discussions.apple.com/thread.jspa?threadID=246070 -
Export PCUI search result to Excel over Context Menu / right mousebutton
Hello
I am using CRM 5.0 and PCUI
I want to export the search result into Excel, on Servicetickets (BUS2000116). When i press the right mousebutton on the searchresult, I get the option Export to Microsoft Excel.
When i choose this option, Excel opens and i get the error message "Unable to open ......./mainDH.do. The Internet site reports that a connection was established but the data is not available."
and the cell A1 says ExternalData_1.
In Thread Export PCUI search result to Excel, Manuel Rodriguez told "Standard Export to excel is avaible in PCUI 5.0 and dont works in PCUI 4.0.". But I still can't make it work.
Anybody an Idea how I can do it work ???
Best regards
ThomasHi Thomas,
you should not use the right click and Export to Excel. I think this is a functionality of Internet Explorer for HTML Tabes. Using that functionality you will only get the actual table exported. Do you see the Button "Download" in the Toolbar? That's the export to Excel functionality introduced in CRM 5.0.
Regards
Gregor -
Trying to export my forms results to excel error message is adobe can not save as the file is open
trying to export my forms results to excel, error message is adobe cn not save as the file is open in another location, however, no other file is open.
Thanks for continuing the help, but it is a medical realted form and I will just keep it confidential at this time.
Larry Lakes, Executive Director
The HANDLE Institute
[email protected]
541-639-1588
P. O. Box 6264
Bend, OR 97708 -
Display Query results in excel on the Web
Hello,
I am trying to display data from a query in excel on the web without creating an actual file. I know that I can create a CSV file using UTL_FILE and display it but I was hoping there was a way to do it without actually creating the file. I have a procedure that looks similar to
PROCEDURE displayAsCSV is
cursor STUD_CURS is
select * from students;
BEGIN
for STUD_REC in STUD_CURS loop
htp.print(' " '||STUD_REC.FIRST_NAME||' " , " '||STUD_REC.LAST_NAME||' " ');
end loop;
END;
Does anyone know if it is possible to display these results in excel in the browser by altering the MIME types or something similar?
ThanksCheck Tom's owa_sylk utility together with the appropriate mime-type.
-
Export result of ssas query result to excel file
Hi All,
I have browsed a SSAS cube. I want to export result of SSAS cube into excel file.
Kindly give your input.
Thanks,
Vivek singhHi,
I do not know whether there is a direct solution but there is an indirect way of doing it. I always follow this method if I ever want to get MDX results into Excel.
1 - Install the DAX Studio (I know you want MDX results, so do not get confused by looking at the word DAX. Continue reading). You can download it from the following location.
http://www.sqlbi.com/tools/dax-studio/
2 - Once you install DAX Studio, Go to the Add-Ins ribbon. Click on DAX Studio.
3 - There is an option "Tabular Server" and there is a drop-down list where you can enter the SSAS (MD CUBE Server) server name. Enter the server name manually. If you have multiple SSAS Databases and if you are interested in a specific SSAS database
enter "Initial Catalog=Your SSAS Database Name" in Additional Options section and Click Connect. You can successfully connect to the SSAS Server now.
Here are the details described so far in pictorial representation.
4 - Enter your MDX manually and execute the code via DAX studio and you will get your results right-away in Excel.
Now, isn't that an elegant way of getting MDX results into Excel :) ? Besides Excel's Pivot Table option, I do not know whether there are any alternate solutions to this but wait for other Pros' comments as well.
Best regards...
Chandima Lakmal Fonseka -
Owb mapping result in excel sheet
hi ,
can anyone help me to know how i can get owb mapping running status & result in excel sheet.
I have completely forget it.
kindly help.
rgds,
pcHi,
You can view the status by qurying wb_rt_audit_map_runs from any SQL client.
From there your can copy the output to excel.
Otherwise you can use OWB repository browser to view the mapping running status report.
Regards,
Pnreddy -
How to write data/result in excel or external data source in c#??
Hello Team,
I have automation framework in c#. So there are multiple testmethod and testclasses.....so i havt to write result of every testmethod ...in below format..in excel
[TestMethod]
public void Demo()
WriteIntoExcel("TestClassName","TestmethodName", Pass/Fail, Time);
I can all info in every methods but i dont know how to write it in excel or any other external datasource after every method .....
Actually i want c# code to which will write data/result in excel ...excel might be saved in shared drive...
Thanks in advanceHi Mon,
We also could use OleDbConnection to insert data into excel.
using System.Data.OleDb;
using Excel = Microsoft.Office.Interop.Excel;
using Microsoft.Office.Interop;
//in the method section use as :
string datevariable = "02/02/2010";
string namevariable = "Shyam";
string strConnectionString ="";
string cmd;
string filepath = ""C:\\sample.xls";
strConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+filePath+@";Extended Properties=""Excel 8.0;HDR=Yes;""" ;
OleDbConnection conn =new OleDbConnection (strConnectionString);
try
conn.Open();
catch(Exception e)
Console.WriteLine(e);
try
// Insert into Sheetname
cmd = "Insert into [Sheet1$] ( [Date], [Name]) values ('" +datevariable+ "','" +namevariable+ "');
//Similarly you can update also
OleDbCommand cmdUpd=new OleDbCommand(cmd);
cmdUpd.Connection = conn;
cmdUpd.ExecuteNonQuery();
conn.Close();
catch(Exception e)
Console.WriteLine(e);
Best regards,
Kristin
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How to save query result in excel file
Hi all,
How to save query result in excel file from sql*plus tool.
thank youDo you really need an Excel file (binary) or a simple CSV?
If you just need a CSV then search for DUMP_CSV at http://asktom.oracle.com or at this forum
If you need formatting and/or multiple worksheets then you can use free tools like
https://xml-spreadsheet.samplecode.oracle.com/ or https://exceldocumenttype.samplecode.oracle.com/
Regards
Marcus -
Http 404 error exporting query result into Excel.
Hello. I'm getting an Http 404 The webpage cannot be found" error when trying to export any APEX application's query results into Excel (Application Express 3.2.1.00.10). This was working fine before. Nothing changed with our APEX application. I've been always using I.E. Version 7.0.5730.11 with no problems. I've reset the I.E. defaults and still the problem exists. I've downloaded Mozilla Firefox and the problem does not happen. However, I would like to know why my I.E. still gets this error? Any feedback or suggestions would greatly be appreciated. Thanks for your time.
My EI settings are as follows:
Tools -> Internet Options -> Security
All Three: Internet, Local Intrarnet, and Trusted Sites ... at Custom Level have the following settings:
Downloads:
Automatic prompting for file downloads = Enable
File download = Enable
Font download = Enable
Problem still exists.
Thanks for the help.... any additional feedback or suggestions would greatly be appreciated. Thanks for your time. -
Hi,
I have a large comprehensive program written in Java and I would like to incorporate the answer in Excel... is there any way I can call the Java program from Excel, execute it and record the answer on an excel spreadsheet?
Thanks,
mbrolass.You could write a macro in Excel to call your Java program. This was addressed in a former thread: http://forum.java.sun.com/thread.jspa?threadID=689170&start=0&tstart=0
Excel VBA Accessing Java
http://j-integra.intrinsyc.com/support/com/doc/#javafromcom/excelvba2java.html
In order to run this, you'll need to download and install J-Integra for COM.
http://j-integra.intrinsyc.com/downloads/ -
hi,
Is there a way to save the query results as excel programatically (some kind of utility which does the job)? we are using oracle 10g. This will be a nightly job.. so that every other day morning we have the huge excel report ready for viewing. Any help is appreciated..Did you think to try searching the forum? I typed in the EXACT string you used for your thread title and the first hit was ...
Saving sql query result as excel file -
How to open the TFS query results in Excel?
Hello Guys,
Question 1: Is there any way to export the query results from the TFS web browser?
Question 2: Is there any way to export the query results from Team Explorer 2013?
Here is the query results in TFS:
How do I export this result in excel for further analysis?
I have also connected to Team explorer 2013 and right clicked on the query, but there is no option to open the results in Excel, see below:Hello,
_Pls follow these guide lines for ensuring proper output in Microsoft Excel:
1.First compare the fields properties and the frames properties between the reports created with wizard and the reports created manually.
2. Do not leave any space between two adjacent objects.
Explanation: Because any space, including a few pixels, between two adjacent objects will result in an empty cell or column in Excel output
3.Make sure that the widths of all objects are vertically consistent.
Explanation: If the objects are not exactly aligned vertically, that is, have inconsistent widths, it is likely to result in insertion of unwanted cells/columns in Excel.
4. Pls. Make sure that the vertical elasticity of the frames and repeating frames is not fixed unless you are sure you have allocated enough space to accommodate all the records.
Explanation: If you set the Vertical Elasticity property of a frame to Fixed, the output in Excel will show only as many records as could appear on the first page of the paper output. Since Excel does not have a page concept, it is not able to overflow the remaining rows to the next page.
5. For reliable formatting of spreadsheet output, enclose the whole layout area in a frame.
Explanation: This action prevents the possibility of parallel objects displaying in different vertical positions, one following the other.
Hope this helps.
Regards,
Alex -
Creating a custom java module for excel to xml conversion.
Hi Gurus,
I am creating a custom java module in sap nwds 7.3 for Excel to XML Conversion. But I am getting following error
Classpath dependency validator message.
Classpath entry will not be exported or published. Runtime ClassNotFoundExceptions may result.
I imported the Jars from a different PI system and i am using NWDS in local PC with creating a separate folder with all JARs and also imported them using build path option.
This issue is occuring for all the jars imported.
I am using following code.
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Map;
import com.sap.aii.mapping.api.StreamTransformation;
import com.sap.aii.mapping.api.AbstractTrace;
import java.util.HashMap;
import jxl.Cell;
import jxl.Workbook;
public class JavaMappingExcelToXML implements StreamTransformation{
private Map map = null;
private AbstractTrace trace = null;
public void setParameter(Map arg0) {
map = arg0; // Store reference to the mapping parameters
if (map == null) {
this.map = new HashMap();
public static void main(String args[]) { //FOR EXTERNAL STANDALONE TESTING
try {
FileInputStream fin = new FileInputStream ("c:/ashu.xls"); //INPUT FILE (PAYLOAD)
FileOutputStream fout = new FileOutputStream ("C:/Users/ashutosh.a.upadhyay/My Documents/ashuXML2.xml"); //OUTPUT FILE (PAYLOAD)
JavaMappingXLStoXML mapping = new JavaMappingXLStoXML ();
mapping.execute(fin, fout);
catch (Exception e1) {
e1.printStackTrace();
public void execute(InputStream inputstream, OutputStream outputstream) {
String msgType = "Message Type name will come here";
String nameSpace = "Namespace Name will come here";
String xmldata = "";
try {
Workbook wb = Workbook.getWorkbook(inputstream);
xmldata ="<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"+ "<ns0:"+msgType+" "+"xmlns:ns0=\""+nameSpace+"\n">";
Cell[] cells ;
Cell[] cellNames ;
cellNames = wb.getSheet(0).getRow(0);
for(int j=1;j<wb.getSheet(0).getRows();j++){
xmldata = xmldata+"\n<Record>\n";
cells = wb.getSheet(0).getRow(j);
for(int i=0;i<wb.getSheet(0).getColumns();i++){
xmldata = xmldata+"\t<"+cellNames[i].getContents()+">"+cells[i].getContents()+"</"+cellNames[i].getContents()+">\n";
xmldata = xmldata+"</Record>";
xmldata = xmldata+"\n</ns0:"+msgType+">";
System.out.print(xmldata);
xmldata.getBytes();
wb.close();
byte by[] = xmldata.getBytes();
outputstream.write(by);
inputstream.close();
outputstream.close();
System.out.println("\n"+"File processed");
catch (Exception e) {
e.printStackTrace();
Request you to guide how to resolve this issue.
Thanks in advanceHi Gurus,
I am creating a custom java module in sap nwds 7.3 for Excel to XML Conversion. But I am getting following error
Classpath dependency validator message.
Classpath entry will not be exported or published. Runtime ClassNotFoundExceptions may result.
I imported the Jars from a different PI system and i am using NWDS in local PC with creating a separate folder with all JARs and also imported them using build path option.
This issue is occuring for all the jars imported.
I am using following code.
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Map;
import com.sap.aii.mapping.api.StreamTransformation;
import com.sap.aii.mapping.api.AbstractTrace;
import java.util.HashMap;
import jxl.Cell;
import jxl.Workbook;
public class JavaMappingExcelToXML implements StreamTransformation{
private Map map = null;
private AbstractTrace trace = null;
public void setParameter(Map arg0) {
map = arg0; // Store reference to the mapping parameters
if (map == null) {
this.map = new HashMap();
public static void main(String args[]) { //FOR EXTERNAL STANDALONE TESTING
try {
FileInputStream fin = new FileInputStream ("c:/ashu.xls"); //INPUT FILE (PAYLOAD)
FileOutputStream fout = new FileOutputStream ("C:/Users/ashutosh.a.upadhyay/My Documents/ashuXML2.xml"); //OUTPUT FILE (PAYLOAD)
JavaMappingXLStoXML mapping = new JavaMappingXLStoXML ();
mapping.execute(fin, fout);
catch (Exception e1) {
e1.printStackTrace();
public void execute(InputStream inputstream, OutputStream outputstream) {
String msgType = "Message Type name will come here";
String nameSpace = "Namespace Name will come here";
String xmldata = "";
try {
Workbook wb = Workbook.getWorkbook(inputstream);
xmldata ="<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"+ "<ns0:"+msgType+" "+"xmlns:ns0=\""+nameSpace+"\n">";
Cell[] cells ;
Cell[] cellNames ;
cellNames = wb.getSheet(0).getRow(0);
for(int j=1;j<wb.getSheet(0).getRows();j++){
xmldata = xmldata+"\n<Record>\n";
cells = wb.getSheet(0).getRow(j);
for(int i=0;i<wb.getSheet(0).getColumns();i++){
xmldata = xmldata+"\t<"+cellNames[i].getContents()+">"+cells[i].getContents()+"</"+cellNames[i].getContents()+">\n";
xmldata = xmldata+"</Record>";
xmldata = xmldata+"\n</ns0:"+msgType+">";
System.out.print(xmldata);
xmldata.getBytes();
wb.close();
byte by[] = xmldata.getBytes();
outputstream.write(by);
inputstream.close();
outputstream.close();
System.out.println("\n"+"File processed");
catch (Exception e) {
e.printStackTrace();
Request you to guide how to resolve this issue.
Thanks in advance -
Saving tracker results to excel file, LiveCycle ES 8.2
Hi, I am using a distributed Live Cycle Form ES 8.2 to track data from multiple training evaluations. I would like to know how to copy the tracker results (the spread sheet of the combined data) into an excel file. Does anyone know how to do this? Thanks, Sandra
I don't think it is possible directly from workspace.
Rather, you could write a sql query to fetch the tracking data Adobe database. Write a java/.net/flex application to display and export the data to Excel sheet.
Nith
Maybe you are looking for
-
my hp printer will not scan a document wirelessly the wireless print funtion works fine i have to plug the usb cable into the laptop to scan a document any thoughts on how to do this wirelessly thanks
-
in iMovie, I can't see my iPhoto videos in the event library. Why ? this is after updating to 10.7.4 also, if I want to use a picture in my movie, it says 'Open iPhoto to see photos from your iPhoto Library in this list.' It never use to do this.
-
Mass processing of FBRA (Reverse clearing docs). Is this possible?.
At present it does not seem to be possible to mass process the reverse clearing documents, although it feels like it should be possible. Has anyone come across or know of an enhancement that may allow this to happen? Jas
-
When I try to open Airport Utility, I get a message "You can't open the application Airport Utility because it is not supported on this architecture". Ive browsed this forum and haven't found a fix for this so I downloaded the newest version of Airpo
-
Macbook Pro charger LED goes dim. Why?
So a few weeks ago I went to apple to get my charger checked out. My light was going dim and the charging indicator in the menu bar was acting weird. They did a diagnostic and replaced the charger for me free of charge. It was fine up until this M