Reading a file MS Word with Tables

I have experinced a mess when executing this labview program that reads in all tables in a MS Word file and does not see some tables.  The original Word document has hundreds of tables inside and it would be erratic jump a table in the order when he read and run convert text method.

I reduced the thing down to a file simple word do the same thing.  This VI is not the second table in this document word with 2 tables.  The count property of tables calculated as 2 indicating that the word see 2 tables in the document, but when I try to convert to text the second table I get an indication of infamous error in MS Word and an empty string to the converttotext method.

Someone knows how to fix?

It's a delicate question. Here you change the document (with the help of convert to text), and at the end you do not save the changes.

When you convert a table to text table is more exist and Word reallocate the array indices. In your example after the table 1 is converted to text index 1 is reassign in table 2. In the second iteration, you attempt to get the table with index 2 that no longer exist.

You can change your code as follows to make it work: tables-> Count value of wire to the N of the loop, wire the constant '1' to the Index value of the item table.

Ben64

Tags: NI Software

Similar Questions

  • Reading the file in spreadsheet with a variable number of delimiters

    Dear Forum,

    I would like to read a file in spreadsheet (text) generated by a 3rd party program. It turns out that, while the program generates columns separated by spaces, the number of spaces between the columns varies in a way that I still have to sort out. This isn't a problem if I want to

    to read in the file in excel (or equivalent) - but the functions of 'chain of worksheet to the table' LabView does not seem to be able to deal with him - if I get home 'space' as a separator it only accepts one * only * space... is possible to indicate "zero or more" spaces to this function? [I know I can do a lot of loops and read the elements of a number at a time, but it is very slow, so I'd rather avoid it]

    Thank you

    Niels

    Hello Marshall,.

    The string of worksheet to the table can actually accept an array of delimiters, so you can wire a table 1 d that contains the delimiters you want to watch for--one, two, or three spaces, etc.

    To do this, simply create an array of strings 1 d containing delimiters and son in the entry delimiter in the upper part of the primitive.  Like most primitives, function is polymorphic.

    If the program that generates this file does not limit the spaces he inserts somehow or uses spaces elsewhere in the data, you might encounter problems, but for most cases, I think that should suffice.

    Best regards

  • Reading a file of OS with size greater than 32 KB line

    Hi experts,


    I have a PL/SQL function that reads a file generated by a product of part 3 - Windows product displays a single line of text. I intend to read the file into pieces of 32K, do some string manipulation and copy into a CLOB that I spend for further processing. He eventually embeded in a CLOB containing WordML and output to a file. The CLOB is not saved in the database.

    I use UTL_FILE for work, FOPEN and GET_LINE. However, this operation fails for files with more than 32K characters in the line. Is there another way I can read the file?

    Obviously I can do processing on the file outside the Oracle to divide it into smaller lines, however, this will affect performance.

    Kind regards
    Arun

    Hello Arun,

    Welcome to the forum.

    You can read a file directly in a CLOB

    CREATE OR REPLACE
    FUNCTION getFile
        (
         p_directory     IN all_directories.directory_name%TYPE
        ,p_filename      IN VARCHAR2
        )
        RETURN CLOB
    IS
        v_bfile             BFILE;
        v_file              CLOB;
        v_error_out         INTEGER;
        dest_offset         INTEGER := 1;
        src_offset          INTEGER := 1;
        bfile_csid          INTEGER := 0;
        lang_context        INTEGER := dbms_lob.default_lang_ctx;
        e_inconvertibleChar EXCEPTION;
    BEGIN
    
        v_bfile := bfilename( p_directory,p_filename);
    
        dbms_lob.fileOpen( v_bfile, dbms_lob.file_readonly );
    
        dbms_lob.createTemporary(v_file, TRUE);
    
        dbms_lob.loadClobFromfile(
             v_file
            ,v_bfile
            ,dbms_lob.lobMaxSize
            ,dest_offset
            ,src_offset
            ,bfile_csid
            ,lang_context
            ,v_error_out
            );
        dbms_lob.fileClose(v_bfile) ;
    
        IF v_error_out = dbms_lob.warn_inconvertible_char THEN
            RAISE e_inconvertibleChar;
        ELSIF v_error_out != 0 THEN
            RAISE_APPLICATION_ERROR(-20001,'Unknown errornumber '||v_error_out,TRUE);
        END IF;
    
        RETURN v_file;
    
    EXCEPTION
        WHEN e_inconvertibleChar THEN
            RAISE_APPLICATION_ERROR(-20001,'Inconvertible charset',TRUE);
    END getFile;
    

    Concerning
    Marcus

    Published by: Marwim on 10.07.2012 17:24

  • I have Adobe Reader XI with the package that allows me to send a PDF file and convert PDF files to Word. When I open a pdf file and you try to find the search shows no match, even if the word I'm looking for is in the document. Suggestions how to search?

    I have Adobe Reader XI with the package that allows me to send a PDF file and convert PDF files to Word. When I open a pdf file and you try to find the search shows no match, even if the word I'm looking for is in the document. Suggestions how to search?

    A scanned document is an image; You can't find a picture.

    If the image contains text, recognition of characters (OCR) will convert the 'text' in the image in real text (searchable, editable).

    OCR can be performed automatically when converting a PDF to Word, using the ExportPDF service.

    To run OCR inline in a PDF document, you will need Acrobat.

  • Problem Word document with table conversion table of contents

    Hello

    I use MS Word 2003 and Acrobat 9 in Windows 7 Ultimate 64 bit.

    I created the manual using Word, I put position (s) with 3 levels deep and created the table of contents in Word.
    It seems as expected. There are titles, subtitles and subtle (3rd level).

    Table of contents in Word works very well. No problem.

    In the PDFMaker options on the Bookmarks tab, I put 1 TOC with 3 levels.
    However, after you convert the entire document in PDF, bookmarks seem very strange.

    They contain only the titles (no subtitles at all), each bookmarked line ends with some number 3, 4 or 5 that I have not idea what it is and these bollmarks point to page table of contents no to the page, they should have.

    Clip1.jpg
    What is the problem and how can I fix it?

    Thank you

    JAS

    Added:
    I have read a lot of posts with similar problems and tried all of the suggestions posted.
    I tried:

    1.

    Reinstalling Adobe (by removing all of the related files), well I don't have any older versions (and facilities) of Acrobat in this computer.
    2.

    In Adobe PDFMaker uncheck the option "enable accessibility and...» »

    3.

    Set up printer to Adobe PDF

    4.

    In Word > parameters-OCD I ticked the option "use hyperlinks instead of page numbers.

    I also tried in Adobe PDFMaker use not FAKE, but to use 'convert Word headings to bookmarks.
    The result was horrible. Double bookmarks, reverse a lot of bookmarks empty and level 1 level 2 positions (I think that created by blank lines in the charts on the pages).
    Please note that by using the same word headings create TOC without any problem!
    The only plus side was that some of these bookmarks came with correct links.

    Clip2.jpg

    These bokkmarks were created using "New bookmarks from structure" option in Acrobat (after conversion of the document)

    /JAS

    I recommend that you look at this blog. It guides you through the steps.

    http://blogs.Adobe.com/acrolaw/2011/03/ensuring-that-Word-TOCs-create-hyperlinks-in-Acroba t.

    I hope this helps!

  • I've just updated my LR, but still can not read the new RAW files of my brand new Sony a6300. said 'impossible to read these files' is Adobe should update it program with new firmware to manage these new folders? Or something escapes me?

    I've just updated my LR, but still can not read the new RAW files of my brand new Sony a6300. said 'impossible to read these files' is Adobe should update it program with new firmware to manage these new folders? Or something escapes me?

    You updated Lightroom to version 6.5? This is the version you need. What is the exact wording of the message you receive?

  • After installing Acrobat Standard 10 all exe files are now with Adobe (Excel, Outlook, Word, IE etc.). Acrobat uninstall everything back to normal! What should I do to fix this?

    After installing Acrobat Standard 10 all exe files are now with Adobe (Excel, Outlook, Word, IE etc.). Acrobat uninstall everything back to normal! What should I do to fix this?

    See: Application, file icons change in Acrobat/Reader icon

  • Could not copy a file at the location requested. Mac OS 10, Version 10.10 [1].  I JUST bought this new macbook pro and Lightroom installed, imported 2 lots of pictures, but all of a sudden he kept denying my imports with "could not read the file" or "coul

    Could not copy a file at the location requested. Mac OS 10, Version 10.10 [1].

    I JUST bought this new macbook pro and Lightroom installed, imported 2 lots of pictures, but all of a sudden he kept denying my imports with "could not read the file" or "couldn't copy file at the location requested.  Help, please!

    Your use of the word "files" (in the plural) still makes me believe that you have not checked the permissions on the folder that is appropriate (in the singular).

    You must determine the Destination of the Lightroom Import dialog window Panel and see which folder Lightroom is really tr6ing to copy photos in (which may have been accidentally changed and is not what you may have used in the past) and change the permissions to write to this folder.

  • Problem with reading Xlsx file string.

    Hello! I'm reading of digital data and string a xlsx file and tries to display its content in a word file. I tried to convert a .lvm file too. Use the "Reading worksheet" tool, I get random characters as output. On tool using 'Read the file of measure', I get an error saying "error 100 occurred reading file measure-> Untitled 1". What should I do? In the end, I need display output, line by line, in Microsoft Word format. I'm so lost. Help, please.

    Reading worksheet cannot read a xls file. Reading worksheet can read text files. In general, comma or a tab separated. To read a xls file, you must use ActiveX, such as the use of the report generation tool.

  • Open a word with extn docx file using windows xp 2002

    My home PC's with windows XP 2002. Documents received in the version other than the 2002 version and above could not be opened. Please help me to open a word with extn (.docx) file using windows xp 2002

    If you have an earlier version of Word installed:

    Microsoft Office for Word, Excel, and PowerPoint File Formats Compatibility Pack

    To view, print and copy most recent Word documents, even if you don't have Word installed:

    Word Viewer

    John

  • I am running windows vista on the PC of my church and have inserted a USB stick with a MP4 file on it, but I can not read this file.

    I am running windows vista on the PC of my church and have inserted a USB stick with a MP4 file on it, but I can not read this file. Can I get help?

    I created a video for our Church on a desktop of Windows 7 through Pinnacle Studio 14 (editor) and registered as a .mp4 file. I then put it on a flash drive and put the flash drive in the computer of the Church, that is running Windows Vista, and the file will not play. Please provide help quickly!

    -Corey

    You need a media player that is compatible with .mp4 files.

    The following preferential ticket should solve your dilemma.

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    VLC Media Player
    http://www.filehippo.com/download_vlc/
    (works on XP/Vista/7)

  • When I open any .exe file it opens with Word, even if I click on Excel.exe files

    When I open any exe file it opens with the word that even I click the excel.exe file

    Original title: exe problem.

    When you run an .exe on a Windows Vista-based or Windows 7 computer file, the file may start another program
    http://support.Microsoft.com/kb/950505

    Difficulties of file Association for Windows 7
    http://www.Winhelponline.com/blog/file-Asso-fixes-for-Windows-7/

  • need help with reading ZIP files.

    Dear windows team

    I am self-taught on the computer and I am a 55yo.

    I have Aproblem... .i don't know how to read ZIP files... .everytime I try to get to the one just saying my computer doed not support... I tried to download a free access, but then nothing happens...: (.. .the it in is the same with RAR files when I want to watch some movies.. .please could you help me should I download for free on internet... .i understand if you can't help to be honest I'm computer illiterate)

    Kind regards...

    Mario

    Hello

    In the case of zip files, you can right and select extract files to get all the files extracted using File Explorer. For RAR files, you can try 7 - zip:

    http://www.7-zip.org/download.html

    Hope that answers your query :)

  • PDF file generated from Reporting SERVICES hangs when opened in Adobe reader 11 and saved as with "optimized for fast web view."

    Large pdf (over 1000 pages) generated files form SSRS crashes when opened in Adobe reader 11 and saved as with "Optimized for fast web view" activated. This saves fine with disabling this option. However, our customers are not ready to accept this solution because they do not want to change any settings. Please suggest if we should create a ticket with microsoft for SSRS allow the generation of pdf quick display of Web pages or is it an option in Adobe to fix this problem without changing the settings.

    The SSRS file has Fast Web View: 'No' and that's how Microsoft SSRS generates these files.

    Thank you for the complete maxwyss response

    As you have indicated, the PDF SSRS seems to have some elements that are quite similar to be supported for fast web view.

    We asked customers to disable the fast web view, but the customer is big enough to make a change individually on their machines and so were looking for a solution.

    I saw in several forums and a few discussions here as well as disable the fast web view option works for pdf fails.

    Which was just wondering if its known that multiple PDFs genarted by third parties may have problems with the optimization, the Save as optimized for fast web view could be disabled by default installation of acrobat reader rather than be enabled by default

    Thanks again for the reply!

    PS: links indicating similar problems

    https://forums.Adobe.com/message/7965091#7965091

    https://forums.Adobe.com/thread/1456971

    How to fix Adobe Acrobat "save under" error - Digital Factory tool blog

    https://social.msdn.Microsoft.com/forums/SQLServer/en-us/63cf1325-2054-4ef1-9c5d-631da6a30 cfc/file-size-of-exported-pdfs? Forum = sqlreportingservices

  • How can I add data file to an existing table on Oracle RAC ASM with no OMF? Thank you!

    How can I add data file to an existing table on Oracle RAC ASM with no OMF? Thank you!

    Hello

    So I guess you have some files in ASM, see your first existing file structure

    Select file_name

    from dba_data_files;

    and to add to an existing table, the example below (even if you're better sticking with OMFs!)-is that what you are looking for?

    SQL > create tablespace TEST1

    2 datafile '+ DATA' size 1 M;

    Created tablespace.

    SQL > select file_name in dba_data_files;

    FILE_NAME

    --------------------------------------------------------------------------------

    +Data/orcl2/datafile/users.259.859820983

    +Data/orcl2/datafile/undotbs1.258.859820983

    +Data/orcl2/datafile/SYSAUX.257.859820983

    +Data/orcl2/datafile/system.256.859820981

    +Data/orcl2/datafile/example.269.859821049

    +Data/orcl2/datafile/Test1.271.859843053

    6 selected lines.

    SQL > alter tablespace TEST1

    2 Add datafile ' + DATA / mynewfile01.dbf ' size 2 m;

    Tablespace altered.

    SQL > select file_name in dba_data_files;

    FILE_NAME

    --------------------------------------------------------------------------------

    +Data/orcl2/datafile/users.259.859820983

    +Data/orcl2/datafile/undotbs1.258.859820983

    +Data/orcl2/datafile/SYSAUX.257.859820983

    +Data/orcl2/datafile/system.256.859820981

    +Data/orcl2/datafile/example.269.859821049

    +Data/orcl2/datafile/Test1.271.859843053

    + DATA / mynewfile01.dbf

    Thank you

Maybe you are looking for

  • How to permanently delete emails from my computer?

    When we remove the trash on Thunderbird emails, are they removed and replaced (such as Secure Empty Trash on a Mac), or are they still recoverable from somewhere on the computer? If the latter, how can you completely delete and overwrite the deleted

  • HP Omen: Y at - it a way to turn off fan on HP Omen lights

    On the forerunner of HP, there are red lights that light up in the vents back fan which seems odious when at College. Is there a way to turn off the fan lights, or is it just permenantly on?

  • Disable the touchpad? Satellite 1000 Help!

    Hello I have a satellite 1000 and when typing I continues to catch the touchpad/mouse pad. How can I disable that I use a mouse usb anyway. Thank you very muchGAV

  • Need technical manual for Satellite P200-18Z

    I need a manual with detailed information material in this book.I compile a special kernel of material for FreeBSD. I will be very grateful for this information and I will post my configuration on the BSD-specific forums as well as other people can u

  • Red inalámbrica coneccion config for IP nullified

    No puedo conectarme an internet inalambricamente tengo este mensage "coneccion inalámbrica config for IP nullified" red comopuedo corregir este problema