Exit Excel Report

Hi
after I opened a Excel Report (New Report.vi) I can edit and save it without any problems.
The problem I have now, is that I don't know how to EXIT Excel after editing. The New Report.vi only gives back a "report out" reference. which I can't use for exit the Excel application.
Thanks in advanced
                         Norick
Solved!
Go to Solution.

Hi Norick,
If you use the Dispose Report.vi, there is an optional input on that VI that will close the application for you.
-D
Darren Nattinger, CLA
LabVIEW Artisan and Nugget Penman

Similar Messages

  • Excel report generation does not exit excel

    I am using the excel report generator to save test reports.  I can create the report using a template and write to it when needed with no problems.  After every test step I add data and save the report.  I keep excel closed by using the no change setting for the window state.  I do not want the user to see excel or even know it is there.
    The issue is when I am done testing and use the dispose report vi, it leaves an instance of excel open that you can see in the task manager.  And the only way to close that instance is to open one of the files that was created and close it and then exit excel.  The memory used by that instance grows a little each time a new file is created.
    Labview 2011 SP1 (11.0.1.F2 32bit)
    Excel 2007
    How can I close excel completely after each test?
    Solved!
    Go to Solution.
    Attachments:
    Report Example.png ‏52 KB

    I find it very hard to believe that this function isn't somewhere in the report generation toolkit.  But my 30 second look for it came up with nothing.  So instead I wrote a function that does a task kill for you.  Keep in mind this only works in Windows, and this will do the same thing as a end task in Taskmanager so only use it when you are sure your are done saving all reporting.  Saved in 2011.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.
    Attachments:
    Taskkill Excel Report.vi ‏22 KB

  • Webutil Error when trying to run excel report from Oracle form

    I am trying to run an excel report from a oracle from but it throws me following error:
    Oracle.forms.webutil.fileTransfer.FileTransfer bean not found. WEBUTIL_FILE_TRANSFER.getmaxtransfer will not work
    Can you tell what is this error due to and how to eradicate this.

    hi
    Did you generate .plx?
    please check if you did not generate plx and if u did not create db packages please create the webutil user and create db packages.
    here is the webutil configurations.
    How to get up and running with WebUtil 1.06 included with Oracle Developer Suite 10.1.2.0.2 on a win32 platform
    Solution
    Assuming a fresh "Complete" install of Oracle Developer Suite 10.1.2.0.2,
    here are steps to get a small test form running, using WebUtil 1.06.
    Note: [OraHome] is used as an alias for your real oDS ORACLE_HOME.
    Feel free to copy this note to a text editor, and do a global find/replace on
    [OraHome] with your actual value (no trailing slash). Then it is easy to
    copy/paste actual commands to be executed from the note copy.
    1) Download http://prdownloads.sourceforge.net/jacob-project/jacob_18.zip
      and extract to a temporary staging area. Do not attempt to use 1.7 or 1.9.
    2) Copy or move jacob.jar and jacob.dll
      [JacobStage] is the folder where you extracted Jacob, and will end in ...\jacob_18
         cd [JacobStage]
         copy jacob.jar [OraHome]\forms\java\.
         copy jacob.dll [OraHome]\forms\webutil\.
      The Jacob staging area is no longer needed, and may be deleted.
    3) Sign frmwebutil.jar and jacob.jar
      Open a DOS command prompt.
      Add [OraHome]\jdk\bin to the PATH:
         set PATH=[OraHome]\jdk\bin;%PATH%
      Sign the files, and check the output for success:
         [OraHome]\forms\webutil\sign_webutil [OraHome]\forms\java\frmwebutil.jar
         [OraHome]\forms\webutil\sign_webutil [OraHome]\forms\java\jacob.jar
    4) If you already have a schema in your RDBMS which contains the WebUtil stored code,
      you may skip this step. Otherwise,
      Create a schema to hold the WebUtil stored code, and privileges needed to
      connect and create a stored package. Schema name "WEBUTIL" is recommended
      for no reason other than consistency over the user base.
      Open [OraHome]\forms\create_webutil_db.sql in a text editor, and delete or comment
      out the EXIT statement, to be able to see whether the objects were created witout
      errors.
      Start SQL*Plus as SYSTEM, and issue:
         CREATE USER webutil IDENTIFIED BY [password]
         DEFAULT TABLESPACE users
         TEMPORARY TABLESPACE temp;
         GRANT CONNECT, CREATE PROCEDURE, CREATE PUBLIC SYNONYM TO webutil;
         CONNECT webutil/[password]@[connectstring]
         @[OraHome]\forms\create_webutil_db.sql
         -- Inspect SQL*Plus output for errors, and then
         CREATE PUBLIC SYNONYM webutil_db FOR webutil.webutil_db;
      Reconnect as SYSTEM, and issue:
         grant execute on webutil_db to public;
    5) Modify [OraHome]\forms\server\default.env, and append [OraHome]\jdk\jre\lib\rt.jar
      to the CLASSPATH entry.
    6) Start the OC4J instance
    7) Start Forms Builder and connect to a schema in the RDBMS used in step (4).
      Open webutil.pll, do a "Compile ALL" (shift-Control-K), and generate to PLX (Control-T).
      It is important to generate the PLX, to avoid the FRM-40039 discussed in
      Note 303682.1
      If the PLX is not generated, the Webutil.pll library would have to be attached with
      full path information to all forms wishing to use WebUtil. This is NOT recommended.
    8) Create a new FMB.
      Open webutil.olb, and Subclass (not Copy) the Webutil object to the form.
      There is no need to Subclass the WebutilConfig object.
      Attach the Webutil.pll Library, and remove the path.
      Add an ON-LOGON trigger with the code
             NULL;
      to avoid having to connect to an RDBMS (optional).
      Create a new button on a new canvas, with the code
             show_webutil_information (TRUE);
      in a WHEN-BUTTON-PRESSED trigger.
      Compile the FMB to FMX, after doing a Compile-All (Shift-Control-K).
    9) Under Edit->Preferences->Runtime in Forms Builder, click on "Reset to Default" if
      the "Application Server URL" is empty.
      Then append "?config=webutil" at the end, so you end up with a URL of the form
          http://server:port/forms/frmservlet?config=webutil
    10) Run your form.hope this helps u.
    sarah

  • My application will not open or create an Excel report.

    When I run the vi in LabView, it runs fine, and It will open Excel and/or save an Excel report depending on what I select on the express vi for report generation. After I build it with application builder, it runs like normal and displays the resulst on the front panel, but it does not open Excel or save an Excel file for a report. I get an error 7 and the source is listed as "New Report.vi -> subMS Office Report Block.vi -> MS Office Report.vi -> sound.vi" where sound.vi is my top level vi. I have added the _excel dynamicvis.vi and _word dynamicvis.vi as dynamic vi's and I've added _excelsub.llb and _wordsub.llb as support files. I searched for the new report.vi and added the library it was in as a support file. I have saved sound.vi as a library and included vi.lib files, external subroutines, and run-time menus, and I used this version of the sound.vi and added sound.llb as a support file. Is there anything else I'm forgetting?

    Hello mwallace,
    The behavior you are seeing is probably due to one of the VIs being added as a support file instead of a dynamic VI. When adding a file as a dynamic VI, Application builder will ensure that all subVIs are included.
    The following knowledgebase examples this issue in some more detail.
    Error 7 When Building Applications and DLLs That Use the LabVIEW Report Generation Toolkit
    Please let me know if you have any questions.
    Regards,
    Matt F
    Keep up to date on the latest PXI news at twitter.com/pxi

  • Error while opening Excel report using servlet

    Hi
    I am using a servlet to open an excel report which has multiple sheets . But there is a weird problem when i try to open an excel report with two sheets having the same name .
    Generally when an excel with same sheet names is opened with Microsoft excel , it will open the excel file with a dialog showing error .
    But when i am trying to open through a servlet after that open/save dialog box comes , its sending two requests and that too the second one from another browser . How i am saying that its sending from another browser is , during the second time its not passing the session checks which i placed .....I mean the session for the request doesn't have any data while it was expected to have some data which i placed in Session while logging in .
    Can any one let me know why this is happening ?/

    Refer Note:280376.1 on MetaLink. Hope this will help you resolve the issue.
    Thanks
    Shail

  • Error while opening excel report

    Hi,
    While opening the excel report i am getting the below error.
    REP-51026: No output for job 8923
    Note: We have deployed the report in 10g Oracle Reports server present in a UNIX m/c.
    Please let me know what i have to do.
    Thanks & Regards,
    Sudhaharan.
    Message was edited by:
    jsudhaharan

    Refer Note:280376.1 on MetaLink. Hope this will help you resolve the issue.
    Thanks
    Shail

  • Issue...SAP gui popup window along with Excel report

    Hi,
    In MSS portal I am trying to review one excel report. While clicking particular report link in portal it is opening a small sap gui window while generating excel report. I don't know how to stop that gui pop-up window?
    Thanks,
    Padmanaban

    Hi Padman,
    Pls. install JVM on you local machine..
    Regards
    Pramod

  • How to Display Excel Report in Client machine  in Forms11g

    Hi All,
    we are running database in Linux server and separate Linux Application Server , But my question is how to display the data to Excel Report in the Client machine
    in Forms11g applications.
    Plesase suggest any method.
    Regards
    Venkatesulu Gunisetty

    You should use webutils.
    For proper answer, place ur request here in oracle Forms Thread,
    Forms

  • My excel report is not working in executable file ,however,it works well in vi

    Hi all ,
         Could any one please help me in getting the reason behind the executable file not working for excel report generation,however I can get the same function without any problem in main vi.
    I am attaching my code and executable file also ,please have a look into it and let me know where I am wrong.
    Thanks & Regards !
    sarita
    Message Edited by MindPower on 10-24-2007 01:40 AM
    Message Edited by MindPower on 10-24-2007 01:43 AM
    Attachments:
    test datalog.vi ‏264 KB
    test datalog-NEW.zip ‏1020 KB

    I can't open the vi in the moment. But by your description I think that I know the solution.
    When you build the executable you've to add dinammically the vi's from report generator that aren't in your main vi hierarchy. So, you've to open the vi's and find those that are open trough "open vi reference" and add them dinamicaly.
    And don't know if these tips are enough.
    From NI Zvezdana S.
    "When you use the Report Generation Toolkit to build a stand-alone application with the Application Builder, you must add _Word Dynamic VIs.vi from _wordsub.llb and _Excel Dynamic VIs.vi from _exclsub.llb as dynamic VIs. These two VIs contain subVIs that are called dynamically by the high-level Report Generation VIs. I believe that if you grab these VIs from the (desired office version part of the) installation CD instead of from the development machine, then everything should work. "
    Software developer
    www.mcm-electronics.com
    PS: Don't forget to rate a good anwser ; )
    Currently using Labview 2011
    PORTUGAL

  • Report generation Toolkit: Excel report functions error -2146827284

    Hi,
    I'm trying to create an automated report using excel functions from the report generation toolkit in labVIEW. When I run the program that generates the report first time round (the report consists of several worksheets, each worksheet is added onto the report at a diffferent state in a state machine) it always works fine and no error is generated. However, when I run the program again it will infrequently (sometimes it does, other times it will not) generate the undefined error -2146827284, this is coming from one of the excel report functions and it cannot find it on highlight execution mode.
    Does anyone know anything about this error, why it occurs, how to prevent it?
    I would appreciate any help.
    Thanks,
    Rowan

    mebels_cti wrote:
    Found something that helped; https://forums.ni.com/t5/LabVIEW/Error-code-quot-2146827284-quot-when-trying-to-open-an-Excel/m-p/20...
    Excel still open
    So I added this;
    You should use the Application Quit method instead of killing the task. I doubt this is the cause of your issue.
    Ben64

  • Cannot save the excel report in my application

    Hi I wrote a program which can save the data to an Excel report. It runs perfectly on my own computer. After I built the application (exe file), and run it in another computer, which can not save the excel report. On my own computer, it has LabVIEW 2011 and report generation toolkit for Microsoftoffice; and on the other computer, I installed the LabVIEW runtime engine. Did I miss installing some other support software? Can anyone tell me why this is not working?
    Thanks a lot,
    Jane

    Do you have Excel installed on the other computer?
    I also suggest that you read this page : Including Report Generation VIs in Stand-Alone Applications (Report Generation Toolkit)
    Hope this helps
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"

  • Excel report generation error

    Hi,
    Does anyone have experienced (and solved) this behaviour?
    I've been using the report generation toolkit to build word report without
    problem. I've also solved a lot of problems in the excel part of the toolkit
    (e.g. building graphs with >20000 points). It finally works in development
    environment.
    Now when I install the executable (, with the installer) the word reports
    still work, but the excel report don't. The executable does run on a
    different system, but the excel versions are the same (both Excel 2000).
    I have copied the excel library in the data directory of the executable.
    The following error is generated:
    -2147319784
    Old format or invalid type library
    Excel_Open.vi
    This is the first report generation vi that is called. I us
    e it to open a
    template.
    Any help is appreciated.
    Wiebe.

    Hi,
    Surfing the internet, I found this comment:
    *Start quote*
    Sometimes you'll find that a parameter is required that isn't mentioned
    anywhere in the application's documentation. This happens when you need to
    specify system information: the chief example of this is the lcid, which is
    a locale identifier, and which pops up all over the place in Excel. The good
    news is that there is a constant in the Windows unit which provides you with
    the correct value, LOCALE_USER_DEFAULT:
    var
    lcid: integer;
    begin
    lcid := LOCALE_USER_DEFAULT;
    Excel.Visible[lcid] := True;
    There's also a function, GetUserDefaultLCID, but using that value can cause
    an error, complaining about an 'old format or invalid type library' on some
    setups. Using LOCALE_USER_DEFAULT for the
    LCID value should fix that.
    *End quote*
    Could this be the problem?
    Regards,
    Wiebe.
    "Wiebe@AIR" wrote in message
    news:3e79a3aa$0$140$[email protected]..
    > Hi,
    >
    > Does anyone have experienced (and solved) this behaviour?
    >
    > I've been using the report generation toolkit to build word report without
    > problem. I've also solved a lot of problems in the excel part of the
    toolkit
    > (e.g. building graphs with >20000 points). It finally works in development
    > environment.
    >
    > Now when I install the executable (, with the installer) the word reports
    > still work, but the excel report don't. The executable does run on a
    > different system, but the excel versions are the same (both Excel 2000).
    >
    > I have copied the excel library in the data directory of the executable.
    >
    > The following error is generated:
    >
    > -2147319784
    > Old format or invalid type library
    > Excel_Open.vi
    >
    > This is the first report generation vi that is called. I use it to open a
    > temp
    late.
    >
    > Any help is appreciated.
    >
    > Wiebe.
    >
    >

  • Excel report generation

    Hello,
    I am looking for a simple solution to this simple problem:
    I have generated an excel data file using LabVIEW Report Generation Toolkit for Microsoft Office ( see diagram below ).
    Now I would like to add data to this worksheet every time I run this VI ( data must expand in column format instead of
    row)  but i have no Idea how to do it .
    I would appreciate any help.
    Thanks 
    Attachments:
    Excel Report.jpg ‏59 KB

    That's what the start input is for. You tell it where to insert the cells.
    Asides:
    Why aren't you wiring the error out from the new report function to the next function?
    Do not autoindex an array and wire a value to N. Do one or the other, not both. If you do both the loop will run for whichever value (N, or the array size) is smaller.
    Your loop with the function node can be simplified by replacing it with a single Divide function and feeding the Divide function the arrays directly. The numeric functions (as well as many other functions) are polymorphic.
    To learn more about LabVIEW it is recommended that you go through the introduction material, tutorial(s), and other material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. You can also take the online courses for free.

  • Excel Report Generator Error

    Hello,
    I have a test application that uses MS Excel Report toolkit to print the test results using a custom template file. When I try to print the test results I get the following error -2146959355 (see attached picture). Any idea what triggers this? It seems that is generated by Excel Active X control. I also attach the Vi I use to print the test results as well as the templates
    Thank You
    Nick
    Solved!
    Go to Solution.
    Attachments:
    Error -2146959355.jpg ‏1692 KB
    Thales Report generation v2.0.vi ‏47 KB
    EU_Report_template.xlt ‏40 KB

    look at this
    http://digital.ni.com/public.nsf/allkb/1C025F018CB​5761686256C56007DD258
    http://digital.ni.com/public.nsf/allkb/83211E3A088​D0C3786256DB700621FE8

  • Issue with excel report generated by Crystal Report

    Dear support center,
    I am trying to evaluate the crystal report package available through the VS2005 Pro edition for an application at work. I am new to Crystal Reports and using CR 10 on my system.
    Here is a visual image of my report format. I use a dataset to flood the report.
    http://www.coe.uncc.edu/~jjzachar/CRHelp/CrystalReport.JPG
    Here is the excel report I receive. I want to eliminate:
    http://www.coe.uncc.edu/~jjzachar/CRHelp/excelOutput.JPG
    1. The extra blank rows after each "data entered or shown in my report"
    2. It seems like many of the fields are being merged. How do I avoid this?
    Please help!
    Thanks a lot for your time ... in advance!
    Sincerely,
    Jerry Zacharias

    Swetha,
    I export the report using "VB.net" code. So, I dont' really get any window options.
    Here is the snippet of code I am using ...
    Private Sub ExportReportFormats(ByVal fileName As String)
            'Dim a As New CrystalDecisions.Shared.DiskFileDestinationOptions()
            'a.DiskFileName = fileName
            Dim CrExportOptions As CrystalDecisions.Shared.ExportOptions
            Dim CrDiskFileDestinationOptions As New CrystalDecisions.Shared.DiskFileDestinationOptions()
            CrExportOptions = objRpt.ExportOptions
            If fileName.EndsWith(".pdf") Then
                Dim CrFormatTypeOptions As New CrystalDecisions.Shared.PdfRtfWordFormatOptions()
                CrExportOptions.ExportFormatType = CrystalDecisions.Shared.ExportFormatType.PortableDocFormat
                CrExportOptions.ExportDestinationType = CrystalDecisions.Shared.ExportDestinationType.DiskFile
                CrExportOptions.DestinationOptions = CrDiskFileDestinationOptions
                CrExportOptions.FormatOptions = CrFormatTypeOptions
                'CrDiskFileDestinationOptions.DiskFileName = "C:\Documents and Settings\Robot\Desktop\Trash\" & fileName
                'CrDiskFileDestinationOptions.DiskFileName = "C:\Documents and Settings\Robot\Desktop\Reports\" & fileName
                CrDiskFileDestinationOptions.DiskFileName = exportFolderLocation & "\" & fileName
            ElseIf fileName.EndsWith(".xls") Then
                Dim CrFormatTypeOptions As New CrystalDecisions.Shared.ExcelFormatOptions
                CrExportOptions.ExportFormatType = CrystalDecisions.Shared.ExportFormatType.Excel
                CrExportOptions.ExportDestinationType = CrystalDecisions.Shared.ExportDestinationType.DiskFile
                CrExportOptions.DestinationOptions = CrDiskFileDestinationOptions
                CrExportOptions.FormatOptions = CrFormatTypeOptions
                'CrDiskFileDestinationOptions.DiskFileName = "C:\Documents and Settings\Robot\Desktop\Trash\" & fileName
                'CrDiskFileDestinationOptions.DiskFileName = "C:\Documents and Settings\Robot\Desktop\Reports\" & fileName
                CrDiskFileDestinationOptions.DiskFileName = exportFolderLocation & "\" & fileName
            End If
            objRpt.Export()
        End Sub

Maybe you are looking for

  • Trying to connect a home computer using Outlook 2013 to my business Exchange server 2010.

    I have a new Dell XPS with Outlook 2013 installed and the native email client installed. I was able to enter in my exchange 2010 credentials to the native email client and it worked. when I try to enter the credentials for Outlook 2013 I received an

  • Installing E-business suit on windows server 2003

    Hi guys, I m getting host/domain error at pre-installation checks..I don't have a lan connection so i did as following added an entry in the host file 127.0.01 esuit.learning.com when i tried first it didnt give me this error but this installation th

  • PDF Password Protection Help

    I need help password protecting my document. The security method restrictions aren't allowing me to encrypt the document and I need the encryption because the job application is with the Department of Homeland Security. Please Help Me!!!

  • Reg : mtl_item_categories_interface

    Hi all, I am trying to upload data into inventory thru use of interface any api. what i did is i created a temporary staging table and added data to it then moved the data to MTL_ITEM_CATEGORIES_INTERFACE .noW trying to move this data to base tables

  • New B75MA-E33

    I just installed the above motherboard with a new power supply and optical drive. I can access the bios. It will not boot from the existing Windows XP hard drive I am using. The Windows XP booted normally on another computer. I suspect there are sett