Stand alone exe errors using report generation vi's

I have a stand alone application that uses some report generation vi's. I have added the _wordsub.llb as a support file. In the main program I have told the report generations vi's where to find the _wordsub.llb so it can load the dynamic vi's as needed. The problem is when I run the stand-alone executable I get an open refernce error for one of the dynamic vi's that says that vi is not executable. But when I reconfigure the executable and include that vi as a dymaically loaded vi in addition to the _wordsub.llb, the stand alone works error free. Any suggestions?

It really depends on what version of office you are using. Some methods have different set of parameters or even different names, labview does not adjust them accordingly, even though the code might execute but it will fail during build process. You must reselect the methods manually in order to build the executable. Most time you need to build different executables for each office version.
-Joe

Similar Messages

  • I am using report generation toolkit 1.1 with Labview 7.0 and Office 2003 profession​al. The create new report VI opens Excel but throws error (-21471672​62- from automation open VI) when I try to open MS word. please help...

    I am using report generation toolkit 1.1 with Labview 7.0 and Office 2003 professional. The create new report VI opens Excel but throws error (-2147167262- from automation open VI) when I try to open MS word. please help...

    Hi Leo22,
    Does this error occur if you use any of the example programs that come shipped with LabVIEW? I would try opening one of the examples that write data to Word and see if those give you an error. Also, have you tried just putting down a New Report.VI and change the report type to Word? If this simple vi (that's all you need to open Word) breaks, I would check to see if there are any instances of Word still open. Check the task manager to see if any word processes are still open. There should not be a problem accessing Word 2003 from LabVIEW 7.0. If neither of these solutions work, please give some more detail about your application and we can research further. Thanks!
    Jeremy L.
    National Instruments
    Jeremy L.
    National Instruments

  • Error when using Report Generation Toolkit

    Hi, all,
    I am using Report generation toolkit to generate a report in either
    word or excel format. But i even can't run the "new report.vi". It
    returns an error code of "Bad variable type (-2147352568)", and seems
    this error comes out from the "call by reference" after the
    word/excel's "open VI reference". I have checked the folder
    "C:\Program Files\National Instruments\LabVIEW
    6.1\vi.lib\addons\_office", there are "_exclsub.llb" and
    "_wordsub.llb". The respect VIs are all inside. I don't know why there
    is such error. Currently i am using labview 6.1, Microsoft office 2000
    and Windows NT 4.0.
    Your kindly help will be appreciated very much!!!
    Thannk you in advance!! ^_^
    Your sincerely,
    celery

    So, if you place just New Report.vi on the Block Diagram, wire in the report type and run it, it gives you this error? Do the example programs which ship with the toolset give this same error also? If so, I would just reinstall the toolset first and see if that helps. It sounds like the entire install is corrupt.
    J.R. Allen

  • Error Showing While Using Report Generation ToolKit VIs

    Hi All,
               When I use report generation VIs Like Excel Easy Tables its showing following errors and i am not able to contiune using the same,
    C:\Program Files\National Instruments\LabVIEW 8.2\vi.lib\utility\NIReport.llb\Set Report Font.vi
        - LabVIEW 8.0 changed a constant that was wired to a Case structure to a hidden control to maintain compatibility with LabVIEW 7.1 and earlier.
        - LabVIEW 8.0 changed a constant that was wired to a Case structure to a hidden control to maintain compatibility with LabVIEW 7.1 and earlier.
    what might be the issue, i am using LabVIEW 8.2

    Hi,
    In
    LabVIEW 7.1 and earlier, subVIs could be kept in memory by wiring a
    constant to a Case structure and placing the subVI in a case that would
    not be executed. For example, you could wire a True constant to the
    Case structure and place a subVI in the False case of the Case
    structure, and LabVIEW would load the subVI along with the calling VI.
    However, from LabVIEW 8.0 onwards, the case structure is optimized to remove code that is not going to be executed. Changing the
    constant to a control ensures that this VI behaves as it did in LabVIEW
    7.1 and earlier. If the intent is not to keep the subVIs in memory, you
    can change this control back to a constant by right-clicking the
    control and selecting 'Change to Constant' from the shortcut menu. The
    proper way to keep a subVI in memory without calling it is to use a
    Static VI Reference.
    Good Luck!
    Warm regards,
    Karunya R
    National Instruments
    Applications Engineer

  • Error 1045 Using Report Generation Excel 2010

    Hello,
    The attached code throws an error 1045 when using Excel 2010.  I don't get this error when using Excel 2007.
    Please Advise
    Thanks
    Attachments:
    Source.zip ‏66 KB

    Take a look at this Knowledge Base article and see if if helps.
    Error 1045 When Using Report Generation Toolkit for Microsoft Office
    http://digital.ni.com/public.nsf/allkb/3E4102D8B91D0F9E86256CE0006BADCB
    Applications Engineer
    National Instruments

  • How to populate the last empty row in Excel without using Report Generation Kit

    I wrote  a Labview SUb Vi that uses Report Generation Toolkit that is not loaded on the test stand. I am looking to convert it from Report Generation Vi like New Report,  Append Table to Report, Dispose Report. The tunneling through all the report generation Vis seems extensive. Code is attached. Thanks, Greg
    Greg

    Thank you that was a big help...
    I used the Excel Forum to get a lot of great ideas.  My code is almost working.
    There is a 2-D String Array that represents the String data that I am exporting to the Excel File Sheet 1 - 5.
    I am attempting to determine the last populated row in sheet 1 then populate the next row of Sheet 1.  Since all 5 sheets are populated every time, I should not have to search every sheet for the last row.
    I am getting two row populated on sheet 1 with seeming the same data.
     I found an AXExcelWrite2D ArrayWorksheet.vi that I thought would work.  I think there is a Table  determination that is causing me problems.  The link is http://lavag.org/topic/13324-labview-and-excel-activex-or-ado/.  The Application Invoke Node has a convert formula with "FromReferenceStyle" with R1C1 Attached to it.   I am not sure what this function is doing.  When I try to bring the function help up, there is a missing file.
    I am including both the new active x vi and the report generation vi.   Report Generation VI works.
    I would appreciate any assistance I can get on this.
    Thanks
    Greg
    Greg
    Attachments:
    REPU Test Data Population using Active X Write Save.vi ‏92 KB
    REPU Test Data Population.vi ‏60 KB

  • Unmerge cells using report generation

    Hi,
    I have an issue using report generation toolkit, I'm writting text data to a range of cells and the cells get merged because of that. So I need to unmerge cells in order to be able to write again in  thoose cells, because if the cells are merged writing cause an error.
    I have found a VI in the report generation toolkit to merge cells but I can't find one to unmerge them.
    Is there a way to do that?
    Thanks
    Olivier

    Hello Olivier,
    What version of LabVIEW do you have?
    How are the cells getting merged?
    Can you provide information about the error message you are receiving?
    Regards,
    Juan Galindo
    Applications Engineering
    Juan Galindo
    Applications Engineer
    National Instruments

  • How to justify the values in table using report generation tool kit

    Hi
    How can we align the values in excel table using report generation toolkit.
    like left,right,center.
    Regards,
    hari
    Attachments:
    Report_excel.vi ‏34 KB
    New Bitmap Image.JPG ‏134 KB

    Hi,
    A trigger is designed to be a part of a transaction, not it's end.
    It is like following these steps (not really accurate, but should give an idea):
    1. programA issues INSERT statement on tableA
    2. 'control' goes over to the database
    3. constraint checks happen
    4. the associated triggers on tableA do their work (e.g. fetching a sequence value for a primary key)
    5. 'control' goes back to programA
    6. programA decides if a commit (no error occurred) or a rollback (error case) has to be issued.
    Did this help? Probably not, I'm not happy with what I wrote, but anyway... :)

  • Stray Blob with Dual Monitors and a Stand Alone exe

    Hi,
    When I run any stand alone exe that I make on a dual monitor system (XP Media Center) I get a blob (see attachment) that is stuck in the middle of the primary monitor.  I tried a very simple app and a complicated one.  Clicking on this blob will make my app run in the foreground and if my app is in the foreground then the blob will show up in front of everything else except for my app.
    I'm using LabVIEW 8.01.
    Thanks,
    Albert
    Attachments:
    Blob1.GIF ‏8 KB

    Have you tried a CO2 fire extinguisher on it? (reference to the movie "The Blob")
    Message Edited by AnalogKid2DigitalMan on 09-19-2006 01:35 PM
    ~~~~~~~~~~~~~~~~~~~~~~~~~~
    "It’s the questions that drive us.”
    ~~~~~~~~~~~~~~~~~~~~~~~~~~
    Attachments:
    200px-The_Blob_poster.jpg ‏16 KB

  • Error in report generation-Load report failed

    I have installed crystal reports  for VS2005 runtime in my live environment.When i try to load the report file from a .Net page i am getting the error'Error in Report generation-Load report failed'.
    This works fine in development and testing but when moved to production we are having issues.
    I believe i have a workaround i.e i need to open the rpt in a VS 2005 environment and re-write the connection string again.This fix had worked in development and testing when we had the same issue.
    But not sure if this is a known issue with crystal reports and if so do we have any hot fixes for the same.
    Please help.

    Hi Don,
    The reason why i posted the item on 'data Connectivity issues' is because i suspect the problem is with the connection string.Though i had provided the correct connection string,re-writing the connection string with the same info might help to fix the issue with loading the report.
    Does it mean that there is a problem in the connectivity?
    I have a risk here that i cant re-write the connection string..i.e to open the RPT file in VS2005 and bind it.The production web server & database server sits in a  third party environment and it is not in the company network.So i cant connect to this server to re-write from any other severs in the network.
    Is there any fix which can applied to the server to get this issue resolved?
    Cheers
    Nithya.

  • Labview using Report generation toolkit in 2011 run time engine

    is that possiblity to run the  word in labview using Report generation toolkit in 2011 run time engine

    It is possible to use the Report generaion toolkit with the run time engine.  But you will have to include a lot of VIs from User lib since the report generation toolkit uses a lot of dynamically called VIs and classses.
    Certified LabVIEW Architect
    Certified Professional Instructor

  • Problem with writing continuous data to excel using using Report Generation vi's

    Hey Everyone,
    I am trying to read the data from DAQ and write to excel continuously using Report Generation vi's. 
    But when I run the VI, it writes only one interation of the while loop (gathering data from DAQ continuously) and doesn't append the data into the same file when I run it again after stoping the VI. 
    I have attached the VI i created. Please let me know if you have any idea to solve this issue. 
    Thanks
    Attachments:
    sample 5.vi ‏35 KB

    There are two problems with your VI.  First, the basic logic of writing/appending to a file (Excel, TDMS, anything) should go something like this:  Open the file, position yourself at the end of the file, then, in the loop, acquire data and write it to the file until you are finished with data acquisition.  When you exit the acquire/write to file loop, then close the file.  In particular, the opening and the closing of the file should not be inside the loop.
    As others have pointed out, writing to Excel might not be optimal, particularly if you are acquiring data at a high rate (and would therefore be writing a lot of data). We actually use Excel in our data acquisition routine, mainly reading from a WorkSheet to get the parameters of a particular stimulus, but also writing the outcome of the response to the stimulus.  As it happens, our "acquisition rate" in this example is on the order of several samples per minute, so there's no problem using Excel (we also sample 16 channels of analog data at 1 KHz -- this gets written as a binary file).
    Second, if you really do want to use Excel, use the (existing) Excel file to which you want to append as the "template" argument of the New Report function.  Then use the Excel Get Last Row function to position yourself at "end of file", as noted above.
    Good Luck.
    Bob Schor

  • How to import pictures into excel sheet without using report generation

    Dear Friends
    I want to know how to import the picture or picture file into excel sheet without using report generation..
    kindly come up with any suggestions or example code
    Regards
    Karthick
    Solved!
    Go to Solution.

    Thank you Rajesh 
    i am going through that vi
    Rajesh Nair wrote:
    Please go through below link
    http://zone.ni.com/devzone/cda/epd/p/id/3638
    Eventhough one subVI is missing i think it will be usefull for you.
    Regards
    Rajesh R.Nair
    Rajesh Nair wrote:
    Please go through below link

  • How to write data which i am reading from spectrum in excel using Report Generation toolkit.

    Hello All,
     I wrote code for reading data from Spectrum analyzer and also for writing in excel using report generation toolkit. When i run program values get read and excel sheet opens also but i cant see anything written in it.
    So if anyone can help me in this i will be very gald. I am attaching screenshot of my program and also attaching .vi file. As i am using drivers you can see some of vi.
    Thanking You,
    Pallavi 
    Solved!
    Go to Solution.
    Attachments:
    Channel_Power.jpg ‏123 KB
    Channel Power_Toolkit.vi ‏64 KB

    Hi Palavi,
    you try to select a specific worksheet what is not existing, therefore just select "Channel Power" (and not Power Channel) and it should work for you.
    Regards,
    Tobias

  • Build stand alone (exe),help?

    hi i want to make build stand alone (exe) but i cant do that, can you tell me where i can found some example
    to make it (explain with images)?
    tanx

    smercurio_fc wrote:
    Reading the manual might be worth trying as well. You keep asking VERY basic questions which can be answered by just looking in the Help, which NI spent a great deal of time making, or doing a simple search. Your question has been asked many times before, all with the same answer.
    Come on Smercurio, that is too much work!  It would really be easier for him if you would just fly to wherever Marp lives, sit next to him, and handhold him through programming for the rest of his LabVIEW career.
    Marp,
    Take the tutorials. How to Learn LV
    Pay for taking some LabVIEW courses that NI offers.
    and RTFM!

Maybe you are looking for

  • Close the Programs that are opened by OSS Note

    Hi,   We had opened some of the standard programs (With access key) and made the modifications as per the OSS note some time back, the programs that were modified are still open for editing even now and the client is concerned about the sanctity of t

  • ClassCastException in Struts

    I have seen similar problems like this but in my case the application works fine under Tomcat but throws this exception into the bowels of struts when I make a mapping.forward() call in my struts action class. I'm sure this is a AS7 configuration iss

  • I'm JS illiterate, need help getting an Acrobat form to work like the Excel file I made it from.

    Hi folks. I am tasked to put together a purchase order request form and it has to be in PDF format. I originally built it in Excel, and after a day and a half of googling, I finally came upon the formula(s) that make 2 of columns interact the way I w

  • Trading Goods & Finished Products

    Hi While creating new material we have to give the the material type and as per this the screen will display.I want to know what is the difference between Finished Product and Trading goods in material type.Can anyone give some example of materials/

  • Feature Request: Reopen PDF at last open page

    1........................... At work, I often have to deal with PDF files (of several hundred pages each) and have to keep shifting from one PDF to another. If I leave a PDF file on page 372, open another file, and return to the first file, I am sent