Report Generation and ActiveX control of MSWord 97

I had posted this problem sometime ago with no response, but I had a chance to look at it again. I wanted to try some examples using MS Word instead of MS Excel. Well I would always get the attached error. It looks like LabVIEW cannot find MS Word. I found out why, I just need to know how to fix it..
I found that the Word._Application (Automation_Refnum) is more then likely using the Microsoft Word 8.0 Object Library Version 8.0 that is installed with Labview. the Problem is I have Word 97 which I believe is version 5.0. Now for Excel both the Microsoft Excel 5.0 Object Library Version 1.0 and Microsoft Excel 8.0 Object Library Version 1.2 appear in the Select Object from Type Library Drop down. It there a Word Object Library missing?
I have LabVIEW running on a WinXP Pro machine with MS Office 97 SR2 installed.. I really wish my company would upgrade to MS Office XP or 2003 but I don't see that happening.
is there anyway to get LV8 to recognize Word 97? I have reinstalled Office and the Toolkit a couple times with no luck. I also had the same problem with LV 7.1.1
Any thoughts or suggestions?
EDIT: Forgot the attachment the first time
Message Edited by jdebuhr on 03-16-2006 08:40 AM
Jeff D.
OS: Win 7 Ultimate
LabVIEW Version: 2011,2010,2009 installed
Certified LabVIEW Architect
Attachments:
MS-Word-Error.JPG ‏16 KB

Hi Jeff,
The issue you are seeing is usually caused by Office not being installed properly. It would be good if you could do a repair on your Word install, make sure all office applications are closed, and turn off all Anti-virus software and registry protectors (i.e Ad-Aware and Spybot).
Go to add/remove programs and find the office install and choose repair, choose to repair word and letthat run, once that is done restart the computer.
Open LabVIEW and place down an ActiveX reference and then right-click the refnum to select the ActiveX class. Scroll through the list to find the Word entry that you need.
If this does not work, you will need to look at the msdn website www.msdn.com to see if this is a known issue with Word 97, and if MS have a way of registering the server. Or find how to register an ActiveX server and then register your Word install to the COM and DCOM in WIndows , as this is where LabVIEW picks up the Servers it has access to.
Regards
JamesC
NIUK and Ireland

