Problem with reading String from Xlsx file.
Hi! I am trying to read string and numerical data from an xlsx file and trying to display its contents in a word file. I tried converting it to a .lvm file too. On using the "Read From Spreadsheet" tool, I get random characters as output. On using " Read From Measurement File" tool, I am getting an error saying "Error 100 occurred at Read From Measurement File->Untitled 1". What do I do? At the end I need to display the output, row by row, in a Microsoft Word file. I am so lost. Please Help.
Solved!
Go to Solution.
bsvare wrote:
labview currently does not read directly from an xlsx file. If you convert the xlsx to an xls file first, then you can use the read from spreadsheet tool to load the data from the file.
Hey, I tried doing that. It still just gave the values 0.00 in all the cells of the indicator array. Plus my file has string in it also. The data type in the spreadsheet was "general". Here in the tool, it is "Double". I changed the tool data type to string and spreadsheet to text but I only got gibbrish for my efforts.
Thanks anyway!
Similar Messages
-
Problem with reading text from .DOC files through java and POI
I have used a jar file "poi-scratchpad-3.2-FINAL-20081019.jar" and "poi-3.2-FINAL.jar" to read text from a .DOC file. I used the "getParagraphText()" function of the class "org.apache.poi.hwpf.extractor.WordExtractor" to get the text.
I am able to get the text in the .DOC file but along with that i am getting the following messages/warnings
Current policy properties
* thread.thread_num_limited: true*
* file.write.state: disabled*
* net.connect_ex_dom_list:*
* mmc.sess_cab_act.block_unsigned: false*
* mmc.sess_cab_act.action: validate*
* mmc.sess_pe_act.block_blacklisted: false*
* mmc.sess_pe_act.block_invalid: true*
* jscan.sess_applet_act.stub_out_blocked_applet: true*
* file.destructive.in_list:*
* jscan.sess_applet_act.block_all: false*
* file.write.in_list:*
* file.nondestructive.in_list:*
* window.num_limited: true*
* file.read.state: disabled*
* jscan.session.origin_uri: http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/poi/poi/3.2-FINAL/poi-3.2-FINAL.jar*
* file.nondestructive.state: disabled*
* jscan.session.user_ipaddr: 10.136.64.153*
* net.connect_other: false*
* thread.thread_num_max: 8*
* file.destructive.ex_list:*
* file.nondestructive.ex_list:*
* file.write.ex_list:*
* jscan.sess_applet_act.sig_invalid: block*
* file.read.in_list:*
* mmc.sess_cab_act.block_invalid: true*
* jscan.session.policyname: TU1DIERlZmF1bHQgUG9saWN5*
* mmc.sess_pe_act.action: validate*
* thread.threadgroup_create: false*
* net.connect_in_dom_list:*
* net.bind_enable: false*
* jscan.sess_applet_act.sig_trusted: pass*
* jscan.session.user_name: 10.166.64.201*
* jscan.session.user_hostname:*
* file.read.ex_list:*
* jscan.sess_applet_act.sig_blacklisted: block*
* jscan.session.daemon_protocol: http*
* net.connect_src: true*
* jscan.sess_applet_act.unsigned: instrument*
* mmc.sess_pe_act.block_unsigned: false*
* file.destructive.state: disabled*
* mmc.sess_cab_act.block_blacklisted: true*
* window.num_max: 5*
Below the above messages/warnings the data is getting printed. Only the text part of the data is retrieved not the fonts, styles and bullets etc.
Can anyone explain me why I am getting above warnings and how can I remove them. Is it possible to fetch the text depending on delimiters.
Thanks in advance,
Tiijnar
Edited by: tiijnar on May 21, 2009 2:45 AMThe jar files which were used are downloaded from http://jarfinder.com. Those jars created the problem of displaying those messages on console. I downloaded APIs from apache.org and used them in my application. Now my application is running good.
Tiijnar -
I am facing a Problem with reading images from database
Hi everybody..
any help will be most appreciated, I am facing problem with reading images from database. I am pasting my code...
string connect = "datasource = localhost; port = 3306; username = root; password = ;";
MySqlConnection conn = new MySqlConnection(connect); // creating connecting string
MySqlCommand sda = new MySqlCommand(@"select * from management.add_products ", conn); //creating query
MySqlDataReader reader;
try
conn.Open(); // Opening Connection
reader = sda.ExecuteReader(); // Executing my Query..
while (reader.Read())
byte[] imgg = (byte[])(reader["Picture"]);
if (imgg == null)
pc1.Image = null;
else
MemoryStream mstream = new MemoryStream(imgg);
pc1.Image = System.Drawing.Image.FromStream(mstream);
It says Parameter not Valid... i am reading all the images from databaseI agree with Viorel. You are getting the error because the format of the data is incorrect probably because the data was modify. It may not be the reading of the database the is incorrect, but the application that wrote the data into the database. You need
to compare the imgg array data with the data before it was written to the database to see if the data matches. I usually start by comparing the number of bytes which is easier to check then compare the actual to isolate which function is changing the
byte count.
An image is binary data. The standard VS methods for reading and writing data (usually stream classes) default to ASCII encoding which will corrupt binary data. The solution usually is to use UTF8 encoding instead of the default ascii encoding.
Ascii encoding with stream often aligns the data and adds extra null bytes to the end of the data which can produce these type errors.
jdweng -
i am facing problem while reading values from properties file ...i am getting null pointer exception earlier i was using jdeveloper10g now i am using 11g
hi TimoHahn,
i am getting following exception in JDeveloper(11g release 2) Studio Edition Version 11.1.2.4.0 but it works perfectly fine in JDeveloper 10.1.2.1.0
Root cause of ServletException.
java.lang.NullPointerException
at java.util.PropertyResourceBundle.handleGetObject(PropertyResourceBundle.java:136)
at java.util.ResourceBundle.getObject(ResourceBundle.java:368)
at java.util.ResourceBundle.getString(ResourceBundle.java:334)
at org.rbi.cefa.master.actionclass.UserAction.execute(UserAction.java:163)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178) -
To read string from another file
Dear friends
I am working on a project where i need to read log files which are there on my C drive.
I got a folder and from that i need to read string from another folder and name them as URL,TS etc..so any body have any idea about this...I have no idea what you're even trying to do. Can you try explaining your problem more clearly and in more detail?
-
Help! Problem with reading objects from file
I wrote a "Library" program for an assignment, and one of the requirements is that the library store all of its information to file upon exit, and reload this information from file when run.
Well, the writing to file part is working. I'm using a FileOutputStream object and an ObjectOutputStream object. I can tell from the file size of the .dat file that information is going into it.
But what I can't do is read from file. For that, I'm using a FileInputStream and an ObjectInputStream. I keep getting this exception:
java.io.EOFException
at java.io.DataInputStream.readInt(Unknown Source)
at java.io.ObjectInputStream$BlockDataInputStream.readInt(Unknown Source)
at java.io.ObjectInputStream.readInt(Unknown Source)
at Library.readDataFromFile(Library.java:350)
at Library.<init>(Library.java:63)
at LibraryDriver.main(LibraryDriver.java:6)I looked this exception up and it says it's thrown when a data input stream unexpectedly ends....But I am instantiating the input streams just before I try to read from file:
fileInStream = new FileInputStream(libraryFile);
objInStream = new ObjectInputStream(fileInStream);
Object[] objectArray = new Object[objInStream.readInt()];Both input streams have methods that "return the number of bytes that can be read from this file input stream without blocking". Just for kicks, I tried writing that number to the console.
For the FileInputStream, I get 404 bytes.
For the ObjectInputStream, I get 0 bytes.
So I guess it's a problem with the ObjectInputStream? Anyone have any suggestions as to how I can fix this, please?Yep, here's the relevant code from the writeToFile() method:
for (int i = 0; i < libraryAuthors.length; i++) {
currentAlphaAuthorList = libraryAuthors;
for (int j = 0; j < currentAlphaAuthorList.size(); j++) {
currentAuthor = (Author) currentAlphaAuthorList.get(j);
objOutStream.writeObject(currentAuthor);
objOutStream.flush();
objOutStream.close(); -
Problem with reading NOOK from ADE
I finally figured out how to authorize my Nook so that I can transfer a library EPUB from ADE to my Nook, but whatever gets copied is not readable on my Nook. I do not have this problem with my XP computer, which I can no longer go online with, but I have this problem with my 8.1 Windows computer. Help!
hi,
- you can use NFS (if the file is accesible from the XI server)
via shared folder
- you can use FTP but your XI server must be able to log on to this FTP server
- if you use FTP from your local machine the same applies
(your XI server must be able to log on to this FTP)
so try checking firewall settings and connection with your admins first to find out if someone
can log on from the XI server machine to your FTP servers
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a> -
Problem with reading data from screen and inserting in table
hi ther,
im new to abap-webdyn pro. can anyone suggest how to read data from screen and insert into table when press 'ADD' button.
i done screen gui , table creation but problems with action. what the content of acton add.
is ther any link that helps me or tut??
thankx in advance!
regardsHi,
Create a context node for the screen fields for which you want to enter the values with cardinality 1.1.....
Now in the layout of your view bind the screen input fields to that context node(attributes) to the value property of the input fields...
Now in the action of ADD button....
--> go the wizard and select the read node button and select the node which you have created it generates the auto code for you.....
for example if the node is contains aone attribute like MATNR
reading the node from wizard will generate the code as....
DATA lo_nd_matnr TYPE REF TO if_wd_context_node.
DATA lo_el_matnr TYPE REF TO if_wd_context_element.
DATA ls_matnr TYPE wd_this->element_matnr.
DATA lv_matnr TYPE wd_this->element_matnr-matnr.
* navigate from <CONTEXT> to <MATNR> via lead selection
lo_nd_matnr = wd_context->get_child_node( name = wd_this->wdctx_matnr ).
* @TODO handle non existant child
* IF lo_nd_matnr IS INITIAL.
* ENDIF.
* get element via lead selection
lo_el_matnr = lo_nd_matnr->get_element( ).
* @TODO handle not set lead selection
IF lo_el_matnr IS INITIAL.
ENDIF.
* get single attribute
lo_el_matnr->get_attribute(
EXPORTING
name = `MATNR`
IMPORTING
value = lv_matnr ).
here the variable lv_matnr will contain the entered value......
now you can use this value for further process.
Thanks,
Shailaja Ainala. -
Problem with reading numbers from file into double int array...
Okay, this is a snippet of my code:
public void readMap(String file){
try {
URL url = getClass().getResource(file);
System.out.println(url.getPath());
BufferedReader in = new BufferedReader(new FileReader(url.getPath()));
String str;
String[] temp;
int j=0;
while ((str = in.readLine()) != null) {
temp = str.split(",");
for(int i=0;i<temp.length;i++){
map[j] = java.lang.Integer.parseInt(temp[i]);
j++
in.close();
} catch (IOException e) {
System.out.println("Error: "+ e.toString());
map[][] is a double int array. Now, the code is running through each line of the text file (with each line looking like this: 0,3,6,2,2,3,1,5,2,3,5,2), and I want to put the numbers into a corresponding double int array (which is where map[][] comes in). Now, this code WOULD work, except I need to set the sizes of each array before I start adding, but I don't know how to get the exact sizes.. how can I get around this issue?
Message was edited by:
maxfarrarYou can do a two-dimensional ArrayList? That syntax
you wrote didn't work.
I tried doing:
private ArrayList<ArrayList><Integer>> map;
Your syntax is just wrong -- or, this forum software has bug in handling angle brackets.
ArrayList<ArrayList<Integer>>...The closing angle bracket after the second 'ArrayList' is the one generated by the bug. Basically, it should be T<T<T2>> without spaces. Oh, for that matter:
Arraylist<ArrayList<Integer>> -
Problem with reading photos from Photoshop
Hello
I have bought a new camera, a Nikon 3200. I have installed View NX2. I have downloaded Adobe Camera Raw 7.1. I have unzipped the files and I still cannot open my photos from my Creative Cloud Photoshop. Can anyone help.
Kind regards
LisAre you trying to open nikon raw files in photoshop?
Camera Raw comes with Photoshop you didn't need to download it. -
Problem with reading ORDImage from DB
I have table imgtable with
id number
Image ordsys.ordImage
columns and for query
declare
src BLOB;
BEGIN
Select t.image.getcontent into src from imgtable t where t.id = 1;
END;
I receive following erros:
Select t.image.getcontent into src from imgtable t where t.id = 1;
ERROR at line 4:
ORA-06550: line 4, column 12:
PL/SQL: ORA-00904: "T"."IMAGE"."GETCONTENT": invalid identifier
ORA-06550: line 4, column 4:
PL/SQL: SQL Statement ignored
What is my problem?
I have Oracle interMedia 9.2.0.1.0 on Linux system, and I veryfied; ORDSYS.ORDImage have getcontent function that return BLOB.You should be using t.image.getcontent().....
declare
src BLOB;
BEGIN
Select t.image.getcontent() into src from imgtable t where t.id = 1;
END;
Or better yet (since you can access metadata, like mimetype this way):
declare
img ordsys.ordimage;
src BLOB;
begin
select t.image into img from imgtable t where t.id = 1;
src := img.getContent();
end; -
Problem with retriving string from mysql DB
hi,
i am storing kannada (india) string into mysql database, that column is
utf8_general_ci . when saw in db it showing ??????.
while retriving it also printing ?????.
what do with this problme, please help to solve this problem..
thanks
dayahi,
i am storing kannada (india) string into mysql
database, that column is
utf8_general_ci . when saw in db it showing ??????.
while retriving it also printing ?????.
what do with this problme, please help to solve this
problem..
thanks
daya
hi,
i am storing kannada (india) string into mysql
database, that column is
utf8_general_ci . when saw in db it showing ??????.
while retriving it also printing ?????.
what do with this problme, please help to solve this
problem..
thanks
dayayou should store the text (kannada-writing) not within a normal CHAR or VARCHAR field in the MySQL-Database. instead store it in a BLOB-field and then retrieve the String by String out=new String (rs.getBytes()); (the BLOB field is used like a Stream so make the appropriate preparations and it should work!
if not you can alter the above new String to new String(rs.getBytes(),"string-format"); where string-format is the iso-name for your language for instance for western europe "ISO-8859-1" -
Urgent: Problem with reading data from cube.
Hi Gurus,
I am trying to read the data from the cube. Below is my code. It returns nothing. Could any please help me to solve this.
TYPES:
BEGIN OF S_DATA,
Z_CHAR1 like /BIC/CTABLE-ZCHAR1,
Z_CHAR2 like /BIC/CTABLE-ZCHAR2,
Z_CHAR3 like /BIC/CTABLE-ZCHAR3,
Z_FISCPER like /BIC/CTABLE-0FISCPER,
0AMOUNT type p DECIMALS 2,
END OF S_DATA.
data:
i_s_data TYPE s_data,
i_t_data TYPE STANDARD TABLE OF s_data
WITH DEFAULT KEY INITIAL SIZE 10,
c_data TYPE s_data occurs 0 with header line,
i_s_sfc TYPE rsdri_s_sfc,
i_th_sfc TYPE rsdri_th_sfc,
i_s_sfk TYPE rsdri_s_sfk,
i_th_sfk TYPE rsdri_th_sfk,
i_s_range TYPE rsdri_s_range,
i_t_range TYPE rsdri_t_range.
DATA: end_of_data TYPE rs_bool,
clear: i_th_sfc.
g_s_sfc-chanm = 'Z_CHAR1'.
g_s_sfc-chaalias = 'Z_CHAR1'.
g_s_sfc-orderby = 0.
INSERT i_s_sfc INTO TABLE i_th_sfc.
clear: i_s_sfc.
g_s_sfc-chanm = 'Z_CHAR2'.
g_s_sfc-chaalias = 'Z_CHAR2'.
g_s_sfc-orderby = 0.
INSERT i_s_sfc INTO TABLE i_th_sfc.
clear: i_s_sfc.
g_s_sfc-chanm = 'Z_CHAR3'.
g_s_sfc-chaalias = 'Z_CHAR3'.
g_s_sfc-orderby = 0.
INSERT i_s_sfc INTO TABLE i_th_sfc.
clear: i_s_sfc.
g_s_sfc-chanm = 'Z_FISCPER'.
g_s_sfc-chaalias = 'Z_FISCPER'.
g_s_sfc-orderby = 0.
INSERT i_s_sfc INTO TABLE i_th_sfc.
clear: i_s_sfk..
g_s_sfk-kyfnm = '0AMOUNT'.
g_s_sfk-kyfalias = '0AMOUNT'.
g_s_sfk-aggr = 'SUM'.
INSERT i_s_sfk INTO TABLE i_th_sfk.
clear: i_t_range, i_s_range.
i_s_range-chanm = 'Z_FISCPER'.
i_s_range-sign = rs_c_range_sign-including.
i_s_range-compop = rs_c_range_opt-equal.
i_s_range-low = 200601.
i_s_range-high = 200606.
APPEND i_s_range TO i_t_range.
CALL FUNCTION 'RSDRI_INFOPROV_READ'
EXPORTING
i_infoprov = 'ZC_CUBE'
i_th_sfc = i_th_sfc
i_th_sfk = i_th_sfk
i_t_range = i_t_range
i_reference_date = sy-datum
i_save_in_table = rs_c_false
i_save_in_file = rs_c_false
i_packagesize = 20
IMPORTING
e_t_data = i_t_data
e_end_of_data = end_of_data
CHANGING
c_first_call = i_first_call
EXCEPTIONS
illegal_input = 1
illegal_input_sfc = 2
illegal_input_sfk = 3
illegal_input_range = 4
illegal_input_tablesel = 5
no_authorization = 6
ncum_not_supported = 7
illegal_download = 8
illegal_tablename = 9
OTHERS = 11.
append lines of I_t_data to c_data.
Thanks
Regards
aarthi
[email protected]Due to the nature of the cube design, that would be difficult, that's why there are API's, FMs, and MDX capabilities - to eliminate the need to navigate the physical structure. Otherwise you would have to concern yourself with:
- that there are two fact tables E and F that would need to be read. The Factview could take of this one.
- you would want to be able to read aggregates if they were available.
- the fact table only as DIM IDs or SIDs (for line item dims) to identify the data, not characteristic values. A Dim ID represents a specific combination of characteristic values. -
Problem with reading data from textEdit (htmlB)
Hi Guys,
I am not able to read text entered into the TextEdit box.
Here is the code which I am using.
TextEdit TE1 = (TextEdit) this.getComponentByName("TextEdit1");
strTE1 = TE1 .getText();
On the second line I get a null pointer exception.
Thanx,
skHi,
your problem in fact is: You are not able to retrieve the TextEdit element. See: TE1.getText(); throws a NullPointerException, ie TE1 is null. So the getComponentByName call didn't return what you expected.
Check where you have put this code - within a onXXX method? At least, within a method called after JSP has been rendered?
If yes, check the ID of the TextEdit element ("TextEdit1") against the string you have used within your JSP.
Hope it helps
Detlev -
Problem with reading locale from moduleImpl
I extracted the locale bundle data from module by getViewObjects and I stored it into hashtable,
problem is that i allways get data from default locale and not from users locale settings.
These code is running on java servlet.
code:
NameModuleImpl NameModuleTmp = (NameModuleImpl)Configuration.createRootApplicationModule(propertie1,propertie2);
for(ViewObject vo:NameModuleTmp.getViewObjects()) {
int c=vo.getProperties().size();
Hashtable ht=vo.getProperties();
Greetingshi Rok Kogovšek
Maybe some information in this forum thread could be relevant:
"ADF BC : using UI Locale to translate data (Steve M. example 95)"
ADF BC : using UI Locale to translate data (Steve M. example 95)
regards
Jan Vervecken
Maybe you are looking for
-
Vendor Master Tax numbers - Mandatory
Dear Experts, Currently tax field in vendor master is client specific. Appreciate your thoughts. System should check whether users are entering any one of the tax field i.e. tax number 1, Tax number 2, Tax number 3, Tax number 4 or V.A.T field, if no
-
Acrobat 9 color conversion, how to?
Ok, so we've upgraded from Acrobat Pro 7 and Pitstop to just Acrobat 9. We're using CS4 and have color profile for our printer. Bridge says all of the CS4 applications are in sync. Yet in Acrobat 9, when attempting to convert colors, the color profil
-
Where do I use These lock object FM's (Enqueue & D? and How do I use them?
I created lock object for user defined table (zconsist). The system automatically created 2 FM's (Enquiue & Dequeue). I created a new TCode and accessing this with mulitple users to do some updates and inserts in that above table. I used INSERT ZCONS
-
Red Hat Linux project merges with Fedora Linux project
Will this mean that the Fedora Linux project will become the officially supported Linux platform for Java releases in the near future? Please reference http://fedora.redhat.com/ What will be the supported Linux platform for v1.5?
-
Hi, I'm developing a secure flex application in order to mantain user and password catalog, i need to create SSL Transport channel and a non-repudiation request mechanism. I already review that i could achieve first with HTTP Service for SSL and the