How to dump a excel file in the mysql db?
Hi,
I just want to dump a excel file in the mysql db.
Can you please tell, how it can be done?
what steps should I taken for that?
Please help me.
Thanks
gauravjlj wrote:
Hi,
I just want to dump a excel file in the mysql db.
Can you please tell, how it can be done?
what steps should I taken for that?
Please help me.
ThanksDoes this have anything to do with Java?
Similar Messages
-
How to read an excel file into the datatable in sdk code( AddonApplication)
Hi Experts,
Please let me know the code ,how to write an excel file to the datatable and based on the datatable it should write to the database table.
help would be appreciated...
Regards,
Vijay Kumar
Edited by: Haroon Rasheed on Oct 29, 2011 10:40 PMHi,
You may check: Read Excel File by Sheet then put it in Matrix
Thanks,
Gordon -
How to save an Excel file to the desk top
How can I save an Excel file to the desk top?
Hi Tim!
There's a whole bunch of entries that come up when I open terminal and key in the command you gave; here's what is shown:
Davids-Mac-Pro:Desktop pdf3$ ls -ale ~
total 38384
drwxrwxrwx+ 41 pdf3 admin 1394 Nov 2 09:12 .
0: group:everyone deny delete
drwxr-xr-x 6 root admin 204 Sep 19 14:58 ..
-rw-rw-rw- 1 pdf3 admin 3 Jan 24 2012 .CFUserTextEncoding
-rw-rw-rw-@ 1 pdf3 admin 39940 Nov 3 10:48 .DS_Store
drwx------ 2 pdf3 admin 68 Nov 6 09:02 .Trash
drwxrwxrwx 3 pdf3 admin 102 Feb 1 2012 .adobe
-rw-rw-rw- 1 pdf3 admin 302 Nov 6 09:20 .bash_history
drwxrwxrwx 6 pdf3 admin 204 Dec 31 2013 .blurb
drwxrwxrwx 3 pdf3 admin 102 Oct 21 2012 .config
drwxrwxrwx 3 pdf3 admin 102 Jan 27 2012 .cups
drwx------ 7 pdf3 admin 238 Jul 26 20:36 .dropbox
drwxr-xr-x 4 pdf3 admin 136 Dec 7 2013 .fontconfig
drwxrwxrwx 3 pdf3 admin 102 Mar 17 2012 .nchsoftware
-rw-rw-rw-@ 1 pdf3 admin 17 Oct 21 2012 .vbftpxmn
-rw-r--r--@ 1 pdf3 admin 1315548 Sep 3 2013 2014 Bellevue SW Collection Contract 04 15 2013 draft for RFP.pdf
drwxrwxrwx 2 pdf3 admin 68 Sep 21 11:04 Applications
-rw-r--r--@ 1 pdf3 admin 326665 Aug 30 2013 Bellevue Reliability Report 2012 042613 Final-1.pdf
-rw-r--r-- 1 pdf3 admin 6737 Sep 25 2013 Bellevue Reliability Report 2012 042613 Final.txt
-rw-r--r--@ 1 pdf3 admin 35892 Oct 30 22:15 Bellevue Utility Bills, 2015-16.xlsx
drwxrwxrwx@ 3 pdf3 admin 102 Aug 16 14:52 Burn Folder.fpbf
-rw-rw-rw-@ 1 pdf3 admin 25989 Jun 18 2012 Concerns Expressed to City of Bellevue Regarding Approval of.pdf
-rw-r--r--@ 1 pdf3 admin 165592 Sep 5 2013 David's Autobiography copy.pdf
-rw-r--r--@ 1 pdf3 staff 34836 Jul 26 21:21 Deck Repair, 2014.xlsx
drwx---rwx@ 35 pdf3 staff 1190 Nov 5 12:54 Desktop
0: group:admin allow list,add_file,search,add_subdirectory,readattr,writeattr,readextattr,writeextat tr,readsecurity
-rw-r--r--@ 1 pdf3 admin 111548 Nov 15 2013 Document2.pdf
drwx------+ 18 pdf3 staff 612 Nov 5 11:43 Documents
0: group:everyone deny delete
drwx------+ 494 pdf3 staff 16796 Nov 2 22:09 Downloads
0: group:everyone deny delete
drwxr-xr-x 2 pdf3 admin 68 Nov 1 11:54 Excel Work Book
drwxr-xr-x 2 pdf3 admin 68 Oct 31 20:42 Excel Workbooks
-rw-rw-rw-@ 1 pdf3 admin 16862554 May 29 2012 Group Shot.psd
drwx------@ 53 pdf3 staff 1802 Sep 19 15:17 Library
0: group:everyone deny delete
drwx------+ 6 pdf3 staff 204 May 28 2013 Movies
0: group:everyone deny delete
drwx------+ 8 pdf3 staff 272 Feb 24 2014 Music
0: group:everyone deny delete
-rw-rw-rw-@ 1 pdf3 admin 117444 Jul 21 2008 P6M-2 In Close copy.jpg
-rw-r--r--@ 1 pdf3 admin 46473 Aug 16 14:50 PW-M-1 Overlay Budget.xlsx
drwx------+ 65 pdf3 staff 2210 Nov 5 11:43 Pictures
0: group:everyone deny delete
drwxr-xr-x+ 5 pdf3 staff 170 Jan 24 2012 Public
0: group:everyone deny delete
drwxr-xr-x 6 pdf3 admin 204 Mar 10 2014 Sound Transit Bel-Red Cost Estimate
drwxr-xr-x 34 pdf3 admin 1156 Sep 21 09:24 WW II Songs & Opera #1
-rw-r--r--@ 1 pdf3 admin 172859 Feb 25 2014 photo 1.JPG
-rw-r--r--@ 1 pdf3 admin 172859 Feb 25 2014 photo 3.JPG
Davids-Mac-Pro:Desktop pdf3$
I have no idea what all this stuff means, but I've done a 'disk verify' for both my drives, and the results indicated they were both 'OK'.Dave P. -
Can/How do you save excel files to the cloud?
How, if at all, can you save excel files to icloud?
I think you need to upgrade your MacOS. Mine is running MacOS X 10.8.4.
I am running Numbers '09 v2.3.
Need to sign on to iCloud under Mac Preference Settings.
When I start Numbers, I can view files stored on iCloud, or locally on the Mac harddisk.
Hope it helps. -
How do I save a PDF as an excel file when the PDF is horizontal. Adobe tries to rotate the page, but the data is entered in an horizontal format.
Thanks for the quick reply. I figured out how to get the desired results by using tagging. For anyone who may reference this post in the future, I went to "Customize" in the top right corner of Adobe, then selected "Create new tool set...", looked under "accessiblity and found the "tag" option. Hit ok, tag is added to the toolbar. Then I highlighted the dataset in the PDF that was relevant to the output format, then clicked "tag", saved as spreadsheet. Sorry I can't provide more details on how tagging works or if there's a more elegant solution available, but I'm sure one's out there.
-
How to create an Excel file from XML in the Receiver File Adapter Comm Ch
How do I create an Excel file from XML in the Receiver File Adapter Communication Channel? I have my mapping done and I am outputting the file as a comma delimited csv file. However, the target can only process an Excel file (.xls). How can I generate an Excel in XI?
I saw this blog, but I don't know how to create a XSLT transformation.
/people/michal.krawczyk2/blog/2005/12/10/xi-generating-excel-files-without-the-java-nor-the-conversion-agent-not-possible
Any help would be appreciated. Thanks.Here are the steps I took to create an XSLT transformation in XI 3.0:
1. I created my source and target XSDs using XMLSpy.
2. I created the XSLT mapping from source to target in XMLSpy (referencing the souce XSD schema).
3. I created another XSLT mapping to format the target into Excel XML.
4. Import the source and target XSDs in the IR's External Definitions
5. Zip each XSLT mapping (.xls) and import it into the IR's Imported Archives
6. Reference the XSL mappings in the Interface Mapping -
How to read a passward protected excel file with the help of database connectivity tool kit
hi, i was reading an excel file with the help of database connectivity tool kit in labview 8.0
i made tabels in the excel file nand made odbc connection and specified the workbbok name.
now my problem is how to read the same file if i specife a pasword to that excel file ?Hi,
Check out this thread about opening a password-protected Excel file using ActiveX. This should take care of it for you!
Amanda Howard
Americas Services and Support Recruiting Manager
National Instruments -
can you give me a example vi for it ?thanks a lot!
how to auto insert a number array with size of 20 into a named excel file with the positon is from A1 TO A20?i use lv6.1You don't need us to give you an example, as the example already comes with LV. Go to Help>>Find Examples and search for "excel". You will find an example called "write table to XL". You should note that the example doesn't do that exactly, because it writes a 2D array from 2 to N.
You can modify the example by using only one for loop (instead of nested loops) with a 1D array or by going into the Set Cell Value and modifying it to accept a second cell value for the Cell2 terminal and wiring in a 1D array instead of the single string. If you do modify it, be sure to save it under a different name, so you don't overwrite the original.
To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).
Try to take over the world! -
How to edit a spreadsheet (excel file) in the portal?
Hello experts,
at the moment i am working on the requirement to edit a spreadsheet in the portal.
Until now i was able to display an excel file with the help of the 'KM Document iView (without content filter)'.
Everything is displayed alright and i can perform changes in the spreadsheet.
BUT: There is no such thing like a Save-Button or something like that. Does the SAP NW Portal already provide a solution for this requirement? Or will i have to develop an own application?
I have already searched the forums and sap help, but i haven't found any solution. I can't imagine that such an easy requirement would need coding.
Best Regards
Marcus
(Po*nts will be rewarded for good answers)Hi Marcus,
I do not think you can do the task the way you want. You will have to look for some workaround that may be download the file, edit it and then upload it back. You will have to code in your application for that. If you want to do this way I can help you further to edit and save the excel.
Regards.
Rajat -
How to open a excel file in WLS 8.1 server.
Dear Sir,
I have created a excel file in WLS 8.1 Application server.
Now I used method as redirectURL(req,resp,Population.xls) to open that file but it failed to open it.
If I give the full path as 'D://USER_OBJETS/APPLICATION/Population.xls'
but it tried to open from client PC not from the server.
so the problem, I managed to create file in server but unable to open it.
Kindly advise how to resolve this problem.
Thanks and Rgds,
Anandan-Singapore.Are you asking in general how to read an Excel file using ActiveX, or are you asking specifically? If you're asking in general, please do a search, as there have been many examples posted on how to use ActiveX to read/write Excel files. There are also numerous links in the Excel thread.
-
Inputting an excel file to the java servlet program
Hi,
How can I input an excel file into the java servlet program? I am using POI HSSF programming to read the content of that excel file.I have created a form that will accept the path from the user and in the servlet program, I have called a post method to retrieve the path of the file. I am getting the path of the file as a string.Then I have to access the file to read the data. But it is not working. What should I do?.Please help me.
I have created an html file to create a form that will ask the path of the file to be loaded into the servlet program.Please give me a solution,thanks in advance. The servlet program that receives the file is shown below. It just only take the name of the file and prints if that is ok.
<html>
<body bgcolor="green">
<center>
<form method="post" action="http://localhost:8080/examples/servlet/Ron1">
<table>
<tr>
<td><B>ENTER THE PATH OF THE FILE</td>
<td><input type=file name="path"></td>
</tr>
</table>
<input type=submit value= "submit" >
</form>
</body>
</html>
import java.io.*;
import javax.servlet.*;
import java.lang.*;
import javax.servlet.http.*;
import java.sql.*;
import java.text.*;
import java.util.*;
import com.oreilly.servlet.MultipartRequest;
import org.apache.poi.hssf.usermodel.*;
public class Ron1 extends HttpServlet
public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
response.setContentType("text/html");
PrintWriter out = response.getWriter();
String u = request.getParameter("FileToUpload");
out.println("The Path is "+u);
System.out.println("The path is "+u);
MultipartRequest multi = new MultipartRequest(request,u,10 * 1024 * 1024);
System.out.println("path is "+u);
Enumeration files = multi.getFileNames();
File fUploadedFile = null;
String sFileName = "";
out.println("path is "+u);
while(files.hasMoreElements())
String name = (String)files.nextElement();
out.println("file is "+name);
sFileName = multi.getFilesystemName(name);
String type = multi.getContentType(name);
fUploadedFile = multi.getFile(name);
FileInputStream fis= new FileInputStream(fUploadedFile);
HSSFWorkbook wb=new HSSFWorkbook(fis);
System.out.println("The path is "+u);
out.println("File has identified successfully\n");
out.close();
}Hi,
Can you try to use classes from java.net package (URL, URLConnection) to pass the contents of excel file to servlet?
HTH
Vishal -
How to upload an excel file using ABAP.
Hi,
Can anyone please help me in understanding how to upload an excel file using ABAP.
Thanks!!http://diocio.wordpress.com/2007/02/12/sap-upload-excel-document-into-internal-table/
check the link
TYPES: Begin of t_record,
name1 like itab-value,
name2 like itab-value,
age like itab-value,
End of t_record.
DATA: it_record type standard table of t_record initial size 0,
wa_record type t_record.
DATA: gd_currentrow type i.
*Selection Screen Declaration
PARAMETER p_infile like rlgrap-filename.
*START OF SELECTION
call function ALSM_EXCEL_TO_INTERNAL_TABLE
exporting
filename = p_infile
i_begin_col = 1′
i_begin_row = 2′ Do not require headings
i_end_col = 14′
i_end_row = 31′
tables
intern = itab
exceptions
inconsistent_parameters = 1
upload_ole = 2
others = 3.
if sy-subrc <> 0.
message e010(zz) with text-001. Problem uploading Excel Spreadsheet
endif.
Sort table by rows and colums
sort itab by row col.
Get first row retrieved
read table itab index 1.
Set first row retrieved to current row
gd_currentrow = itab-row.
loop at itab.
Reset values for next row
if itab-row ne gd_currentrow.
append wa_record to it_record.
clear wa_record.
gd_currentrow = itab-row.
endif.
case itab-col.
when 0001′. First name
wa_record-name1 = itab-value.
when 0002′. Surname
wa_record-name2 = itab-value.
when 0003′. Age
wa_record-age = itab-value.
endcase.
endloop.
append wa_record to it_record.
*!! Excel data is now contained within the internal table IT_RECORD
Display report data for illustration purposes
loop at it_record into wa_record.
write:/ sy-vline,
(10) wa_record-name1, sy-vline,
(10) wa_record-name2, sy-vline,
(10) wa_record-age, sy-vline.
endloop. -
How to store an Excel file in InfoPath for users to edit
Hello,
I need an example on how to store an Excel file within InfoPath 2010 so that every time a user opens the InfoPath form they can make changes and can save as part of the form. The next user opens the form and another Excel files (blank) where they make changes and
saves. ThanksStreamlining this would require a bit of custom work I imagine. However if you don't mind giving the users some extra clicks, there are probably a few ways to get the job done.
You could upload the excel file to SharePoint, make sure it's read-only and link to it within the InfoPath form. Then the process would be that users open the InfoPath form, fill it out, download the excel doc to their desktops and fill it out, and then
attach it to the IP form.
Or you could set up a separate, sister library where the New Item defaults to your Excel template. Then from within the InfoPath form you could have a hyperlink that creates the new item, saving it to the library. The caveat here is finding a way to link
to the two items together with a unique identifier. The benefit though is being able to browse and interact with Excel docs independent of the forms they are attached to, if necessary. -
How to read an excel file in webdynpro application
Hello Experts,
Can someone please tell me how to read an excel file in a webdynpro application?
There is a tutorial for how to write contect into an excel, but i want to read the excel.
Can someone help please !!
Thanks and Kind regards,
G.Singh.Hello Experts,
I have done all the given above.
I want to read a excel file from KM. My code is as below
ResourceContext resourceContext = buildResourceContext();
IResourceFactory resourceFactory = ResourceFactory.getInstance();
RID pathRID = RID.getRID("/documents/ExcelReport.xls");
IResource resource = resourceFactory.getResource(pathRID, resourceContext);
Workbook wb = Workbook.getWorkbook(resource.getURI().getPath());
Sheet sh = wb.getSheet(0);
int columns = sh.getColumns();
int rows = sh.getRows();
wdComponentAPI.getMessageManager().reportSuccess(" Rows: " + rows);
wdComponentAPI.getMessageManager().reportSuccess(" Columns: " + columns);
This does not give me the excel file form the KM
Can you please just what i can do at this point?
Kind Regards,
G Singh. -
Hi ,
I amwriting a BDC Program..
How to import a Excel File by Browsing the Excel file from the Directory and Storing that values in the internal table.
Can any one send the code for this,
Points will be awarded.
Regards,
Jayasimha Jangam.Hi,
Create a select parameter. at selection screen, use FM F4_FILENAME to get the dialog box.
see the sample code.
*& Form display_dialog
To display the pop up dialog box
FORM display_dialog.
Calling FM to display File Select dialog box
CALL FUNCTION 'F4_FILENAME'
EXPORTING
program_name = syst-cprog
dynpro_number = syst-dynnr
FIELD_NAME = ' '
IMPORTING
file_name = p_file .
ENDFORM. " display_dialog
FORM upload_data.
DATA : lt_itab TYPE STANDARD TABLE OF alsmex_tabline,
ls_itab TYPE alsmex_tabline,
ls_upload TYPE ty_upload_data.
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
filename = p_file
i_begin_col = 1
i_begin_row = 2
i_end_col = 5
i_end_row = 50000
TABLES
intern = lt_itab[]
EXCEPTIONS
inconsistent_parameters = 1
upload_ole = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE i000 WITH text-t04.
LEAVE LIST-PROCESSING.
ENDIF.
CLEAR ls_itab.
LOOP AT lt_itab INTO ls_itab.
CASE ls_itab-col.
WHEN 1.
ls_upload-matnr = ls_itab-value.
WHEN 2.
PERFORM convert_to_decimal USING ls_itab-value.
ls_upload-bmeng = ls_itab-value.
WHEN 3.
ls_upload-idnrk = ls_itab-value.
WHEN 4.
PERFORM convert_to_decimal USING ls_itab-value.
ls_upload-menge = ls_itab-value.
WHEN 5.
ls_upload-meins = ls_itab-value.
ENDCASE.
AT END OF row.
APPEND ls_upload TO gt_upload.
CLEAR ls_upload.
ENDAT.
CLEAR ls_itab.
ENDLOOP.
Deleting the contents of internal table
FREE lt_itab.
Maybe you are looking for
-
169.254.x.x and limited wireless connection
Hi, I'm having some problems with my wireless network. I have a WRT54G router set up and 2 computers that connect to it wirelessly. My new laptop with vista can connect to my router and works well. My pc with xpsp2 does connect to my router but it ha
-
Can i use airport with other software than itunes?
I have my living room speakers connected to my Airport Express. I can listen to my iTunes music playing it on my MacBook Air and I can use my iPhone to control it with Remote App. But I can't use any other software to send sound to my speakers throug
-
Fundamnental question on jdbc sender adapter
Hi , I have a scneario like DB System ³ JDBC Adapter ³ XI -³ RFC Adapter ³ SAP R/3 --³ True ³ response thru same RFC adapter ³ XI BPM will call JDBC Apdapter with Update statement
-
Getting the message "Error generating preview" when building the installer.
I'm getting this error when attempting to expand the application in the installer. However, I am able to preview the built application without errors. Please see the attached screen shots. I have built this application several times before without
-
Lightroom 3 freezes at startup
I have Lightroom 3 on an IMAC with 4 GB memory. Up to a few days ago it was working properly. A few days ago someone disconnected a photo flash card while it was loading into Lightroom. I suppose that might have caused the trouble because since then