the recorded call of excel files


I'm certain physical quantities measurement and save in file excel, every day using LabVIEW. now I want to call the data recorded for each day and find a way for each day and then I would sketch the variation of this amount every day and every month (based on the average of every day). I would be very grateful if you can guide me please

You are looking for before you receive from your


First of all, if you always use the code in your previous post, stop calling Excel files. As you said you, you create a text file.

Secondly, you would use the function Array Index for the row or column you want. Thread the result until the service Just average.

Tags: NI Software

Similar Questions

  • When I use the mail merge with excel file, after I press ok the progress bar indicates "NaN", mail project window crashes. My record is nice little CVS n

    When I use the mail merge with excel file, after I press ok of the progress bar indicates "NaN", mail project window crashes. My file is in the correct format and small size (4-column 4 raws). I use an English version of thunderbird after accidentally, I installed one in my tongue.

    I am attaching the screenshot

    I solved the problem
    has been [email protected] excel

    I created a CSV file in openoffice calculator and everything went smoothly

  • Export the result to an Excel file

    I use the attached script to export the inventory then as excel file. I used LucDtechnical of this post to store information in a CSV temp and later, save them to a XLS file. I need to perform a certain formatting in the report, as to change the size of the font of the header, adding some background colors.

    Do not the formatting as I am exporting to a CSV file. Is there another way to achieve the formatting?

    You can take a look at my post Export-Xlsx, the suite and ordered data .

  • problems with the external table to excel file

    Hi all
    I tried to use the statement below to create an external table.this table refers to an excel file.

    (records delimited by newline
    BadFile "empfraud%a.bad."
    logfile "empfraud%a.log".
    fields completed by «,»
    surrounded of possibly ' "'lrtrim"
    missing field values are null
    LOCATION ("fraud.csv")

    the problem is the following
    (1) when I run the query above the table will be created,
    but when I try to select in the table, an empty table display.
    When I checked the error log file, the following message was given.
    It was obtained from an oracle on unix Server database.

    'L_NUM '.
    KUP-04036: second enclosing delimiter not found
    KUP-04101: Save 71 rejected in the /home/oracle/ext_folder_test/fraud.csv file
    KUP-04021: field error for the field formatting ACCOUNT_KEY
    KUP-04036: second enclosing delimiter not found
    KUP-04101: Save 79 rejected in the /home/oracle/ext_folder_test/fraud.csv file
    KUP-04021: field formatting of error for the serial_num field which
    KUP-04036: second enclosing delimiter not found
    KUP-04101: Save 80 rejected in the /home/oracle/ext_folder_test/fraud.csv file
    column in treatment of TRANSACTION_DATE_TIME error in the row 1 for the /home/oracle/ext_folder_test/fraud.csv data file
    ORA-01858: a non-digit character was found here where was waiting for a digital
    column in treatment of TRANSACTION_DATE_TIME error in line 2 to the /home/oracle/ext_folder_test/fraud.csv data file
    ORA-01843: not one month valid
    column in treatment of TRANSACTION_DATE_TIME error on line 3 for the /home/oracle/ext_folder_test/fraud.csv data file
    ORA-01843: not one month valid
    column in treatment of TRANSACTION_DATE_TIME error in row 8 for the /home/oracle/ext_folder_test/fraud.csv data file
    ORA-01843: not one month valid
    column in treatment of TRANSACTION_DATE_TIME error in line 9 to the /home/oracle/ext_folder_test/fraud.csv data file
    ORA-01843: not one month valid
    column in treatment of TRANSACTION_DATE_TIME error in line 10 by /home/oracle/ext_folder_test/fraud.csv data file
    ORA-01843: not one month valid
    column in treatment of TRANSACTION_DATE_TIME error at line 11 to the /home/oracle/ext_folder_test/fraud.csv data file
    ORA-01858: a non-digit character was found here where was waiting for a digital
    column in treatment of TRANSACTION_DATE_TIME error in line 12 to the /home/oracle/ext_folder_test/fraud.csv data file
    ORA-01843: not one month valid
    column in treatment of TRANSACTION_DATE_TIME error in the 13th for the /home/oracle/ext_folder_test/fraud.csv data file row
    ORA-01843: not one month valid
    column in treatment of TRANSACTION_DATE_TIME error in line 14 to the /home/oracle/ext_folder_test/fraud.csv data file
    ORA-01843: not one month valid
    column in treatment of TRANSACTION_DATE_TIME error in row 15 for the /home/oracle/ext_folder_test/fraud.csv data file
    "ORA-01843: not one month valid."

    pls I need help to fix it fast
    Thank you

    Abdulrahman olayide arpin

    After the conversion to .csv format.

    REGIONS, Transaction_Date_Time, Report_Date_Time, Account_Key (account number), BUSINESS OFFICE, Number_of_Transactions, Total_Amount (N)
    Ojo 1,162,9 Street, South of Lagos, various, 17 January 00, CHECK
    2,0238, "10 cyril Road, Enugu", Orient, 21/06/2006,23/12/10,020968765357 09867653920174,1,20000000
    3,0127, '261, Roland Rd, Asaba', Midwest, 22/12/2010,23/12/10, 1,'00160030006149, 6000000
    4,0519, 'just road, Onitsha.
    ', East, 12/03/2010,14/02/11,0896002416575,1,5000000.
    5,0519, 'just road, Onitsha.
    ", Orient, 03/12/2010,14/02/11,06437890134356,1,5000000.
    6 149, rue olayide, South NGN01492501036 of Lagos, 10/02/2010,17/02/11, 1,6108950
    7,0066, wale, mi - west,18/02/2011,18/02/10,'05590020002924,1,55157977.53
    8.66, john, Mid-west, 6787500, 1,'00660680054177 11/03/2010,14/03/09
    Waheed 9,0273, Biem, N/central, Jan 09 Dec/2010,01/04/11, Nile, 1, 14146040
  • How do I dynamicaly create TestStand properties when loading the limits of an Excel file using the property loader?


    I need help using the shipper of the property. I have an excel file that contains a bunch of properties, and the properties change quite often. I want to be able to load a picture of the excel file properties by using the shipper of the property and create these properties in Teststand programmatically. It is a sample of the file I want to import: when I tried the charger of the property, I got an error, because the properties did not exist. So, how can I create them as they load?

    Value of the variable
    Value of the variable
    LowLimits10 20 30
    PinNumbers0 1 2
    Value of the variable

    Thank you


    Thanks Ric, Ray. Both of your comments, I was able to do that the tool works exactly as I want. The final version of my custom tool is attached.

  • Reading the data from an Excel file


    I try to use the attached VI (adapted from an example provided by someone else in a different thread) to read an Excel file.

    It works well, aside from the fact that it leaves the file and Excel opened when it has finished running.

    How do I close the file (and Excel) by programming?

    Thank you very much


    Try this.

  • Behavior of the ADV change corrupt Excel File Types?

    I entered a strange state Excel.  I don't know how. ERGO, I don't know how to reverse the trend.

    All of a sudden, when I click on a file icon to open an Excel file with macros, I am invited twice to activate the macros (medium security).

    Specifically, if I start Excel (new book), add a dummy macro (Sub doit() / End Sub), and save Book1.xls, when I then click Book1.xls, I get two guests enable macro.

    I suspect that this began after I was experimenting with different Types of files advanced under Tools > Options for files in a folder.  I did not notice the problem then because I couldn't have clicked on a file icon for the Excel file with macros.

    Note: I think that the root cause, twice, opening the Excel file may exist even for files Excel without macros.  It simply may not be obvious without the enable macro prompt.

    Also note: I don't get the enable macro double guests when I open the file in Excel, for example by clicking on the name of the file in the list of recently opened files in Excel.

    Unfortunately, I do not know what that file type Advanced had my experiences.  Currently for XLS, they are:

    Action: ' "C:\...\EXCEL."» "EXE" / e/n %1
    The DDE message: [new ("%1")]

    Action: ' "C\...\EXCEL."» EXE' / e '%1 '.
    The DDE message: [open ("%1")]

    It would not surprise me if the reference for %1 in the action line is redundant and root cause of the problem.  It does not appear in the line of action on another PC.  (Old Excel 2003 puts up-to-date and perhaps more older MSWin XP SP3 updates to date.)

    But if I try to delete the reference %1, XP (?) restored automatically, but without the quotes in the line of action "open".

    In other words, if I change the %1 and reference '%1', click OK, and then click on Edit again, %1 (without the quotes) reappears at the end of the two lines of action 'new' and 'open '.  The same is true if I close the file Options window, then re-open it.

    If I remove the double quotes in the "open" action line, I do not receive guests enable double-macro.  However, I get several errors when I click on the icon of the Book1.xls file in a Temp folder, namely:

    C:\Documents.xls is not found
    and.xls is not found
    Settings\Joe\My.xls is not found
    Documents\Temp\Book1.xls could not be found.

    Despite these errors, the Excel file is opened correctly.

    Note that the full path is "C:\Documents and Settings\Joe\My Documents\Temp\Book1.xls".

    This brings me to two tentative conclusions:

    1. the double quotes around the %1 in the line of action are needed for a path with interstitial spaces can be interpreted correctly.

    2. the file is indeed open twice, once for %1 in the line of action and again for %1 in the DDE message.

    On this basis, the prompt enable double-macro is not surprising when %1 is replaced with '%1' in the line of action.

    I can work around the double-open by editing the DDE message for the 'open' action, leaving '%1' at the end of the line of action.

    But that changes the behavior to open two Excel files by clicking on their icons in file, namely: each file is opened in a separate instance of Excel instead of the same instance.  Ironically, it is the alternative behavior that I was experimenting with some days; and it might even be the behavior that I prefer.  I'm mulling over always pros and cons.  (Which I am fully aware of and need any help understanding.)

    But the point is: it wasn't always the case.

    So the question is: how to make (less intrusive) to restore Excel to its previous behavior, only enable macro prompt and probably open the file only once and when I click on file icon in a folder by opening multiple files within the same instance of Excel?

    I certainly want to avoid to uninstall and then reinstall Excel.  I also want to avoid going back to a recent restore Point, since I'm not sure what desirable changes, I could have done in the meantime.  I am not opposed to editing the registry, if someone can tell me exactly what change to make.

    (Change my macro security to avoid any incentive is also not a viable alternative.)

    No doubt, this could be a matter of Excel, is not a matter of XP.  I'll post a similar question to Excel answers appropriate Forum.  I don't like the multi-post; but I don't know how crosspost, which is even supported by the Forum of answers.  However, I wonder if a XP-savvy person could recognize and solve the problem more quickly than a generalist to Excel.

    I use Office Excel 2003 SP3, Excel 11.8169.8172 version, and MSWin XP Pro SP3 update 29/03/2009.

    I know I'm behind in updates.  But all I ask is to restore the system (XP or Excel) to a State that worked fine before.  'Before' what I can not say with certainty; but certainly some time in the last week or two, during which I did no major changes to the system other than experimenting with File Types.

    I _-u-me that XP or Excel update is not necessary, unless someone can point to a specific patch since the 29/03/2009, which solve my specific problem.

    Tushar Mehta wrote in the Excel forum:

    Maybe you can try - and I don't know if it will or won't work - Excel Help | Detect and repair... ability.

    While I wouldn't recommend it for the faint of heart and not without a lot of precautions, he does not seem to have done the trick.

    Advanced File Types have now been restored to what I expected, namely: Open action is now "C:\...\EXCEL. EXE/e"- no argument %1 - and the DDE message is [open("%1")].  By clicking on two ".xls" file icons results in both open in the same instance of Excel, the behavior of original product.

    The procedure is a bit irritating because, first of all, click on detect and repair in Excel Help resulted in warning to close all Office applications, including Excel.  Because I didn't know no other way to invoke the detect and repair command, I clicked on the option Ignore, which I was grateful for.

    Secondly, this operation has warned the Office installation CDROM may be needed, and indeed, it was necessary to complete the configuration of Office 2003.  That's troubling for me because I had never used the CDROM (Dell preinstalled the software), and I've had trouble finding even it since I had never unpacked boxes after a large home remodeling 3 (!) years.  (By wife hunted me for a year before she gives up on me.)

    Without the CDROM to installation, I couldn't run Excel; He has always tried to complete the configuration of office.  And in fact, it was something on the CDROM which corrects the shares of Advanced File Types.

    Now, I have to learn that rest to detect and repair could cancel.  I used the product for 5 years.  I have really no idea what settings I could have done for this period of time

    But it worked!

  • Virus found in the records of Creative Cloud Files After app update on 28:th July

    Hi all!

    After several long hours sync today, Creative cloud finally comes to rest in this marathon-sync. However, there was a warning that some files will not download cause of what they contain viruses. (See URL pasted). http://1drv.Ms/1VMfowR

    The files that are supposed to have viruses located in my folder, "2015\Required\Plug-Ins\Measurements F:\Creative Cloud Adobe Photoshop CC.
    All this happened after
    is today (July 28) updated three applications creative Cloud (Adobe Photoshop CC 2015, Adobe Media Encoder CC 2015 and Adobe Premiere Pro CC 2015).

    During the update, I stopped the sync and when updates have to do, I did it again. This is! Virus in Adobe products?
    The thing is that I had a virus for years. What makes it even more scary, is that I now have viruses isolated in my folder where Cloud Creative has his backup and that I pay some 61 USD
    (525 SEK) / month in subscription programs Adobe.  This sux!

    The big question is, are the files really infected or they are somehow corrupt. I scanned the whole "F:\Creative Cloud Files"- and ESET online scannerfolder with Windows Defender . Nothing wrong was found. However, reading some old poster in this forum - they apparently had problems before with the virus in what today is creative cloud.

    If you are not alone, LuziAnne and I'm sorry for the support that you got was... None.

    Anyone else having issues of the last days and of course; a solution.

    Kind regards
    Anders Magrioteli


    Just a word of warning on the deletion of these files and folders. If you need them for Photoshop plugins and you move from this place they can stop working in Photoshop. I would say that you keep you plugins in creative cloud folder and install them elsewhere on your system. Maybe your posture in the creative cloud location of the files as a backup etc.?

    I will continue to work with internal teams on that for you. Could also provide me with the exact filenames of files that download and are captured in the virus scan?, you might even share files with me through a creative Collaboration of Cloud using my email address [email protected]. I suspect that this is a false positive virus scan for some reason any.

    Thank you


  • Numbering of the pages of an Excel file

    I would use a list from a CSV excel paging file.

    For example, instead of having the pages numbered 1,2,3,4,5,6... I want that they should be labeled one, two, three, four, five, six...

    I tried to use a fusion of data from the master page, but it does not work when I already have pages in the document.  For each page, gives several pages. If I have 100 numbers in my list of page number - one percent - 100 pages are produce for each page of the document producing hundreds or thousands of "spreads".

    In short I have no idea what I'm doing, HELP.

    My apologies for not being clearer about the document from the master pages earlier.

    Dungeon options are a level paragraph attribute, and you can find them in the paragraph Style definition dialog. Make a unique style to the numbering, and just inclede that prevent option, as well as any other desired formatting. You can place them the cursor in the empty frame on the master page and apply the style (but do not type anything; and the cursor moves to the beginning of the first image in the thread, no matter where you click) or create an object style that includes your paragraph style and apply it to managers.

    Symbols on both sides is a bit tricky. You can put them in frames separated from the numbers, but then you will have problems of spacing varies the length of your numbers. A better option would be to use find/replace after placing the numbers.

    I would try to put the symbol in the Clipboard (not sure if this works, but I think it will) then do a GREP to find change for ^. + $ (who says find everything from the beginning at the end of a paragraph). Replace by ^ c $0 ^ c which is formatted the contents of the Clipboard, the SPACEBAR space regular (you can change this to something else, or leave it out, if you wish), the text found (in other words you put what is already there), another space and once again, the Clipboard. Limit research to the history of numbers, or add formatting to find the syle. You don't want to do this for nothing, but the numbers.

  • Save the data to the excel file


    I make a program reads the value of the probe via serial port... but I don't know how I can record this data in excel file... I open the example in the labview example, but I don't want to like this... becaue I use a while loop in my program that cause opened "multi" excel file... . How can I solve this problem?

    You need to think about what you want to do, not how you want to do.  I'll make a few assumptions here - adopt to your notebook loads "real."

    I guess you want to take a series of readings from a device (sensor, serial port).  I suppose you take multiple readings, perhaps their display on a table or chart, for a certain period of time.  Once you have a set of data, you want to save all the data in an Excel file.

    If this scenario is correct, there are three distinct phases to this task - implemented the data collection (open the serial port, manage the interactions of the user according to the needs), data collection (and potentially produce tables or graphs) and save the data.  Note that only step 2, collect data, involves a repetitive action appropriate for a while loop.  Once you have all the data, you can then open an Excel report, use something like Excel table easy to put the Table in the report or chart Excel easy to put a chart in the report and save the report in evidence, save the report.

    If you are using a relatively recent version of LabVIEW (2010 or later), the new generation Excel report screws are pretty easy to use.

  • Why have I not two record creative Cloud suddenly with different data in each folder (a folder called Creative Cloud Files (unknown))

    This morning, I've connected and started working as usual. When I went to save on I noticed a new folder in the Bridge, called "Creative Cloud Files (unknown) without data in it. Weird, but what ever. So I recorded my file and dinked around a structure of files and cleaned a little. I have noticed that my sharing icon disappeared from records and questioned on this subject, but kept the job because I'm on a deadline.

    So now it is wobbly data to the new file folder that does not match the original file of CC. I don't know where are my latest files and some files are all simple missing. I'm increased and confused about what is happening. Can someone shed some light on this?

    With the recent update of the application of Creative Cloud Desktop (, we have unfortunately introduced a bug that causes the creation of a new Creative Cloud Files folder and re-synchronization of all content. This will happen only the first time that the synchronization application runs after the update. This caused an understandable pain and confusion, for which we really apologize.

    Creative application Cloud Files contains a logic that supports the use of several Adobe ID. This allows to disconnect from an ID and in, but keeps the contents of your separate creative cloud. When you sign out and change identifiers, the app moves the previous creative Cloud Files folder and it's content and he adds with the already signed in ID ([email protected]). Then, it creates a main folder and begins to synchronize the content of the identification of new.

    The bug I mentioned earlier occurs, as the app believes an ID selector took place and as such, moves the current record of Creative Cloud Files and attempts to annex the already signed in ID. As no switch actually took place, it manifests as (unknown).  The application then creates a main folder to synchronize the data.

    What you end up with is essentially a creative Cloud Files folder with your new synchronized data and a creative Cloud Files (unknown) folder that contains duplicate data.

    This happens once, after the last update.

    The solution is to simply delete the (unknown) Creative Cloud Files folder.

    I recommend that ensure you that you have no pending change you can do offline and you check the contents of the folder new, main designer Cloud Files contains everything you expect of him.  If this is not the case, check the contents of the creative Cloud files (unknown).

    If there is still an incompatibility with your data, you can check on to confirm that your data is there.

    If you have any other problems or questions on this topic please email [email protected]

  • labView send data wireless node for the excel file

    Hi all

    I used the basic tutorial for the network of wireless sensors OR. I finished it with a single node. The next phase of my project is to send the data from the node and the date and time in an excel file every hour. Is there any advice I can get to at least send the date and the data in the excel file? I'm using labView in 2012

    I change, because I put the text instead of excel file

    You cannot connect a scalar to the entry level that is needed. A solution would be to insert a table to build before the writing on the worksheet.

  • Hyperlink to the Excel file possible?

    Hi all

    I want to create a button in an e-mail message that opens an Excel file after you have clicked.

    It is even possible to create a hyperlink to an Excel file? I tried several times and I get a "validation error" every time.

    Kind regards


    Hi Anne,.

    You can give the hyperlink to an excel file. But it must be in the Excel 97-2003 (.xls) format. Eloqua dosen't support Excel 2007 format.

    You can follow the procedure below:

    (1.) to download Excel file. (Active--> component library--> folder of file storage on the left sidebar--> right click and then download)

    2.) once the file is downloaded. Double-click the file, copy the "real" URL

    3.) actual use "URL" as a hyperlink to your image. Example below:

    I hope it will be useful for you!

    Kind regards


  • Find no records in an Excel sheet

    Hi all

    I am importing data from an excel file into oracle database. I wanted to know the number of records in an excel file and no columns using oracle webutil (Client_ole2). I received a web code that works very well, adding a NEM statement at the end of the file each time. Maybe it's not practical always, cannot ask user each time to add a statement of NEM, which in turn result in program to run infinitely.

    This is the code that is running


    application Client_OLE2. Obj_Type;

    Client_OLE2 workbooks. Obj_Type;

    workbook Client_OLE2. Obj_Type;

    Client_OLE2 spreadsheets. Obj_Type;

    worksheet Client_OLE2. Obj_Type;

    worksheet2 Client_OLE2. Obj_Type;

    cell Client_OLE2. OBJ_TYPE;

    Client_OLE2 args. OBJ_TYPE;

    cell_value varchar2 (100);

    num_wrkshts NUMBER;

    wksht_name VARCHAR2 (250);

    EOD Boolean: = false;

    j integer: = 3;

    v_fName VARCHAR2 (250);

    worksheet_count number: = 0;


    -Get the name of the file to open

    -v_fName: = "D:\MyDevelopment\Forms\Samples\WebUtil\Read_Excel\planets3.xls";

    v_fName: = WebUtil_File.File_Open_Dialog)

    directory_name = > "C:\". »

    -, file_name = > Get_Form_Property (:System.Current_form, Form_Name) |'. XLS

    , File_Filter = > null

    , Title = > 'Select customer filename to open.'


    IF (v_fName IS NOT NULL) THEN

    -The following sets a communication with the excel worksheet

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

    -Open the OLE application

    application: = Client_OLE2.create_obj ('Excel.Application');

    -Keep the hidden application

    Client_OLE2.set_property (application, 'Visible ','false ');

    workbooks: = Client_OLE2. Get_Obj_Property (application "Filing cabinets");

    args: = Client_OLE2. CREATE_ARGLIST;

    -Open the selected file

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

    Client_OLE2.add_arg (args, v_fName);

    workbook: = Client_OLE2. GET_OBJ_PROPERTY (Workbooks, 'Open', args);

    Client_OLE2.destroy_arglist (args);

    worksheets: = Client_OLE2. GET_OBJ_PROPERTY (workbook, 'Worksheets');

    -Get the number of spreadsheets

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

    num_wrkshts: = Client_OLE2. GET_NUM_PROPERTY (worksheets, 'Count');

    worksheet: = Client_OLE2. GET_OBJ_PROPERTY (application, 'activesheet');

    -Go to the first record

    go_block ('EXCEL_EXPORT_TABLE');



    If: system.record_status <>'NEW' then


    end if;

    When the exit NEM;

    for 1.15 k loop - 15 frames / record - hard-code the length of the column

    args: = Client_OLE2.create_arglist;

    Client_OLE2.add_arg (args, j);

    Client_OLE2.add_arg (args, k);

    cell: = Client_OLE2.get_obj_property (spreadsheet calculation, 'Cells', args);

    Client_OLE2.destroy_arglist (args);

    If Client_OLE2.get_char_property (cell, 'Value') = 'null' then

    cell_value: = ";

    on the other

    cell_value: = nvl (Client_OLE2.get_char_property (cell, 'Value'), 0);

    end if;

    If upper (cell_value) = 'NEM' then - the loop runs until "NEM" are judged.

    Nem: = true;

    Message ('end of data');


    end if;

    Copy (cell_value, name_in ('system.cursor_item'));


    end loop; -for

    j: = j + 1;

    end loop;-main loop


    -Release the handles object Client_OLE2

    IF (cell IS NOT NULL) THEN

    Client_OLE2.release_obj (cell);

    END IF;

    IF (spreadsheet IS NOT NULL) THEN

    Client_OLE2.release_obj (Worksheet);

    END IF;

    IF (spreadsheets IS NOT NULL) THEN

    Client_OLE2.release_obj (Worksheets);

    END IF;

    IF (worksheet2 IS NOT NULL) THEN

    Client_OLE2.release_obj (worksheet2);

    END IF;

    IF (workbook IS NOT NULL) THEN

    Client_OLE2.release_obj (Workbook);

    END IF;

    IF (workbooks IS NOT NULL) THEN

    Client_OLE2.release_obj (Workbooks);

    END IF;

    Client_OLE2. Invoke (application, 'Quit');

    Client_OLE2.release_obj (application);


    Message ("no file selected.'");

    message(' ');

    RAISE Form_Trigger_Failure;

    END IF;


    Please think it has no integrated to find no records and columns in excel file using oracle forms.

    Thank you and best regards,


    This change according to excel data file.

    for example, we also use this logic. because the first column in excel file still does not empty. It should be full.

    If any column of a raw material can be empty, one with just my solution can be

    v_all_column_str: = col_A_Value | col_B_Value | col_C_Value | col_D_Value |... col_n_value;

    if v_all_column_str is null, then--> you can tell, all of the columns of this vintage in excellent file is empty

  • DB block data to Excel file export: fast and efficient

    Hello world

    I want to export the database block records to an Excel file. Initially, I did with OBL but he was taking too much time because the record increase in the data block.

    Then I tried the csv file. His work very well with my questions. However, if I run my worst form hangs after 3 minutes. My maximum number of records is Lake around 5.

    Here is the code:


    lv_File client_Text_IO. Type_de_fichier;

    lv_File_Name VarChar2 (500);

    lv_wait timer;

    user_nam varchar2 (1000);

    Cursor Load_Rows is


    IRR_TAMPERED_OK | «, » ||


    IRR_DISPATCHED_NO | «, » ||

    IRR_REG_ID | «, » ||

    IRR_CONS_NO | «, » ||

    CON_NAM | «, » ||

    CON_ADR | «, » ||

    IRR_SR | «, » ||

    EMC_EVC_NO | «, » ||

    IRR_TNO | «, » ||

    IRR_MTR_TYPE | «, » ||

    IRR_MTR_DIC | «, » ||

    MTR_RED_COR | «, » ||

    MTR_RED_UNCOR | «, » ||

    MTR_RED | «, » ||

    IRR_FP_SIGN | «, » ||

    IRR_FP_OPEN | «, » ||

    IRR_FP_SIGN_CHK | «, » ||

    IRR_FP_CHK | «, » ||

    IRR_20PSIG_SIGN | «, » ||

    IRR_20_PSIG_VALUE | «, » ||

    IRR_40_PSIG_SIGN | «, » ||

    IRR_40_PSIG_VALUE | «, » ||

    IRR_60_PSIG_SIGN | «, » ||

    IRR_60_PSIG_VALUE | «, » ||

    IRR_80_PSIG_SIGN | «, » ||

    IRR_80_PSIG_VALUE | «, » ||

    DTE_REM | «, » ||

    DTE_REC | «, » ||

    IRR_CALL_REMARKS | «, » ||

    IRR_SEAL_COND | «, » ||

    IRR_G_OBSER | «, » ||



    inproving_result_remarks, MTR_RET_CRD


    path_part varchar (50);


    user_nam: = WebUtil_ClientInfo.Get_User_Name ();

    path_part: = to_char (sysdate, 'DD-MM-YYYY (MI-HH-SS)');

    lv_File_Name: ='C:\Users\'|| user_nam | "\CMS_MIR_'|| path_part |'. CSV';

    -Open the file in write mode

    lv_File: = client_text_io. FOpen (lv_File_Name, 'W');

    -Write the header columns


    -- Write lines in the file

    FOR i IN Load_Rows LOOP

    client_text_io. Put_line (lv_File, i.DATA);



    client_text_io. FClose (lv_File);

    -Open the file in read mode

    lv_File: = client_text_io. FOpen (lv_File_Name, 'R');

    -Close file

    client_text_io. FClose (lv_File);

    Message ("meter inspection report was generated: C:\Users\'||") user_nam | "\CMS_MIR_'|| path_part);

    Message ("meter inspection report was generated: C:\Users\'||") user_nam | "\CMS_MIR_'|| path_part);



    Looking for a better and efficient solution from the experts.

    Kind regards


    Create the file on the server using the text_io (and not on the client using client_text_io).

    And then when it is created, transfer the entire file to your customer using WebUtil file transfer.

Maybe you are looking for