Similar Messages

  • [BUG] deploytk.dll file and activex control is NOT uninstalled

    deploytk.dll file and activex control is NOT uninstalled, when you uninstall the latest JRE.
    I have uninstalled the latest JRE, but the file deploytk.dll is still present in c:\windows\system32\ and the related activex control deploytk.dll 6.0.190.4 is loaded in IE8. Please fix this bug.
    Windows Vista SP2

    Unfortunately, it was *all* of my ActiveX controls that wouldn't load. That said, A user of the Info-LabVIEW list came up with the answer: reinstall the RunTime engine - wierd....
    thanks,
    Christopher
    Copyright © 2004-2015 Christopher G. Relf. Some Rights Reserved. This posting is licensed under a Creative Commons Attribution 2.5 License.

  • OCX and ActiveX controls

    Hi there,
    Can anybody please answer to my following questions?
    1. What are OCX controls and ActiveX controls in D2K.
    2. Whats the difference between using OCX and ActiveX control and when to use them
    in our application.
    3. A small procedure exlpaining how to use them in D2K.
    4. Send me a sample form (.fmb) using OCX and ActiveX control (if don't mind).
    Note: One can give answer to one question and other can give to other questions.
    Thanks in Advance.
    Regards,
    Aqueel([email protected]).

    Nevermind, I stopped using the OCX to connect. Maybe they just don't work.

  • IE 11 Restricting Running Scripts and ActiveX Controls on Local Files

    I have been coding for my MediaWiki pages and needed to test these pages with IE 11. However, whenever I open a file in IE 11, an annoying message saying "IE 11 Restricted this website from running scripts and ActiveX controls." How do I do a
    one-time fix to stop this from happening in future to local files?

    to test your WEBSITE.... publish it to a web server. eg. localhost/test.local
    web servers and browsers use http(s), not the file: protocol.
    Questions regarding Internet Explorer 8, 9 and 10 and Internet Explorer 11 for the IT Pro Audience. Topics covered are: Installation, Deployment, Configuration, Security, Group Policy, Management questions. If you are a consumer looking for answers or to
    raise a question, it's highly recommended you head on over to http://answers.microsoft.com/en-us
    Rob^_^

  • How do I read a word file with Report Generation and Labview?

    Hello All:
    I have Labview 2010.
    How do I Read a Microsoft Word File1.doc with Labview and Report Generation Kit?
    File1.doc is a simple file with a few lines and a Table.
    thank you very much.
    \\diego2000

    I don't think that toolkit will help you.  Remember, it's the Report GENERATION Toolkit.  It's designed to create reports not read existing DOCs.
    You can use the standard file VIs to read a Word Doc but you'll have to strip out the formatting information to get at the raw text.
    There may be some other tools or ActiveX techniques that will help.  Hopefully someone more knowledgable on that subject will chime in to help you out...
    Using LabVIEW: 7.1.1, 8.5.1 & 2013

  • Exe giving error for report generation and LV 8.6.1

    I have created and installed a labview application in a PC(windows XP) where labview is not installed.  (already included NI_Excel.lvclass)
    I have used a report(excel) generation to display the results.
    I am getting following error:
    Error Code: -2147352573
    Member not found in NI_Excel.lvclass:
    I am using MS office Excel 2007 SP1
    NI LabVIEW Run-Time Engine:8.6.1.
    Report generation toolkit version:1.1.3
    phani srikanth
    Solved!
    Go to Solution.
    Attachments:
    Error.JPG ‏10 KB

    search the ni website and a 30 day eval copy can be found. For use beyond this period you would have to buy a license (unless you have one of course)
    compatibility can be found on the following link
    http://digital.ni.com/public.nsf/allkb/C9408B9F08D711E786256F3300701D01 
    hope it helps
    TD 
    Please remember to accept any solutions and give kudos, Thanks
    LV 8.6.1, LV2010,LV2011SP1, FPGA, Win7

  • What diff between BIP AttachEntity Report Generation and BIP Report Generation?

    Hi all,
    I want to know the two WF has what's difference.
    I had seen they have same method and step.
    Actually,I want to do a function, when click a button,will generate BIP reports.
    Using the BIP Report Gneration can do this.
    But I want pop a window to open or save the report after the WF finished work.
    Could  BIP AttachEntity Report Generation  do that?
    I had similitude it seem same as BIP Report Gneration.
    Be appropriate to you if you can answer the question.
    Thanks,
    Wenqin

    Ok, let me guess, you are seeing an error that says an invalid printer was selected, right? Well there is a bug in your code but it has nothing to do with the printer that you have selected. Specifically you have some of the margin values set to zero -- which is invalid. The margins have to have a value of at least 1. In case you're interested, I followed down the logic and inside the print report VI the code, for some unknown reason (NI is checking into it), remapps an error code that correctly identifies invalid margins to report one that reports an invalid printer name. Apparently this was first reported in 2008.
    Verified this behavior of both LV2013 and 2014.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Report generation and office versions

    I have developed an application which uses the excell report generation features.  I have Office 2007 on my pc with LV 8.51 and report generation addon 1.1.2.  I wand to distribute (build) the application to users with office 2000.  What steps need to be done.  Do I need 2 different builds, will one build work?  How do I specify which version of the office gets linked, is this dynamic?
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA

    Hi Paul.
    Thanks for the reply.
    When building applications with Report Generation Toolkit VIs, you must complete the following additional steps:
    • From the Source Files tab of the Build Application or Shared Library (DLL) dialog box, click the Add Dynamic VI button to
    add the following two VIs to the application:
    – _Excel Dynamic VIs.vi in vi.lib\addons\_office\_exclsub.llb
    – _Word Dynamic VIs.vi in vi.lib\addons\_office\_wordsub.llb
     Note, you'll need to add the VI's for both versions. You may need to re-name the vi.lib, because they'll have the same name (i think) but the references etc for different office versions do change and hence we you need to call different vi's.
    • If the application you are building contains the MS Office Report Express VI, you must add any Word or Excel templates that you use to the built application. From the Source Files tab, click the Add Support File button to add the template files to the application. By default, the custom destination for the templates is the same as the path that appears in the Destination directory field on the Target tab with a data subdirectory appended. Do not change the custom destination for the files you add.
    For example, if you are using the basic Excel template with the MS Office Report Express VI, add MSOffice_RGT_Template.xlt to the application. The basic template files are located in the
    templates\Report directory.
    Hope this explains it a little better,
    Kind Regards
    James Hillman
    Applications Engineer 2008 to 2009 National Instruments UK & Ireland
    Loughborough University UK - 2006 to 2011
    Remember Kudos those who help!

  • What is the difference between Com Addin and Activex control

    When I searched about them individually, both are described as same.
    Could any one please explain what are they and what is the difference between them exactly.
    Thanks and Regards, Uday Kiran Reddy Project Engineer Technology Infrastructure Services, Wipro Technologies ____________________________________________ Mob: +91-900-061-2578 | Email: [email protected]

    Hello,
    Here is what Wikipedia states for ActiveX:
    ActiveX is a software framework created by Microsoft that
    adapts its earlier Component Object Model (COM) and Object
    Linking and Embedding (OLE) technologies for content downloaded from a network, particularly in the context of the World
    Wide Web.<sup class="reference" id="cite_ref-msdn1_1-0" style="line-height:1;font-size:11.19px;font-style:normal;font-weight:normal;">[1]</sup> It
    was introduced in 1996 and is commonly used in its Windows operating system.
    In principle it is not dependent on Microsoft Windows, but in practice, most ActiveX controls require either Microsoft Windows or a Windows emulator. Most also require the client to be running on Intel x86 hardware, because they contain compiled code.<sup
    class="reference" id="cite_ref-2" style="line-height:1;font-size:11.19px;font-style:normal;font-weight:normal;">[2]</sup>
    Many Microsoft Windows applications — including many of those from Microsoft itself, such as Internet
    Explorer, Microsoft Office, Microsoft
    Visual Studio, and Windows Media Player — use ActiveX controls
    to build their feature-set and also encapsulate their own functionality as ActiveX controls which can then be embedded into other applications. Internet Explorer also allows the embedding of ActiveX controls in web
    pages.
    And for COM:
    Component Object Model (COM) is a binary-interface standard
    for software components introduced by Microsoft in
    1993. It is used to enable inter-process communication and dynamic object creation
    in a large range of programming languages. COM is the basis for several other Microsoft technologies and frameworks,
    including OLE, OLE
    Automation, ActiveX, COM+, DCOM,
    the Windows shell, DirectX, UMDF and Windows
    Runtime.
    Office add-in is an assembly which implement the
    IDTExtensibility2  interface (COM).

  • AIR and ActiveX Controls?

    I want to use the windows media player activeX Control, or
    any ActiveX control to use in AIR desktop application.
    How i will do that.
    Regards.

    AIR does not support the use of ActiveX controls.

  • Crystal Reports 11.5 ActiveX control to use to execute a report

    Hi.  I need to execute a crystal report from a 4GL tool named LANSA.  I just need to know what ActiveX I should use to execute a report based on its file name (e.g. filename.rpt).  Thanks in advance.

    Hmm. I don't know how these things appear in LANSA. But maybe relating it to VB may help. In VB, the craxdrt.dll is seen as:
    Crystal Reports ActiveX Designer Runtime Library 11.5
    The registry key (not sure if htis will be of any help...) craxdrt.dll of version 11.5 is under:
    HKLM\software\classes\CLSID\{0BC59388-6740-4D7E-B7D9-B5F20EEABDCD}inprocserver32
    Another thing to try is code along the lines of:
    Create the CR Object loCr = CREATEOBJECT("CrystalRuntime.Application";)
    The above is for Foxpro, but it may give you an idea.
    In C++ the code is something like this:
    #import "c:\program files\business objects\common\3.5\bin\craxdrt.dll"; no_namespace
    One other thing. In a "water  cooler" type of discussion, someone mentioned that LANSA is an OEM partner. Perhaps contacting them directly may also help.
    Oh, and all of the above assumes that craxdrt.dll is actually insalled... Check in c:\program files\business objects\common\3.5\bin\ to make sure it is there. If it is, re-registering it may be a good idea too.
    Ludek

  • Crystal Reports 2010 and activex report viewer.

    I have an application built using VS 2010, and the matching crystal reports.  However, the application includes legacy VB 6 components, and they are also used to generate reports.
    Up until now everything has been fine, and the setup kits we build distribute the single crystal runtime required.  Now I have discovered that CR 2010 does not allow us to distribute the activex viewer, crviewer.dll, and it isn't installed with the runtime.
    I have spent a huge amount of time updating the vb6 projects to reference crviewer.dll version 13, since it is supplied with Crystal for VS 2010, only to find out that we are not allowed to use it
    If we're not allowed to distribute it, and the runtime doesn't install it, why do we have it?
    What workaround can anybody suggest?  I don't really want to have to distribute 2 runtimes (2008 and 2010), and I don't want to have to undo all the changes I've made to the vb6 stuff (this really is write-only code).

    Unfortunately, the answer I have for you is most likely one that you do not want;
    Lots and lots of info on the RDC and VB6 and .NET on this web site (use the search box in the top right corner of this web page). There are KBs, Wikis and Blogs that I personally created. In a nut shell, the RDC was retired in version CR XI R2 (11.5). E.g.; two versions ago. While you will find the crxddrt.dll and crviewer.dll included with CRVS2010, these are for internal purposes and you are not licensed to use these (craxddrt.dll was a special license only in any version of CR). Your only option is to rewrite the code using the CR .NET SDK. As for the resources available on this website. See the following small sample;
    Use of the Report Designer Component (RDC) in VS .NET
    Report Designer Component - Past, Present & Future
    Short history and resources for Crystal Reports Software Developer Kits (SDK)
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • Fully automated report generation and email

    I am trying to get a report (from a query) to run automatically every Tuesday morning.
    This is my job
    BEGIN
         dbms_scheduler.create_job (
              job_name          => 'GEN_XLS_RPT_AND_EMAIL',
              job_type          => 'STORED_PROCEDURE',
              job_action          => 'gen_bomreport_proc',
              start_date          => to_timestamp('05-12-2009 07:00','DD/MM/YYYY HH24:MI'),
              repeat_interval     => 'FREQ=DAILY; BYDAY=TUE; BYHOUR=7',
              enabled               => true,
              comments          => 'Weekly CSV Reports Output at 7:00AM'
    END;Then I have a procedure
    PROCEDURE gen_bomreport_proc IS
    DECLARE
        l_id number;
        l_document BLOB;
    BEGIN
         l_document := APEX_UTIL.GET_PRINT_DOCUMENT (
              p_application_id          => 109,
              p_report_query_name          => 'qry_Report_1week',
              p_report_layout_name     => 'qry_Report_1week',
              p_report_layout_type     => 'application/excel',
              p_document_format          => 'xls'
         l_id := APEX_MAIL.SEND (
              p_to        => 'to@me',
              p_from      => 'from@you',
              p_subj      => 'Weekly Report',
              p_body      => 'Please review the attachment.',
              p_body_html => 'Please review the attachment'
       APEX_MAIL.ADD_ATTACHMENT (
           p_mail_id    => l_id,
           p_attachment => l_document,
           p_filename   => 'report_' || to_char(sysdate-8, 'YYYY') || '_' || to_char(sysdate-8, 'DD-MM') || '-' || to_char(sysdate-1, 'DD-MM') || '.csv',
           p_mime_type  => 'application/excel');
    END;And the query that is supposed to get ran to generate the report saved as 'qry_Report_1week'
    SELECT organization_name, quote_description, quote_name, quote_pwd, user_id, contact_last_name || ', ' || contact_first_name contact_name,
      email, create_date, qty, unit_price, ext_price, discount_percent, company_name, item_no, supplier_name, product_category, mfg_part_no,
      quote_id, customer_id, exalt_user_id
    FROM bom_detail_cdw2
    where create_date BETWEEN sysdate-8 and sysdate-1 order by create_date;I tried running the job
    begin
    DBMS_SCHEDULER.RUN_JOB (
       job_name => 'GEN_XLS_RPT_AND_EMAIL',
       use_current_session => false);
    end;I read a lot about scheduler, APEX_UTIL.GET_PRINT_DOCUMENT and APEX_MAIL.ADD_ATTACHMENT, but I'm sure I missed something. Any help would be appreciated... Thanks

    Thanks Vorlon, your link was a bit helpful.
    Alright, I am making progress, but have had to come up with an alternative to the Report Query as found out that you need BI and we don't (and won't) have that.
    Option 1: dump the query result in a csv file
    Problem: I can't attach the csv to the email
    CREATE OR REPLACE PROCEDURE gen_bomreport_proc
    AS
         l_report  BLOB;
         f_report  UTL_FILE.file_type;
         bomdata_buf VARCHAR2(24000);
         bomdata_header VARCHAR2(512);
         l_id number;
         CURSOR bomdata_cur IS
              SELECT * FROM BOM_DETAIL_CDW2
              where create_date BETWEEN (sysdate-8) and (sysdate-2) order by create_date;
    BEGIN
         -- Create and populate file
         f_report := UTL_FILE.fopen ('TESTDIR','bom_output.csv', 'W');
         bomdata_header := 'Organization,Description,Quote Name,Quote PWD,User ID,Email,Created,QTY,Unit Price,Ext Price'||
              ',Disc. %,Address,' || 'Item No,Mfg Part No,Contact Name,Supplier Name,Product Category,Quote ID,Customer ID,Exalt User Id' || chr(10);
         UTL_FILE.PUT_LINE(f_report, bomdata_header);
         FOR bomdata_rec IN bomdata_cur LOOP
              bomdata_buf := bomdata_rec.organization_name || ',' || REPLACE(bomdata_rec.quote_description,',','') || ','
              || bomdata_rec.quote_name || ',' || bomdata_rec.quote_pwd || ',' || bomdata_rec.user_id || ','
              || bomdata_rec.contact_first_name || ' ' || bomdata_rec.contact_last_name || ',' || bomdata_rec.email || ','
              || bomdata_rec.create_date || ',' || bomdata_rec.qty || ',' || bomdata_rec.unit_price || ',' || bomdata_rec.ext_price
              || ',' || bomdata_rec.discount_percent || ',' || bomdata_rec.company_name || ',' || bomdata_rec.item_no || ','
              || bomdata_rec.supplier_name || ',' || bomdata_rec.product_category || ',' || bomdata_rec.mfg_part_no || ','
              || bomdata_rec.quote_id || ',' || bomdata_rec.customer_id || ',' || bomdata_rec.exalt_user_id;
          UTL_FILE.PUT_LINE(f_report, bomdata_buf);
        END LOOP;
         -- Part where I convert UTL_FILE.file_type into a BLOB and store in l_report ?? --
         UTL_FILE.FCLOSE(f_report);
         -- End
         -- email part - I'm ok here
    END;ok, so there's a line:      -- Part where I convert UTL_FILE.file_type into a BLOB and store in l_report ?? -- which I have searched for, to no avail
    Option 2: dump the query result in a BLOB
    Problem: I need to write strings/literals into the BLOB, but it keeps throwing the error PLS-00382: expression is of wrong type, when I write something like:
    DECLARE
         l_report BLOB;
         bomdata_buf VARCHAR2(24000);
         bomdata_header VARCHAR2(24000);
    BEGIN
         bomdata_header := 'Organization,Description,Quote Name,Quote PWD,User ID,Email,Created' || chr(10);
         l_report := bomdata_header;
    END;

  • PDF Report generation and email it from a DB trigger

    Dear all
    Is it possible to run a report in PDF format ad email it to some clients after a specific envent through Database Trigger. For example whenever a client makes an entry into order entry table (through entry form), a trigger should execute on Orders table, this trigger should execute or generate a PDF formatted report and finally mail it to Sales team?
    I'm using Oracle Database 10g. Rel.2 on Windows-XP.

    kamranpathan wrote:
    Is it possible to run a report in PDF format ad email it to some clients after a specific envent through Database Trigger. No. Not the way you imagine.
    A trigger is fired when? During the transaction. The transaction still is not committed and can be rolled back. So if you start doing notifications and what not in the trigger, and the transaction is rolled back, then that transaction never happened. But your notification code did. And the users have been informed incorrectly - about something that did not happen.
    The same trigger can also be fired in the same transaction for the same row - more than once. This can happen in specific circumstances in Oracle, where basically Oracle itself does an undo of the transaction (trigger already fired) and then redo that transaction (trigger fire again).
    So in such a case, your trigger will generate two notifications from the same trigger for the same event. Inside a transaction that still could be rolled back by the session owner.
    The correct approach is not to perform the action in the trigger. It is to queue the action to be executed when the transaction is committed.
    For example, the trigger is on the PRODUCTS table. When a new product is added, a notification needs to be send to customers that have selected to be informed of new product releases.
    The first step is to write a package that performs this notification. The procedure that drives the notification processing, gets a product identifier as input and does the checks and notification.
    After this package has been tested, it is implemented indirectly via a trigger on the PRODUCTS table. Instead of the trigger directly calling this package, the trigger needs to queue an action that will execute the notification package when the transaction is committed.
    This can be done using DBMS_JOB. In the trigger, a job is submitted to execute that notification package for the current product ID. The job submission is part of the existing transaction. If the transaction is rolled back, so is the job and it is removed from the job queue. If the transaction is committed, the job is also committed to the job queue and executed.

  • Incorrect indentation when using on-the-flying report generation and IF statement

    Reproduce steps:
    1. Use teststand version 4.2
    2. Turn ON on-the-fying report option.
    3. Report option -> INclude Step Results->Result Filtering Expression = Exclude Passed/Done/Skipped
    4. My simply code is
    For loop
       If something
          Do something
             If somethingmore
               Call Action and set Record Result = ON
            end if
      End IF
    End loop
    Issue:
        The test report generated for "Call Action" indents every new row. Because it is a long test, this make the test report very difficult to read. If there is a very long test, the test report is  become unreadable.
    Is there a solution for this issue?
    Thanks

    Hi Biet,
    Unfortunately this is a known issue with TestStand, which is documented in the TestStand 4.2.x Known Issues. This occurs in situations where you are using HTML reports with On-The-Fly Reporting and a Result Filtering Expression. To avoid this situation, you can do one of a few things:
    Use a different report format
    Turn off On-The-Fly Reporting
    Not filter the results
    If you must filter results, you can modify the process model slightly to improve the situation. Though this is not a complete workaround, it can help.
    First, configue your Report Options so that you are reporting All
    Results, rather than filtering. Leave On the Fly reporting ON. Next, we
    need to make a modification to your process model. In the process model,
    open the ProcessModelPostResultListEntry sequence. In this sequence,
    select the Process Step Result step, and select the Properties tab. On
    that tab, select the Preconditions category. The text for the
    precondition should be the following by default:
    !Runstate.Root.Locals.ReportOptions.DisableReportGeneration &&
    Runstate.Root.Locals.ReportOptions.UseOnTheFlyReporting
    Now, we want to modify this to be as follows:
    !Runstate.Root.Locals.ReportOptions.DisableReportGeneration &&
    Runstate.Root.Locals.ReportOptions.UseOnTheFlyReporting &&
    Parameters.Result.Status != "Passed" &&
    Parameters.Result.Status != "Done" &&
    Parameters.Result.Status != "Skipped"
    This
    new precondition essentially implements our own filtering. In the
    condition that I have supplied, we will not add entries to the report
    where the status is "Passed", "Done", or "Skipped". (You can add
    additional lines to add additional statuses to filter.) The limitation
    here is that the bug provides incorrect indentation, so the results may still be grouped slightly differently than they would be without the bug.
    I hope this helps!
    John M
    National Instruments
    Applications Engineer

Maybe you are looking for