How do I get the last COLUMN in an Excel Sheet using Report Generation toolkit in LV7.1?
I am trying to get the last column in an Excel sheet using the Report Generation toolkit. The function "Excel Get Last Row" does not give last column info. Is there a function that will do this?
Thanks
Hello –
I think the following example program might be helpful to get you started programming your application.
Get Excel Data from Specified Field.
Hope this helps!
SVences
Applications Engineer
National Instruments
Similar Messages
-
How to populate the last empty row in Excel without using Report Generation Kit
I wrote a Labview SUb Vi that uses Report Generation Toolkit that is not loaded on the test stand. I am looking to convert it from Report Generation Vi like New Report, Append Table to Report, Dispose Report. The tunneling through all the report generation Vis seems extensive. Code is attached. Thanks, Greg
GregThank you that was a big help...
I used the Excel Forum to get a lot of great ideas. My code is almost working.
There is a 2-D String Array that represents the String data that I am exporting to the Excel File Sheet 1 - 5.
I am attempting to determine the last populated row in sheet 1 then populate the next row of Sheet 1. Since all 5 sheets are populated every time, I should not have to search every sheet for the last row.
I am getting two row populated on sheet 1 with seeming the same data.
I found an AXExcelWrite2D ArrayWorksheet.vi that I thought would work. I think there is a Table determination that is causing me problems. The link is http://lavag.org/topic/13324-labview-and-excel-activex-or-ado/. The Application Invoke Node has a convert formula with "FromReferenceStyle" with R1C1 Attached to it. I am not sure what this function is doing. When I try to bring the function help up, there is a missing file.
I am including both the new active x vi and the report generation vi. Report Generation VI works.
I would appreciate any assistance I can get on this.
Thanks
Greg
Greg
Attachments:
REPU Test Data Population using Active X Write Save.vi 92 KB
REPU Test Data Population.vi 60 KB -
How to get the Last cell in HSSFCell (Excel sheet)
Hello
I am trying to convert an excel sheet to a tab limited file.
I am using HSSF and unable to track how do i know if the cell encountered is a last filled cell in excel sheet
Some of the cells in the sheet can be blank. In that case i am just using inputting a '\t' for that cell and read the next one. But coz of this when i get the last cell, a tab is included for that too.
Can someone let me know how can i rectify this?
it seems like HSSFCell does not have any methos like lastCell or so
Thanxthen use getLastCellNum() in org.apache.poi.hssf.usermodel.HSSFRow
-
How to get data from an existing Excel file using report generation toolkit
I'm trying to use the Excel Get Data vi from the report generation toolkit, but i can't figure out how to turn a browsable path into the right type for the VI. I've tried using the New Report.vi, but that doesn't work unless you use a template. It won't open an existing excel file and make it an open report to pull data from.
Essentially, i have a bunch of excel files that have data in them and i want to use a VI to analyze the data. So, i'm trying to pull in all the data directly from the excel file so i don't have to reproscess them all into text so i can use the more standard spreadsheet VIs. But to even convert the excel file programtically in labview won't i still need to be able to open the excel file and get the data?
Solved!
Go to Solution.I C.
Got it,
the reason why I can view it using my Excel file because its in .CSV.
I open Microsoft Excel to open .CSV file.
But you can also open .csv file with notepad.
So, you cannot open .xls with Read Spreadsheet File
I learn something everyday
Best regards,
Krispiekream -
VBS:How can i determine the last row of an excel-sheet
I want to replace the chn-comments of an datafile. I pick up the chn-names and want to compare them with an excel-file and so get from the excel-file the right chn-comment and store int back in the datafile. my problem is how can i determine where the excelfile-row is on the end to load the loopounter with corr values.
i know one solution via scan on ascii 13 and 9.but bether is to know immediately the length of the column.
answers also in german possible.Peter,
Are you using DIAdem's Excel Import Wizard? By "Excel file" do you mean a tab- or comma-delimited ASCII file that Excel can read in easily, or do you mean a file with the extension "*.xls"? You certainly could not search through an *.xls file to find CR/LF characters.
If you use the ASCII or Excel Import Wizard to create an *.STP file for the "Excel" file in question, then after the *.STP file is loaded you have access to a whole range of variables, starting with Ascii... or Excel... which completely outline the structure of the ASCII or Excel file, including things like the row in which the channel comments are, etc.
Why don't you send over your Excel file and I'll be able to help you a lot better.
Regards,
Brad Turpin
NI -
How to get the last column info of the given table
Hi All,
I want to get the last column information like :
column name, datatype of the last column in the given
table use PL statement. Please help.
Thanks,
JPSCOTT@orcl SQL> desc emp
Name Null? Type
EMPNO NOT NULL NUMBER(4)
ENAME VARCHAR2(10)
JOB VARCHAR2(9)
MGR NUMBER(4)
HIREDATE DATE
SAL NUMBER(7,2)
COMM NUMBER(7,2)
DEPTNO NUMBER(2)
SCOTT@orcl SQL> select column_name, data_type from user_tab_columns
2 where table_name = 'EMP'
3 and column_id = (select max(column_id) from user_tab_columns
4 where table_name = 'EMP');
COLUMN_NAME DATA_TYPE
DEPTNO NUMBER
SCOTT@orcl SQL> -
How can I get the last updated email address of the customer ??
Dear All,
Please let me know, How can I get the last updated email address of the customer ??
Also, I am trying to read CDHDR table where OBJECTCLAS is ADRESSE, however what value should be passed into OBJECTID field, looks like it is ADRNR with a Suffix BP.
Please confirm me what value should be passed into OBJECTID field.
Thank you.
AnithaHi Anitha,
Check if this is something that helps you:
Change documents in BAS
CDHDR
address type 1
objectclass = ADRESSE
objectid = addrgroup + addrnumber (ADRC-ADDR_GROUP + ADDRNNUMBER) !!
'BP 000xxxxxx'
private address (address type 2)
objectclass = ADRESSE2
objectid = 'BP 000xxxxxx000yyyyyyy'
persnumber+adrnr private
address type 3
objectclass = ADRESSE3
objectid = 'BP 000xxxxxx000zzzzzzz'
persnumber +comp.address
The above details is from the link: http://wiki.sdn.sap.com/wiki/display/ERPLO/LO-MD-BP
Regards,
Swarna Munukoti -
I have an Ipod touch updated to last available ios 4.2.1.
How can I get the last compatible versions of the apps?
In the appstore there are only the lat app versions, most of them are incompatible with my device.
I know that previous versions of these apps were compatible with my ipod.
Can all download them someway?
thanksThe problem is: I never had the compatible versions. But I want them, I'd buy them if I could.
So I'm stuck with my Ipod, which can't be upgraded anymore to higher IOS versions, and with the appstore, that does not offer older versions; versions that have existed and still exist, perhaps in the recycle bin of some users, or somewhere in the appstore servers.
I know, its a policy, just to sell more devices. Will not work with me. I'm not buying more Ipods -
How do I get the last changed date & time of a file in app server?
Hi Experts,
How do I get the last changed date & time of a file in app server?
Thanks!
- Anthony -Hi,
that's what I use...
CALL 'C_DIR_READ_FINISH'. " just to be sure
CALL 'C_DIR_READ_START' ID 'DIR' FIELD p_path.
IF sy-subrc <> 0.
EXIT. "Error
ENDIF.
DO.
CLEAR l_srvfil.
CALL 'C_DIR_READ_NEXT'
ID 'TYPE' FIELD l_srvfil-type
ID 'NAME' FIELD l_srvfil-file
ID 'LEN' FIELD l_srvfil-size
ID 'OWNER' FIELD l_srvfil-owner
ID 'MTIME' FIELD l_mtime
ID 'MODE' FIELD l_srvfil-attri.
* l_srvfil-dir = p_path .
IF sy-subrc = 1.
EXIT.
ENDIF." sy-subrc <> 0.
PERFORM p_to_date_time_tz
USING l_mtime
CHANGING l_srvfil-mod_time
l_srvfil-mod_date.
TRANSLATE l_srvfil-type TO UPPER CASE. "#EC TRANSLANG
PERFORM translate_attribute CHANGING l_srvfil-attri.
CHECK:
NOT l_srvfil-file = '.',
l_srvfil-type = 'D' OR
l_srvfil-type = 'F' .
APPEND l_srvfil TO lt_srvfil.
ENDDO.
CHECK NOT lt_srvfil IS INITIAL.
pt_srvfil = lt_srvfil.
FORM p_to_date_time_tz USING p_ptime TYPE p
CHANGING p_time TYPE syuzeit
p_date TYPE sydatum.
DATA:
l_abaptstamp TYPE timestamp,
l_time TYPE int4,
l_opcode TYPE x VALUE 3,
l_abstamp TYPE abstamp.
l_time = p_ptime.
CALL 'RstrDateConv'
ID 'OPCODE' FIELD l_opcode
ID 'TIMESTAMP' FIELD l_time
ID 'ABAPSTAMP' FIELD l_abstamp.
l_abaptstamp = l_abstamp.
CONVERT TIME STAMP l_abaptstamp TIME ZONE sy-zonlo INTO DATE p_date
TIME p_time.
ENDFORM. " p_to_date_time_tz
Regards,
Clemens -
(JTable) How can i get the first columns cell in a selected row?
Hello. I am trying to figure out how i can get the first columns cell within a selected row no matter what cell is selected in that row. I have a class that extends AbstractTableModel which represents the table. Now i have another class that extends DefaultSelectionModel. Each model is added to the JTable via setModel(TableModel dataModel), setSelectionModel(ListSelectionModel newModel). Now i don't understand what i have to return from getMaxSelectionIndex(). Any ides? Thanks.
class xTableModel extends AbstractTableModel{
private static String[] cols;
private Object[][] data;
public void setTableModel(Object data[][], String[] cols){
this.cols = cols;
this.data = data;
public String getColumnName(int col){
return cols[col];
public int getRowCount() {
return data.length;
public Object getValueAt(int row, int col) {
return data[row][col];
public void setValueAt(Object value,int row,int col){
data[row][col]=value;
public int getColumnCount(){
return cols.length;
class ColumnListenerModel extends DefaultListSelectionModel{
public int getMaxSelectionIndex(){}int row = table.getSelectedRow();
Object data = table.getValueAt(row, 0); -
Hello....
I want to get the last date of the month.
For example, the last date of Jan is 31.
How can I get the last date of the particular month and year ????
Thanks for help.
GloriaHi Gloria
1. How can I compare the date???date1.compareTo(date2)
where date1 and date2 is a java.util.Date Object
will return 0 if it is the same date
or
date1.after(date2)
where date1 and date2 is a java.util.Date Object
will return true if date1 is after date2
(the same for date1.before)
2. How can I change the date format into yyyymmdd format???? I just want the year, month and date.try the java.text.SimpleDateFormat Object
new SimpleDateFormat("yyyymmdd").format(yourdate)
Hope this help.
Please also have a look at a calendar I wrote, (maybe it help)
demo & source :
http://www.geocities.com/globe_software/java/components/
globe_sa -
How can i get the lasted vision of visual administrator
HI:
when i connet j2ee engine,i get the system warning:
"visual administrator vision is older than the version of j2ee engine kernel: ..."
how can i get the lasted vision of visual administrator?Get your portal administrator to copy the j2ee/admin from the server you're trying to connect to. You can then install and run it from your local hard drive.
-
How do I get the list of 1st level planned orders using msc_full_pegging table, is any one having the script.
Do you mean supply_type? If so, yes it will be in pegging table as supply_type or otherwise you can join this table with msc_supplies by joining transaction_id column and get the order_type from that which will be the supply type.
Thanks,
Abhishek Sharma
P.S:- Try opening the discussion in a separate window and see if you get the option to mark it correct or helpful, -
I lost my iTunes library on my pc when the hard drive crashed. None of the data on the drive was recoverable and I did not have a backup either locally or on the cloud. Much of the music is from old vinyl and podcasts which are no longer available.
How can I get the music that resides on my ipod nano (4th generation) back onto the new hard drive on my pc.
I have been reluctant to install iTunes on the new hard drive out of fear that I will lose all the contents on the ipod if I try to synch to the new hard drive.
Help!No backup is a huge mistake.
You can redownload some itunes purchases in some countries:
Downloading past purchases from the App Store ... - Apple - Support -
I have the new 2011 macbook pro, with lion preinstalled. I want to change the harddrive. I have backed up everything on time machine. when i put my new blank hard drive in will the lion screen startup.How do i get the lion dmg when i am already using lion
NicholasLiban -
When you use the Lion restore as described, it does a fresh install on the hard drive that you can select at the beginning of the process. This provides a complete install of the very latest version of Lion, including the recovery partition. The drive that you choose for the installation destination winds up like what you would have on a brand new computer from Apple.
- Randy
Maybe you are looking for
-
Hi I am new to workflow and i am having one requirement. Business Objective: Currently, the buyer can modify the per unit price negotiated with the vendor and input the new value whlie creating a PO. The organization intends to stop this practice and
-
Using discoverer with Oracle Text
I thought Discoverer would be able to intereact with Oracle intermedia/text indexes...can they? i.e. If there is an Intermedia Index, and the user know it is there but doesn't know the tags to query, can you point Discoverer to the index and it'll de
-
Usage of Back button in Nested Iview
Hi, I have redesigned my model from one iview to an iview with several nested iviews. In my main iview I have multiple layers. When I didn't use nested iviews (situation before) the "go back" button which was defined on multiple forms with the system
-
Hi, We had error while building Web templates in WAD7.0. First we got error while executing the template in the portal <b>"metadata CHART_ITEM are incorrect for parameter "LEGEND_ONLY".</b> So when I tried to activate the standard web items in the BI
-
Regular expressions: the shorter the string, the longer the time to analyse
Hello there ! I've got a problem with regular expressions... I analyse those two strings with the same regular expression, searching for the "message" word. The first of them, which is much longer than the other one, is instantly analysed... but the