How to export a table in excel (in JSP)???
hi all,
I am using AJAX functionality in jsp to export a table into Excel.But i don't want to use it as it gives a hyperlink whereas i want a button which should work similar to hypelink.
I mean to say i want a saperate export button which should work similar to the hyperlink.
if anybody has any idea abt it....plz reply it soon.......
So what you want to do is redirect to a page when the user clicks the button?
So just put the button in a form with the action attribute set to wherever the hyperlink points now.
And in case the button is already a part of a form, then on the onClick() event of the button, change the action attribute of the form to this particular hyperlink target and then cause it to submit.
That ok?
Or do you want the Excel file you're generating to be sent to the browser causing it to popup a dialog asking the user to save or open? If so take a look here http://forum.java.sun.com/thread.jspa?threadID=5170452&messageID=9655276
Similar Messages
-
[CS3]How to export a table in InDesign to an excel file?
Hi,
Can any one tell me how to script the process of exporting a table to excel file in InDesign CS3 using javascript?
Thanks in advance.
myRiazSorry, no javaScript, but here are some lines from a localization tool that I made in VB. I simply loop through the Rows and Columns and use the Excel DOM to fill the Excel-cells.
Of course you can read amended/localized Excel files back into inDesign the same way, provided that the tables match (nr of rows and columns).
Afterwards you could loop through the characters of each cell to apply the formatting that you want to keep in Excel, such as SuperScripts.
Hope it helps you.
Set myExcel = CreateObject("Excel.Application")
myExcel.Visible = True
Set myTableBook = myExcel.Workbooks.Add
Set myTableSheet = myTableBook.Worksheets.Item(1)
myTableSheet.Columns.ColumnWidth = 35
myTableSheet.Cells.VerticalAlignment = xlVAlignTop
myTableSheet.Cells.WrapText = True
For R = 1 To myTable.Rows.Count
Set myTableRow = myTable.Rows.Item(R)
For C = 1 To myTableRow.Cells.Count
Set myTableCell = myTableRow.Cells.Item(C)
If Len(myTableCell.Contents) = 0 Then
myTableSheet.Cells(R, C) = ""
Else
myTableSheet.Cells(R, C) = myTableCell.Contents
myTableSheet.Cells(R, C).Value = Replace(myTableSheet.Cells(R, C).Value, "1397058884", "—")
myTableSheet.Cells(R, C).Value = Replace(myTableSheet.Cells(R, C).Value, Chr(13), Chr(10))
End If
Next C
Next R
good luck
TonyT -
Problem export pdf table to excel spreadsheed
Hi, my name is Marco.
Last month a customer has bought a copy of Adobe Acrobat Professional 9 in my computer shop for edit some pdfs files.
After some days he told me that he need to export a table to excel's spreadsheet but the function "open table in excel spreadsheet" work ONLY for the page where i right-click. How can i copy all the document in excel (without lose the format)?
Sorry for the bad english, if you don't understand i try to rewrite it better or in Italian!
Thank you!A lot depends on the structure of the PDF. I it has tags included that provide the format information, then the conversion may be easy. If the tags are not included, then retaining the format is almost impossible. This may even be a problem with recognizing columns. In that case, selecting columns with the ctrl key held during the selection. More information is available under "Copying Text" in the help menu (complete help). The help also talks about the ability to retain format as I have suggested.
To select items on multiple pages, you have to use continuous view.
It might be easier to the Save As to DOC and go from there. The backward conversion is not the forte or intent of Acrobat. In reality, one should never delete the original XLS (or other) file with the intent of going back in the future. Sounds like it is too late for your customer. -
How to export report output into excel.
Hi all
how to export report output into excel sheet can any on give me answer step by step please as soon as possible
kkHi Prashanth,
If you are executing Query from WAD ---> Right click on Table (only on Characteristics Data) --> Enhanced Menu ---> Export as --> CSV file or MS Excel
assign points if this helps,
Thanks,
Sudhakar -
Hi,
I have made an application in BSP which reads a database table and fills up an internal table. I have displayed the result in a tableView <htmlb:tableView>
Now I have to export this list to an excel file.
How can I do it?
Kindly help me solve the problem.
Thanks,
Reemacheck out the following threads
Re: File Upload & Download into excel
Re: export bsp-table to excel
Re: Download to Excel
and close your previous threads in BSP forum
BSP Application URL
Target Frame with navigation->next_page
Event Handling in treeNode
BSP Exception: CX_SY_CONVERSION_NO_NUMBER
Regards
Raja -
Hi All,
Does anybody know how to export adf table records to excel sheet without using DCIteratorBinding.Hi Frank,
Thanks for your suggestion.in the below method
public void exportToExcel(ActionEvent actionEvent) throws
IOException {
FacesContext facesContext = FacesContext.getCurrentInstance();
Application application = facesContext.getApplication();
// BindingContainer bindings = this.getCustomers();
ValueBinding customerListBind =
application.createValueBinding("#{CustomerViewBean}");
customerView customer =
(customerView)customerListBind.getValue(facesContext);
customer.exportHtmlTableToExcel();
in this method i need to send CustomerViewBean to the exportHtmlTableToExcel method. -
How to export the data to excel in OAF Page - Urgent
Hi All,
I have a developed a page wich dispaly the records based on some condition.
The Page has two regions.
1.RowLayout Region
2.Table Region
Both the regions are getting the data from two diffrent VOs.
In this case how to export the data to excel as the export button will not work if the page uses more than one VO(I think).
Please help me.
Thanks,
Srinivas
Edited by: SrinivasChanda on Oct 7, 2009 10:07 AMHi Gaurav,
Yes you are rite.When i tried exporting the data(which is coming from two different VOs altogether),i got only one region's data and then got error.
Please note: Two regions(RowLayout,Table) are getting data from two different VOs
below is one of the region(row layout) data:
Hierarchy Learning Certification Status Learning Certification Supervisor
Direct Reports Passed Only All Michael Swinnerton
below is the error:
<div CLASS="errorText">
<html lang="en-US">
<head>
<script>
function ignoreWarnAboutChanges(url)
document.location.href = url;
</script>
<title>Error Page</title>
<link rel="stylesheet" charset="UTF-8" type="text/css" href="/OA_HTML/cabo/styles/blaf.css">
<META name="fwk-error" content="Error occured while processing the request">
<META name="fwk-error-detail" content="oracle.apps.fnd.framework.OAException: Application: FND Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = java.io.IOException: Stream closed;
" at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)"
" at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:865)"
" at OAErrorPage.jspService(OAErrorPage.jsp:34)"
" at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)"
" at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)"
" at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)"
" at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)"
" at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)"
" at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)"
" at com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:119)"
" at com.evermind.server.http.EvermindPageContext.handlePageThrowable(EvermindPageContext.java:547)"
" at com.evermind.server.http.EvermindPageContext.handlePageException(EvermindPageContext.java:518)"
" at OAExport.jspService(OAExport.jsp:122)"
" at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)"
" at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)"
" at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)"
" at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)"
" at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)"
" at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)"
" at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)"
" at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)"
" at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)"
" at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)"
" at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)"
" at java.lang.Thread.run(Thread.java:534)"
## Detail 0 ##
java.io.IOException: Stream closed
" at java.io.BufferedWriter.ensureOpen(BufferedWriter.java:98)"
" at java.io.BufferedWriter.write(BufferedWriter.java:197)"
" at OAExport.jspService(OAExport.jsp:107)"
" at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)"
" at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)"
" at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)"
" at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)"
" at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)"
" at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)"
" at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)"
" at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)"
" at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)"
" at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)"
" at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)"
" at java.lang.Thread.run(Thread.java:534)"
java.io.IOException: Stream closed
" at java.io.BufferedWriter.ensureOpen(BufferedWriter.java:98)"
" at java.io.BufferedWriter.write(BufferedWriter.java:197)"
" at OAExport.jspService(OAExport.jsp:107)"
" at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)"
" at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)"
" at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)"
" at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)"
" at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)"
" at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)"
" at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)"
" at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)"
" at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)"
" at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)"
" at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)"
" at java.lang.Thread.run(Thread.java:534)"
">
</head>
<body>
<table width=100%"" border=""0"" cellspacing=""0"" cellpadding=""0"">"
<tr> <td><img src="/OA_MEDIA/FNDSSCORP.gif" alt=""> </td></tr>
<tr> <td> </td>
<td> <a href= /OA_HTML/OALogout.jsp>Logout </a></td>
</tr>
<tr> <td width="100%" nowrap class="OraBGColorDark" > </td> </tr>
</table>
<p>
<center>
<table width="95%" border="0" cellspacing="0" class="OraBGAccentDark" cellpadding="0">
<tr> <td> </td> </tr>
<!-- <tr> <td class="OraErrorHeader"> <img src=/OA_HTML/cabo/images/errorl.gif> Error Page </td> </tr> -->
<tr> <td class="OraErrorHeader"> <center> Error Page </center> </td> </tr>
<tr> <td colspan=2 class="OraBGColorDark"> </td> </tr>
<tr> <td> </td> </tr>
<tr> <td colspan=2 class="OraErrorText" >You have encountered an unexpected error. Please
contact the System Administrator for assistance. </td> </tr>
<tr> <td colspan=2 class="OraErrorText"> Click <a href=javascript:ignoreWarnAboutChanges("/OA_HTML/OAErrorDetailPage.jsp")> here </a> for exception details.
</td> </tr>
</table>
</center>
</div>
</body>
</html>
Please help me to solve this issue.
Thanks,
Srinivas -
How to export crystal report to excel through progeam
Hi,
Can any help me how to export crystal report to excel through program(C#). I'm using VS2005.
Also, the report should be in a pivot table format after exporting to the excel..please help me how to do this
Thanks,
VenkyHi Venkat,
The link below provides the code C# in an ASP.NET codebehind file
http://www.codeproject.com/KB/cs/Crystal_Report_Export.aspx
http://aspalliance.com/478_Exporting_to_Excel_in_Crystal_Reports_NET__Perfect_Excel_Exports.2
Regards,
Abhijeet T. -
How to Export EUL tables ?
Hi all,
I have upgraded Discoverer admin/ desktop form 4.1.37 to 4.1.48. When i try to connect to Administrator it asks me to export EUL tables so that it will upgrade EUL. Iam unable to connect to Adminstrator/Desktop 4.1.48 as a Application user.
How to export EUL tables?
ThankyouHi,
Your DBA should export the EUL owner schema using the database command exp. This will export all the EUL tables and will enable you restore the tables if the upgrade fails.
Rod West -
How to export / import tables from UAT Environment to Devlopment in oracle
i wanted to share some points about export/import tables in oracle.
we have two environments one is development and integrated user acceptance test (UAT).
we have finalized table structures with data in UAT. i wanted to move from UAT to Development.
i found some commends in google. I tried but I am not able to export and then its throwing some errors.
i am explaining below what i want to do and what i want did.
Please provide solution what i need to do.
admin credentials in UAT
username :venkat_admin
password :venkat_admin
UAT user/schema
username : ods_inb_stg
password : ods_inb_stg
development environment credentials
admin user name : dev_admin
password : dev_admin
Development user/schema
username :ods_inb_dev
password :ods_inb_dev
Above mentioned schema names i want move data from UAT (ods_inb_stg) to development (ods_inb_dev)
I logged in uat ods_inb_stg user and then
I used this command
Exp ods_inb_stg/ods_inb_stg file=party_pt_address.expdat tables=(party,party_address)
log=party_pt_address.log;
getting error
Unknown command beginning "exp ods_inb_stg/..." - rest of line ignored.
What should I do any one help.
One more thing i have more than 100 tables how to export all tables and which is the easiest way and how to do it.
Thanks in Advance
VenkatHi,
based import and export we need to do.
suppose we think we have created tables in production and data also populated. we need to export the tables with data. i am able to export the tables with data some tables or full database.
suppose we have development environment. in development environment there is no tables. we can treat nothing in development. we have only username,password and hostname.
when you import the tables production to development automatically create the table structures with data.
where ever we wanted to import the tables no need to create table structures. thats why no need to think about table structures. -
How to export oracle table?
Does anybody knows how to export oracle table into sql format? I know by using PL/SQL Developer can do it,but I have a table,it contains a column,it's type is LONG,PL/SQL can't export it! How to export long type table into sql format?
Any idea will be appreciated!My table structure is follows:
create table MyDates
COL1 LONG,
COL2 VARCHAR2(20)
In column col1,I store some date in it,then I want to export this table,but I don't want to export this table into dmp file,I only want to export this table' structure and export it into SQL File,such export filename is mydata.sql
I don't know how to export this table's structure? Because it contains LONG type column.How to export it? By the way,would you tell me how to export other type table,such as it contains column type is blob? -
How we export report data into excel in report 10g
hi can any one tell me
how we export report data into excel in report 10g (except spreadsheet)We can use TEXT_IO Package
-
How to Export from table view to Excel (not BI query)?
There is a 'How to' document explaining how to export from an iView using a BI query:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/47fe4fef-0d01-0010-6f87-ed8ecb479123
However:
This 'How-To' document is using an example of a BEx query. I am not using a BEx query, therefore I do not have an "Info port". How can I download to Excel from a table view that is not an iView of a BI query? (It is just a internal table coming from a BAPI).keenneth,
i am using the query from SQL server, i am having the same problem of not having info port. so did you find a work around for exporting to excel with filters for non sap queries ?
any body who had come across this situation , plz guide me.
thanks in advance
ravi -
To export pivot table from excel and save as picture using powershell
I am trying to automate my work by attaching an excel file to email and send it across using powershell . But also, I want to paste the screenshot of pivot table to my email body .
One way to do it is to save only the pivot table as picture format like jpeg or png , then attach this picture to the email body .
I am looking for an powershell script which will save my pivot table as picture format . I am using powershell V1.0
please help .I'm not familiar with PowerShell script, we usually use VBA script within excel.
The following article describes how to export Excel Range to a Picture File and attach it as the email body by VBA code, it might not be the answer you are looking for, but hope it will give you some inspirations.
http://www.jpsoftwaretech.com/export-excel-range-to-a-picture-file/
Also you can post your question to PowerShell forum to get better support.
Best Regards,
Wind Zhang -
How to send html table to Excel in PSP?
Hi,
I am writing a plsql server page program that produces multiple tables. I only want to export only one of the tables to Excel by pressing a button/link if possible. How to do that? Currently, if i right clicked on that table, then choose "Export to Excel" it will prompt me for the username/password to log into my application before exporting to Excel. How can I avoid the username/pw portion and export only that table to Excel.
If I use the owa_util.mime_header, I can pass the url to it but it will export all the tables in my psp.
Thanks in advance!
kwonguser464216 wrote:
I am writing a plsql server page program that produces multiple tables. I only want to export only one of the tables to Excel by pressing a button/link if possible. How to do that? Currently, if i right clicked on that table, then choose "Export to Excel" it will prompt me for the username/password to log into my application before exporting to Excel. How can I avoid the username/pw portion and export only that table to Excel.That is a web server authentication issue - not a PL/SQL issue. The web server deems the URL (for the export) as being unauthorised and thus request authentication details from the web browser. This happens before your PL/SQL code is executed. So you cannot deal with this in PL/SQL itself. That base URL is a location definition in the Apache config file - and that is where access to it is configured, together with authentication details.
Please note that there's also a difference between exporting data in a Microsoft Excel format and exporting data in a CSV (Comma Separated Values) format. CSV is not an Excel format. Never was. It has been around long before Excel existed. So please make sure that you use the correct technical terminology when describing a technical problem. Thanks.
Maybe you are looking for
-
Debugging a web item when executing a web template in BI7
Hi, I would like some help in the following 1> Class name (or package that contains all the class/methods) when a particular SAP delivered web item get executed in a Web template in SAP BI 7.0 2> whats the class that gets executed for an 'Analysis
-
Hi all , Is it possible to place a Spry Menu bar in a Javascript? If so can any one please tell me of a tutorial or URL with an example. I have a web site (Which was produced solely in Frontpage) and has several pages with the same menu on them, so i
-
Aperture, versions unavailable masters
Greetings, What I have done.. It has been a while working with aperture. I started to reorganize my photos after a couple of years. I had a library saved on an external hard-disk and I opened it. But I'm not able to export the photos. This is in the
-
Apache V1.3.X vs. V2.X plugin
Hi all, I'm considering the use of an Apache Server with the proxy to BEA Weblogic 6.0 SP2. HP-UX run in both servers. Between them there is a firewall. The question is: which version of Apache can give better performance? and reliability Thanks in a
-
Memory use with PSE 11 on my Mac
My iMac has 12 GB of RAM - but when I go to preferences on my Photoshop Elements version 11, I can only get PSE 11 to use about 3 GB of RAM. I am doing some photomerge panoramas, and when I want to fill in the blank borders of the final image, PSE