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.
>
>

Similar Messages

  • Add multiple graphs in one chart(ex.scatter chart) using labview excel report generation toolkit

    How to add multiple graphs in one chart(ex.scatter chart) using labview excel report generation toolkit. Assume like my test data is like below:
    X-Axis
    Data1
    Data2
    1
    1
    2
    13
    2
    3
    14
    3
    4
    15
    5
    5
    16
    3
    6
    7
    7
    The above graph generated manually in excel. I want to generate the same using excel report generation toolkit. when I use Excel Insert Graph.vi where the input data is 2D array with numeric data but here labview converts the empty cells (eg.x -axis 1,data1- is empty) as zero and while plotting i am getting zero for empty cell values.
    Can anyone please help me on how to plot the graph without adding zero for empty cells?
    Thanks&Regards,
    Bharathi T
    TE
    X-Axis
    Data1
    Data2
    1
    1
    2
    13
    2
    3
    14
    3
    4
    15
    5
    5
    16
    3
    6
    7
    7

    Hi Bharathi,
    The Excel Insert graph function takes in only 2d arrays as inputs. Since arrays can only have numeric values, any table with a null string is read as 0. Now to get a plot like you mentioned, you could read the table and replace blank Strings as NaN. NaN values in an array when plotted do not appear in the excel sheet. For reference I have attached a sample vi to help you understand.
    Regards
    Vijetha Nuthakki,
    Applications Engineer
    NI Systems India
    Attachments:
    Excel_graph_multiplot.vi ‏21 KB

  • 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

  • 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

  • Report Generation error -41007

    I have installed Report Generation toolkit in evaluation mode.
    But running the examples always show error -41007 .
    How to solve it ?

    see here
    It seems you have not installed properly. Try re-installing. Post back.
    Mathan

  • LabVIEW6i Report Generation ERROR

    I have LabVIEW6i with LabVIEW 6.0 Run Time Engine and LabVIEW 6.0.2 patch updated with LabVIEW 6.0.2 Run Time Engine, at my development environment. I have read all the necessary related documents on the NI website, but did not help for the problem.
    I run an example from examples section of Report Generation vi's.
    I run the example "Sample Test Report.vi" and get the following error:
    1)-->Error -2147352567 occurred at The margins are invalid.. in Print Report.vi->Sample Test Report.vi.
    I open the Print Report.vi to check for the margins settings, I dont find any, and when I run the "Print Report.vi", I get the the following error:
    2)-->Error 1 occurred at "Generate Report Get Data to Modify.vi".
    Possible r
    easons:
    Object 0x000000 is not valid.
    I tried to debug the Print Report.vi, then I find the 2nd error is from "Generate Report Get Data to Modify.vi".
    I dont find any possibility to modify or change the margins. Or what necessary modifications I have to make to what *.vi, and excute the required *.vi's.
    Reply awaited.
    Thanks in advance.
    Sudhir N.

    I don't use the Report Generation functions much but I can say that there is a Set Report Margins.vi under the Report Generation>Report Layout palette. It is not included in Sample Test Report.vi example but you can add it. Probably the reason you got the error when running Print Report.vi is that you didn't run the New Report.vi first in order to create a reference.

  • Smartform report generation error

    Hi,
    I have a problem with a report calling a smartform. The report works perfectly on the 1 system but on the other system there is a generation error. I found that the problem lies with the following declaration:
    data: otf_info type SSFCRESCL. 
    I compared the structures on the different systems and they are identical. The only difference is the Support Package levels. The error occurs on the system with the higher support package - SAPKB64015 (basis and aba) whereas the other system is still at level 12 (SAPKB64012).
    Any ideas what is causing the generation error and what could be done to fix it?
    Regards
    Liza-Marie

    Hi ,
    I think there may be some errors in function group errors.
    Try the following :
    T/Code : SMARTFORMSEnter the name of the form> Test--> This will leads to function module --> Utilities(Menubar)-=-> Repair function group --> Repair.
    After repairing the function group --> Save and Activate.
    Then transport the Smartform to other system .
    Regards,
    Lanka

  • 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

  • Decimal delimiter and excel report generation

    Hello,
    I've a problem with the "Report Generation Toolkit" while trying to generate reports in MS Excel.
    I first select data from an Access database table. Although the database table contains information
    in string-format as well as numbers, in the first instance it'll be passed as an array of strings to the
    report generation vi's (generate easy table).
    While my computer's region settings (WinXP) are always set to german standard I now get different
    results if I on the one hand try to generate a report table in Word-format (Word Easy Table)  and
    on the other hand a report in Excel-format (Excel Easy Table).
    While all numbers are displayed correctly within the Word-table, they aren't within the Excel-table.
    Thereby (Excel-table) the numbers are converted falsely as shown below:
    0,12345 -> 0,12345 (values < 1 are displayed correctly)
    1,2345   -> 12.345 (false)
    In my opinion there's a problem with the decimal delimiter. Does anybody have an idea of how to maybe
    modify this way of working only within my application without changing my computer's region settings?
    Thanks & Greets
    Michael

    On the one hand you can configure LabView to either use the localized decimal point or not (Menu Tools-->Options->Frontpanel->Use localized decimal point), on the other hand you can format singlse strings either with or without using the localized decimal point. The VI "format sting.vi" can use the format-sting %.; or %,; to define the decimal point. (Just make a double-left click on the VI to start the format-string editor for help).

  • Changing the Size of generated graph in excel report generation toolkit

    Hi, i am trying to build a report generation vi for my Structural health monitoring system in which i need to export 3 graphs in to an excel report. The idea is to have the report on a single page, but when i paste them along with the ceiling and pillar deviation percentages, the report just exceeds the page limit. I wanted to know whether one can change the size of the graphs in excel? One can do it in word(tried that), but i dont want to use the bookmark option as it intend to put this up as a webservice in the next step. I am using LabVIEW 2009 Thanks.
    LabVIEW 8.2,8.6,2009...still learning
    Attachments:
    Report Generation SHM.vi ‏30 KB

    Hi,
    I haven't tried this myself, but looking through the report generation toolkit the "Excel format image VI" (in the Excel specific tab of the Report Genertaion window) looks to be the one you are after. The help entry for the VI says to: "Use this VI to format any type of image in a worksheet, including front panel images, images from a file, and graphs"
    Hopefully this will help.
    -CC 
    "If anyone needs me, I'll be in the Angry Dome!"

  • Report generation error

    Hi,
    I'v created a query by Query Designer. On execution of the query on web the following error message is represented : "The query could not be generated without errors."
    The message details :
         "Program RSR_BAD_CODING for the query could not be generated without errors.
         The generated report was saved under the name RSR_BAD_CODING and must be analyzed.
         Please edit program RSR_BAD_CODING and carry out a syntax check there ('Check' key) to ..."
    Where I can found this program for checking syntax?
    Please help...
    many thanks in advance,
    Fiodar.

    you can see the code for this using transaction se38 and entering  the name there.
    However this is a SAP delivered program and you should not be making changes to it.
    Have a look on OSS there are 34 notes related to this program and issues with it.
    hope it helps
    alan

  • Crystal Report generation error

    Hi,
    I m using VS 2008 for development web application on local machine. One of my page is being used to display crystal reports through report document as usual.
    I deployed my application on web server windows 2008 R2 and I have also properly installed CRRedist2008_x64.msi & CRRedist2008_x86.msi on web server
    But When I open this page on browser I always get en error on line Declaring reportdocument object Like
    Retrieving the COM class factory for component with CLSID {5FF57840-5172-4482-9CA3-541C7878AE0F} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).
        Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
      Exception Details: System.UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {5FF57840-5172-4482-9CA3-541C7878AE0F} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).
    ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6 and IIS 7, and the configured application pool identity on IIS 7.5) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.
    To grant ASP.NET access to a file, right-click the file in File Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.
      Source Error:
    Line 44: Line 45: Dim rpt = New ReportDocument()
    Line 46:         rpt.Load(Server.MapPath("../Reports/CrRcpt.rpt"))
    Please help me to work on crystal report in my project:
    Thanks

    You have to be careful on the files you deploy. There is Crystal Reports 2008 (v. 12.x) and Crystal Reports Basic for Visual Studio 2008 (v. 10.5).
    If you are referencing CR assemblies of version 12.x, then you have to use the runtime files from here:
    MSM
    https://share.sap.com/a:328ro3/MyAttachments/53ecd0f0-09d3-4633-ada3-eeb7639fcd37/
    MSI
    https://share.sap.com/a:328ro3/MyAttachments/b7b145e0-eab2-46d0-bab1-e072d4f2af35/
    Note that CR 2008 (v. 12.x) does  not have 64 bit runtime.
    If you referenced CR assemblies of version 10.5, then you need to use the runtime files from here:
    Crystal Reports for VS 2005 and VS 2008 Updates & Runtime Downloads
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter
    https://twitter.com/SAPCRNetSup

  • Report Generation Error Code=1 applying patch 1471898

    When apply the file g1471898 the adpatch was unable to generate reports. The message is ERROR [Code=1] generating report ....

    Thats not much to go on.
    You should probably take this up with Oracle Support.
    But surely there is more in the logs than just that.
    You dont have any 'ld: fatal: Symbol referencing errors..' or
    something along those lines?
    If you cant sort out the issue from your log files, then
    you might want to recompile your apps schema and try the g-driver
    again. Before contacting Support.

  • How can i create multiple page report using excel report generation toolkit from excel template?

    i am having code which create report in excel.but it prints only single page. if content is more than size of template than insted of tacking new page it prints only single page.Please help me out.
    Anyone has material for learning activeX in labview? Please mail me on [email protected] 
    PBP (CLAD)
    Labview 6.1 - 2014
    KUDOS ARE WELCOMED.
    If your problem get solved then mark as solution.

    Hi thanks for reply.....
    PBP (CLAD)
    Labview 6.1 - 2014
    KUDOS ARE WELCOMED.
    If your problem get solved then mark as solution.

Maybe you are looking for

  • Select a range of rows to be displayed using ROWNUM

    I am trying to select a range of records to be displayed using Rownum It works using MINUS SQL> select rownum,department_id,department_name from departments where rownum <= 20 minus select rownum,department_id,department_name from departments where r

  • SQL Command Object

    We are in the process of migrating reports from SSRS to Crystal 2011. In SSRS we are able to paste complex SQL into reports as the data source for the report (e.g. multiple CTE's, correlated subqueries, temp tables, etc). It appears that we can accom

  • I can't remove keyboards after Emoji App

    I'm having trouble with removing keyboards and I can't access some of the keys of the keyboard. If I go to Settings>>General>>Keyboard>>Keyboards.  I can add keyboards and have now added like 10 of them but I can't delete them.  I click on Edit and t

  • Sync with new laptop

    I had to get a new laptop, how do I sync my iPhone with my new laptop since my old one is not working anymore?

  • [Process: TLReportedTime]: there is no transaction record at level -1 for this approval process

    This is happening in a demo version. Nothing has been changed. Any idea if this has been reported earlier ? Thanks, R