Exporting data in tables to an Excel spreadsheet?
Is there a script or another way to export or save a documents tables (multiple tables over several pages) to an excel spreadsheet? I have found a solution which involves exporting each spread as a html file which i can then open straight in excel but this is still quite long winded and i can only seem to do this a spread at a time. As the job I am working on involves many pages this is taking too long. Surely there must be a script which can automate this in some way. I am fairly new to scripting so any help will be grateful. I have searched in scripting but nothing has really come close to what i am trying to achieve. Indesign CS5.5 user.
Thanks for the quick response. I thought it was an applescript because of the word "applescript" within it. Now I'm running it as a jsx. However in my real document with nothing selected, it selects only one table on page 3 to export. I created a new test document with three tables in separate text boxes on one page, and the script only exports the first one. I put the three tables in one big text box (one story), and still it only exports the first one. I tried selecting the second table in the story and ran the script again, but it still just exported the first table.
What I am hoping for is a script that will export every table to a single excel spreadsheet. Here is an example of the dummy tables with the legend in the first column and the data in the second column. I don't mind if the script exports the legend every time; I can repmove those columns in the excel file.
1
a
2
b
3
c
4
d
5
e
6
f
7
g
8
h
1
i
2
j
3
k
4
l
5
m
6
n
7
o
8
p
1
q
2
r
3
s
4
t
5
u
6
v
7
w
8
x
Similar Messages
-
Export Data in Table Control to Excel
Hi Folks -
Here is what I thought would be a simple task. I want to use the run-time shortcut menu to export data to excel from a table control, which is an option in the default menu.
The two things I would like to be able to do are:
1) Either the whole table including the headers or
2) Perform a selection of rows during run-time to export to excel
From a prior discussion, it appear that there is a bug in this functionality. When I tried to create my own code to perform the selection programmatically, my table was resized to a thumbnail while running the VI, and the export still not work properly.
http://forums.ni.com/t5/LabVIEW/Export-table-to-excel/m-p/1089007#M481882
Any further thoughts on this are appreciated. I have some workarounds but would like to see this working.
Attachments:
test.vi 8 KBDonRothGE wrote:
Hi Folks -
Here is what I thought would be a simple task. I want to use the run-time shortcut menu to export data to excel from a table control, which is an option in the default menu.
The two things I would like to be able to do are:
1) Either the whole table including the headers or
2) Perform a selection of rows during run-time to export to excel
From a prior discussion, it appear that there is a bug in this functionality. When I tried to create my own code to perform the selection programmatically, my table was resized to a thumbnail while running the VI, and the export still not work properly.
http://forums.ni.com/t5/LabVIEW/Export-table-to-excel/m-p/1089007#M481882
Any further thoughts on this are appreciated. I have some workarounds but would like to see this working.
First, try to save to the oldest version of VI you can so that the most people are able to view your VI.
Not everybody has the latest LabVIEW installed. Strange but true.
Second, I opened your VI and I don't see anything except a While loop and a Stop button with a Table control. No other code.
I have no clue what you are doing with regards to "perform the selection programmatically".
Anyway, I select cells on the Table control using Property Node Selection Size and Property Node Selection Node and the Invoke Node to export the data to Excel, it works for me.
Excel opens up and I see one worksheet which is populated with the values from the Table control.
I have Excel 2010.
However, it looks like you will need to manually save the opened Excel file. -
Export data on pdf-form to Excel
I would need help for exporting data from pdf-form to Execl spreadsheet
the basic idea is that a pdf-form would be the user interface to collect the data with text boxes / drop-downs (such as "Vendor", "Purchase order number", "Date", "Text" etc.) and after the data is filled on the pdf-form it would be easily exported (with button?) to one certain Excel -file.
The Excel-file should have similarly named colums and the data from pdf-form would be exported always to the next empty row.
PDF FORM
Excel -spreadsheetThanks but this is not quite what I was looking for
The idea was that the user would fill-in the data on the pdf -form and from there this data would be exported to one named Excel-file ( = data exported always to same Excel - file / to the next empty row)
So this Excel -file would act as a summary file / database from where the collected data could be easily sorted etc.
Another issue is that I'm looking for easy solution for the exporting fuction (e.g. button + java script) so that also the "dummy users" could operate this -
Export data from an iView to Excel, get a login screen displayed in Excel
Hi
I'm trying to export data from a tableview to excel, I followed the instruction posted by Detlev Beutner, created a class extends AbstractPortalComponent, and overwrote the doOnNodeReady:
HttpServletResponse response = request.getServletResponse(true);
response.setContentType("application/vnd.ms-excel");
response.setHeader("Content-Disposition", "filename=\"text.xls\"");
I did write some test output in doContent:
aResponse.write("Filed11,Filed12,Field13");
aResponse.write("Field21,Field22,Field23");
I was hoping to see the excel to display the content "Field11 Field12...", but I got a portal login screen displayed in Excel.
Does anyone have the same experience and and idea on this?
Thanks
YutongSure, here is the sample code for method doOnNodeReady
protected void doOnNodeReady(IPortalComponentRequest request,
IEvent event)
//set http content type to excel format
HttpServletResponse response = request.getServletResponse(true);
response.setContentType("application/vnd.ms-excel");
response.setHeader("Content-Disposition", "attachement;filename=\"abc.xls\"");
java.io.PrintWriter out = response.getWriter();
// print out the header
out.print(headerSubject + "\t");
out.print(headerDueDate + "\t");
// then print out your data
out.close(); -
Error while exporting data from sql server to excel
Hi,
I am trying to export data from sql server to excel.
The query that I used is s follows
INSERT INTO OPENROWSET( 'Microsoft.Jet.OLEDB.4.0', 'Excel 8.0;Database=C:\Folder1\abc.xls','select * from [Sheet1$A1:IV65000]')
select
column1,column2.... from Table1
I get the following error message while doing so..
String or binary data would be truncated.
The statement has been terminated.
One of the column's holds data more than 225 characters.
What is the way to correct this, i want the whole data of the colum in the excel sheet.I haven't had great luck with the INSERT INTO OPENROWSET method. Can you try one of the many samples from one of these 3 links?
http://www.excel-sql-server.com/excel-sql-server-import-export-using-vba.htm#Excel%20Data%20Export%20to%20SQL%20Server%20Test%20Code
http://www.mssqltips.com/sqlservertip/1540/insert-update-or-delete-data-in-sql-server-from-excel/
https://www.simple-talk.com/sql/database-administration/getting-data-between-excel-and-sql-server-using-odbc--/
Knowledge is the only thing that I can give you, and still retain, and we are both better off for it. -
Exporting data into multiple tabs of Excel from OA Framework Page.
Hii,
I have a requirement like exporting data into multiple tabs of Excel from OA Framework.
Like One Quarter Data should be in one Excel Sheet, and the Second Quarter data should go into other Excel Sheet, like wise ...
I have tried searching forums, and developers guide, But couldn't find any correct answer on this. If its there on developers guide can somebody point me exactly where it is located.
If someone can help me through this or can guide me through any document in this. It would be really helpful.
Thanks
Prakash.I guess, tabs are not supported in XML publisher as well.
I would be worth checking at with BI publisher forum.
--Prasanna -
How to export data in JSP to MS excel
hi frens..
anyone out there knows how to export data in JSP to Ms excel .. i already add this code inside my jsp..
<%@ page contentType="application/vnd.ms-excel" %>i need to retrieve the data from the database to excel.. it's something like a report display in the excel.set the response type as....
response.setContentType("application/vnd.ms-excel");
U must be geting the data from the database...
get the data ...
rs=st.executeQuery(sql);
where sql is ur query and use it as usual.... -
Exporting data from table to Excel in a particular format using BSP.
Hello all,
I am creating a application in BSP wherein i have to export data to excel sheet.
I am able to do that but the output in excel sheet is not formatted. it is displaying the data in a single
column. For example, the internal table which i am exporting to excel contains fields "product
name", "area name", country name", "values". all these should be displayed in different columns.How
can i achieve this functionality.A sample code will be of great help..
Below is the code i hav written for exporting to excel :
data: l_len type i,
l_string type string,
app_type type string,
file_content type xstring,
file_mime_type type string.
create OBJECT cached_response TYPE cl_http_response EXPORTING add_c_msg = 1.
cached_response->set_data( file_content ).
cached_response->set_header_field(
name = if_http_header_fields=>content_type
value = file_mime_type ).
LOOP AT itab_xls INTO wa_xls.
CONCATENATE L_STRING wa_xls-product_name
wa_xls-area_name
wa_xls-landx
CL_ABAP_CHAR_UTILITIES=>CR_LF INTO L_STRING SEPARATED BY SPACE.
ENDLOOP.
APP_TYPE = 'APPLICATION/MSEXCEL; charset=utf-16le'.
data: l_xstring type xstring.
call function 'SCMS_STRING_TO_XSTRING'
exporting
text = l_string
MIMETYPE = 'APPLICATION/MSEXCEL; charset=utf-16le'
IMPORTING
BUFFER = l_xstring.
Add the Byte Order Mark - UTF-16 Little Endian
concatenate cl_abap_char_utilities=>byte_order_mark_little
l_xstring
into l_xstring in byte mode.
cached_response->set_data( l_xstring ).
cached_response->set_header_field( name = if_http_header_fields=>content_type
value = 'APPLICATION/MSEXCEL; charset=utf-16le' ).
*Set the filename into the response header
cached_response->set_header_field( name = 'Content-Disposition'
value = 'attachment; filename=gkb_excel.xls' ).
*Set the Response Status
cached_response->set_status( code = 200 reason = 'OK' ).
*Set the Cache Timeout - 60 seconds - we only need this in the cache
*long enough to build the page and allow the IFrame on the Client to request it.
cached_response->server_cache_expire_rel( expires_rel = 60 ).
CALL FUNCTION 'GUID_CREATE'
IMPORTING
ev_guid_32 = guid.
CONCATENATE runtime->application_url '/' guid '.xls' INTO url.
cl_http_server=>server_cache_upload( url = url
response = cached_response ).
Can anyone help me with some solution.
Thanks in advance.
Gurmahima.the issue is here
LOOP AT itab_xls INTO wa_xls.
CONCATENATE L_STRING wa_xls-product_name
wa_xls-area_name
wa_xls-landx
CL_ABAP_CHAR_UTILITIES=>CR_LF INTO L_STRING SEPARATED BY SPACE.
ENDLOOP.
instead do the following
LOOP AT itab_xls INTO wa_xls.
CONCATENATE L_STRING wa_xls-product_name ','
wa_xls-area_name ','
wa_xls-landx ','
CL_ABAP_CHAR_UTILITIES=>CR_LF INTO L_STRING .
ENDLOOP.
and then change the file name extension from xls to csv. it should open properly in excel.
Note that this is only excel csv file. if you want a proper excel excel file, then
option one: build a html table with your data into a string and pass it to excel
option 2: build excel xml using your data into a string and pass it to excel.
Regards
Raja -
SSIS: Export data from ODBC source to Excel only 5000 rows at a time
Greetings,
Im inserting data into Excel using SSIS.
Im getting the following exception:
'[Excel Destination [32]] Error: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available. Source: "Microsoft Office Access Database Engine" Hresult: 0x80004005 Description: "Spreadsheet is full.".'
I did some research using the following link:
http://office.microsoft.com/en-us/excel-help/excel-specifications-and-limits-HP010073849.aspx
It states that you can populate the maximum of 1,048,576 rows by 16,384 columns
The data i am importing into Excel is only about 100,000 rows by 5 columns
After doing some research I am now aware that this is to much data for Excel to handle at one time. I was advised to lower the amount of rows SSIS is exporting into Excel........How do I lower the amount of rows to 5,000 at a time is SSIS?Having the maxbufferrowsize
But I have a doubt that it is related. You probably max up the allowed size for your version of Excel.
Arthur My Blog -
Export Data of Tables in Oracle to format DBF
People,
I need your help! I have a question...How I do for to export the a table (data) Oracle to format table in DBF using PL/SQL?
Please, I am waiting an answer...
Thanks a lot
Tavares, MarceloI would probably export to a simple text file (ASCII-delimited or fixed-length fields), then import to Excel and save as Dbase format.
But the following link provides a way to do it directly in PL/SQL:
http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:711825134415 -
Exporting Data Quality Statistics Into An Excel File Or Database
Hi,
I would like to ask if it is possible to export the data profiling statistics into an excel file / flat file or a database table.
The output required by our development team is that we would like to be able to manipulate and review the data profiling outside of the Data Quality Services User Interface.
I'm aware that after the cleansing of a specific set of data is that you can save/export the output results into an excel file or database, however the feature I'm looking for is for the data profiling statistics itself.
Mostly information on the knowledge base. Specifically, how many new records this specific column has and how many unique data and invalid data this column has and etc.
The reason for this is that so we can control and track the data profiling information and be a bit more flexible in creating reports and presenting the data. Using the DQS user interface would not suit our needs
for the project.
Sorry if this has been asked before but i've tried searching around and couldn't find any information regarding this functionality.
Thanks!I'm not too sure where they are stored, but you could use the directories shown in transaction AL11 so find them.
-
I am seeking an app that will record the times I pass several way points and exports the data to an excel spreadsheet. This is so I can record the time it takes to travel between points several times during each day.
MotionX GPS will email waypoint information depending on how you set it up. You will have to manually import the data to Excel though. Depending on your application MotionX has two different apps, MotionX GPS and MotionX GPS Drive. Drive is best suited for automobile and offers live voice guidance, but no real waypoint tracking. MotionX GPS will offer waypoint tracking as well as automatic email based on your settings. It can be used for pretty much any transportation (ie bicycle, hiking, auto, etc.).
-
Exporting data from a multiple worksheet excel to oracle database.
Hi,
Am having a very big problem,i have to export data from excel to database.My excel is havin multiple worksheet.
I thought of most of the options nothing is suiting my layout.
SQL loader ,can't use due to multiple worksheet.
HSServices can;t use because my column headings are row wise,and the excel start with a big Heading rather than having column headings.
UTL_FILE can't use beacuse of multiple worksheet,and frankly speaking i don't know how to use utl file with excel to read paticular cell in excel.
ThanksFirst of all: this is a forum of volunteers.
So no one is obliged to respond to you.
Therefore 'urgent' does not exist in this forum, and labeling your request as 'urgent' is considered rude by many. If it is really that urgent, submit a prio 1 request at Metalink.
Secondly, I don't think you thought of most of the options.
Yes, you can use SQL*Loader as you can dump each individual worksheet to a separate CSV file.
Also, you didn't consider ODBC. If ODBC in Excel is too cumbersome, you can use MsAccess to hook the Excel sheet in Msaccess, connect to the database using the Oracle ODBC driver and design an ordinary append query,
Obviously, you would need one query per worksheet.
Hth
Sybrand Bakker
Senior Oracle DBA -
How to export data to specified format as EXCEL(XXL)
Dear Experts,
Good day!
Who can help me that to export data in SAP by KE30 Transaction Code? We planed to do some things on browser using SAP GUI for HTML and ITS 6.20 in SAP R/3 640. Now, our end-user occur one problem that they need outgoing the data wanted through browser from SAP(Triggered by KE30). In the SAP GUI for Windows, they can do it to export data into specified format (as XXL), but that for HTML can't done. The problem had a message shown below: The presentation server does not function in Windows. Which other way to resolve this? Please tell us, thank you!The XXL export is not supported by Sapgui for HTML(Webgui) via Office Integration. See note: 512068 Office integration and SAP GUI for HTML
However there is a workaround available, this is described in note:
#435769 ALV WebGUI: Excel download by saving into local file
can help you.
(the note is old - but the information in it still holds true)
Please note that the download and upload functionality of the SAPGui for HTML (WEBGUI) requires a Java Virtual Machine.
Please see note 980772 for a list of the supported JVMs.
One can also using the following link to check your current JVM version in your Browser:
http://www.java.com/en/download/help/testvm.xml -
How to export data within tables in Oracle 10g
Since I'm using Oracle 10g, thus I wanted to know that do I have the option for exporting data from one table to another or exporting the whole table to some another databases like SQL Server or any other database.
There are several options, each has different advantages and disadvantages. When both source and target are Oracle;
1. you can use database links across databases -
http://psoug.org/reference/db_link.html
2. you can unload to external tables after 10g and load from external table -
http://tonguc.wordpress.com/2007/08/09/unload-data-with-external-tables-and-data-pump/
3. you can use data pump(expdp/impdp) after 10g -
http://psoug.org/reference/datapump.html
http://psoug.org/reference/dbms_datapump.html
4. you can use traditional export(exp) and import(imp) -
http://psoug.org/reference/export.html
http://psoug.org/reference/import.html
5. you can unload to text with an unloader and use sql*loader to load -
http://tonguc.wordpress.com/2007/09/02/announcement-of-a-new-product-ubsql-from-ubtools/
http://asktom.oracle.com/tkyte/flat/
http://psoug.org/reference/sqlloader.html
for some options you may get the meta information(all table related DDLs) with supplied package DBMS_METADATA;
http://psoug.org/reference/dbms_metadata.html
When source is Oracle 10g and target is non-Oracle you may unload to text from Oracle and use the related text loader utility supplied with the other vendor.
Also Heterogeneous Connectivity is another option between Oracle and non-Oracle systems;
http://download.oracle.com/docs/cd/B19306_01/server.102/b14232/toc.htm
If you need more informations please visit Oracle's documentation for your release and search for the topic you are interested; http://tahiti.oracle.com
Maybe you are looking for
-
Hi, We are getting the following error when running our SSIS packages on Microsoft SQL Server 2012 R2 on Windows Server 2008 R2 SP1: Error: 4014, Severity:20, State: 11. A fatal error occurred while reading the input stream from the network. The se
-
Home Button not working properly after latest update
After installing the latest update on my Iphone 4S, the home button immediately started to give me problems. It works sporadically. Sometimes it allows me to close apps when I tap it twice, sometimes it won't do anything, sometimes it will go to the
-
How to decrease the row height in ALV Grid (OOPS).
HI Experts, I have displayed ALV Grid using CL_GUI_ALV_GRID=>SET_TABLE_FOR_DISPLAY. I want to decrease the row height and width. Can any one suggest how to do this? Regards, Kumar.
-
How can I monitor Status word From the other side of the GPIB bus
I develop Thermal system control that should be operate thru the GPIB IEE 488.2 bus , my instrument application already written in Visual Basic ,The system knowes to do basic operation such as SETPOINT ,AIRDUT , BEGIN , STOP and more but I have do a
-
Dynamic select list as APEX plug-in custom attribute?
I'm developing a region plug-in in APEX 4.0.1. I wanted to make one of the custom attributes a select list where the options offered were the current application list templates (queried from the <tt>apex_application_temp_list</tt> view: the rendered