Word report with ActiveX

I would like to generate a report in Word via ActiveX. I found an
example on NI's site that should make it fairly easy. However, I
noticed that some of Word's ActiveX methods parameters have changed
between whichever version the example was written with and Word 2000.
(With Word97, the example runs fine, so it may have been written for
that version. If Word 2000 is on the machine, you need to reset the
method nodes the refresh the parameters list.) My problem is that the
target machine will be using Word 7a, installed on a server not on the
local machine. So I have two questions:
Does anyone know how stable the ActiveX interface was between Word 7a
and Word 97?
When Word is installed on a server enterprise-wide, and th
e computer
starts it up over the network, will the ActiveX components be registered
on the local computer?
Thanks in advance,
Dave Thomson
David Thomson Original Code Consulting
National Instrument Alliance Program Member
www.originalcode.com
[email protected] 303-499-1973 (voice and fax)

This should be pretty easy to do with the LabVIEW Report Generation Toolkit for MS Office:
http://www.ni.com/toolkits/report_gen.htm
In fact, the toolkit includes the MS Office Express VI, where you can specify a template document, and you can wire in whatever values you want inserted at certain bookmarks in the document.
Let me know if you have any other questions,
-D
Darren Nattinger, CLA
LabVIEW Artisan and Nugget Penman

Similar Messages

  • Word report with Cyrillic text

    Hi all,
    I've never used one of these forums before so hope I'm doing right.
    I need to produce a word report with Russian & English text , if I set the system language to Russian I can type Russian characters in to word, but if I have a string constant in labview which I insert into a table in word the text from string constant changes.
    Thanks for any help anyone can give.

    Hi Mike 
    Thanks for the reply.
    The document that I will be working on hasn't been translated yet, so I took the string constant from UM_confirm Exit.vi http://digital.ni.com/public.nsf/allkb/24D845629A22AB6A86257473005ECF35?OpenDocument and wrote a small vi (see attachment) to see if I could put the Russian string constant into a table in word I separated the Russian & English strings and entered them into different cells in a word table. The Russian characters no longer look like Russian characters (see attachment 2). If I set the system language to Russian on the language bar I can Type Russian characters into word.
    Regards
    John B 
    Attachments:
    Russian doc.doc ‏1 KB
    russian report vi.JPG ‏36 KB

  • Word report with template

    Hello,
    i want to create a word report with template in my vi. I have made a word .dot with bookmarks and my customer should modify it. It look like this:
    Test number: [bookmark/Test number]
    User: [bookmark/User]
    Serial number: [bookmark/Serial number]
    Error: [bookmark/Error]
    Comment: [bookmark/Comment]
    Date: [bookmark/Date]
    Greetings XY
    How can I get this result?
    Test number: 12345
    User: XY
    Serial number: 1
    Error: No
    Comment: First
    Serial number: 2
    Error: Yes
    Comment: Second
    Serial number: 5
    Error: No
    Comment: Third
    Serial number: 9
    Error: Yes
    Comment: Fourth
    Date: 01.01.2006
    Greetings XY
    The data is in tables and strings. The beginning and end of the word report is quiet easy. The difficulty is the middle part it can be consist of different numbers of items.
    How can I made this?
    thankyou
    schwede

    That is ok, but if I do so the result would look like this:
    Test number: 12345
    User: XY
    Serial number: 1
    2
    5
    9
    Error: No
    Yes
    No
    Yes
    Comment: First
    Second
    Third
    Fourth
    Date: 01.01.2006
    Greetings XY
    Do You know what I mean?
    Message Edited by Schwede on 04-03-2006 12:22 AM

  • Cannot display Crystal Report with ActiveX Viewer

    I am using SmartViewerActivex.asp in a classic ASP website to display Crystal Reports and the report will not load. 
    I get a blank grey screen with only the toolbar showing but able to export out with data intact.
    I am  using CR9, running in Windows Server 2012 R2 IIS 8.5.
    I've already spent about 2 weeks and have not found an answer. Please HELP!

    Unfortunately, no help available. I suspect when CR 9 released in 2002, Win Server 2012 was not even a twinkle in Bill's eye. E.g.; you are looking for CR 9 to be 10+ years forward compatible. In other words, it is not supported on WIN server 2012.
    Possible option is to upgrade to CR XI R2 (v. 11.5). There you have a weak prayer and hope. With luck it may work. Note that CR XI r2 was the last version of CR to include the AcitiveX viewer. And CR XI R2 has been out of support for over 2 years now.
    Best bet: CR SDK for VS .NET or CR SDK for Java. This would mean a new app...
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • How to send a 100 plus page MS Word Report with Word and pdf. attachments?

    Sir or Madam,
    I am not able to e-mail or have a 100 plus page report received and need your support. It contains a combination of MS Word and pdf files and attachments.
    I am using MS Outlook 2007 and Google Chrome.
    Please advise.
    Thank you in advance.
    Earleb
    Earle Rheaume

    Sir or Madam,
    I am not able to e-mail or have a 100 plus page report received and need your support. It contains a combination of MS Word and pdf files and attachments.
    I am using MS Outlook 2007 and Google Chrome.
    Please advise.
    Thank you in advance.
    Earleb
    Earle Rheaume
    If your mail service allows all of that to be sent as attachments or however you are attempting that then it's possible the email server or servers receiving the email do not allow attachments that large.
    You say you are sending "a combination of MS Word and pdf files and attachments". I've never sent anything like that. I have zipped various files into a zip file then attached that to an email for sending.
    Googles mail appears to allow a total of 25 megabytes of attachments in a single email.
    Yahoo mail appears to allow a total of 25 megabytes also.
    Microsofts mail appears to allow a total of 20 megabytes of attachments in a single email.
    Another option would be to upload everything to your onedrives public folder and provide a link for others to download all of it in the email you send out.
    A single users onedrive supposedly can have up to 10 gigabytes loaded onto it. I suppose all of that could be used by the public folder but maybe not.
    La vida loca

  • Malfunctio​n in generating word report out of an app (using the report generation toolkit)

    I placed in my program some features that generate a word report with some graphics and text using the report generation toolkit. When I'm in the developing system everything works. But the point is that I have to create an exe for a user and in testing this the report is not generated (and no error msg occurs). Does anyone handeled this problem already and could give me some hints? Thx.

    Hi muchalla,
    the report generation toolkit for MS office depends on the version of MS Office (not the OS). You must generate your application for the version of MS Office or use some dynamic technic.
    The different versions of the llbs you need are on the CD in a subfolder called compability.
    Here I have asked if some ideas to do this will work. Until now I haven't got the time to verify it by myself.
    You will find here more information about using the report toolkit with applications.
    Waldemar
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • I need to make a report with graphs, and generate an exit file to word

    I have to do the acquisition for a laboratory and to make inmediately a report with graphics and a constant test about the method of the experimentation

    Probably your best bet is to use ActiveX and control Word from LabVIEW, this way, you can act as you were using Word directly, automating all the steps to create your report. Look for examples in the developer zone, although there will be more examples relating Excel, that can show you the way to act. If you need to use this intensively, i think NI has created a Word toolokit that you can buy.
    For any particular question, just ask.
    Good luck

  • Append table with multi-line cells to word report

    Hi,
    I am using LabView 7.0. I need to append table to word report and I am using Append Table to Report VI. My VI works fine as long as the table cells do not have multiple lines. For multiple lines, each line is put is a seperate cell in the word report.
    Is there a way to append multi-line cells to Word Report??? If not, any suggestions on how I can copy the multi-line table to Word report???
    Please kindly help!!
    Please see the attached document for details on the problem.
    Thanks,
    Mim
    Attachments:
    Table with multiple line cells.doc ‏33 KB

    Hi Mim,
    Yes I understood the multiple-lines part. I think the doc is the report you want. Correct ?
    The doc is generated with your VI without any modifications.
    I am using XP, Office 2002 SP3 and LV7.1
    Attachments:
    Verification Report.doc ‏39 KB

  • Download report with chinese word into Excel

    Hi all,
    I need to create a report with Chinese header title, how can I put in these chinese word in my report?
    And after all, I will need to download this report to Excel sheet.
    I 'm using function GUI_DOWNLOAD to download the report to excel, but the chinese words display as ############## in the excel sheet.
    How can I solve this 2 problems?
    Kindly help !
    Thanks in advance.
    Jane.

    hi
    good
    We need to include CODE PAGE in the FM. This will help SAP to under the language which you are uploading.
    Use GUI_UPLOAD FM to upload the excel sheet. This has a parameter CODE PAGE, which you can pass to the FM.
    thanks
    mrutyun^

  • PDF Report with MS word document attchments in Shared Drive

    Hello,
    I need PDF report with attachments. the attachments ( could be image , word document) are stored in a shared drive made accessible from apps server.
    Please let me know if this is doable using xml publisher and what is the approach.
    thanks
    Arun

    Check this out
    http://blogs.oracle.com/xmlpublisher/2008/07/file_attachments.html
    Tim

  • Automated Word Report Printer from a Cluster filled with controls Vi

    I am sharing this Vi that i made to solve a problem i had.
    Basically this Vi will take what ever is inside a cluster  and print it to Word. you should have a Word template with Bookmarks to work. The bookmars name should be the same as the label of the control( i am explaining the function more in depth on the block diagram comments). This way you can make fancy word templates to print in the report your own values of your test.  
    express vis come limited in the number of inputs you can feed to a template. so this will make you life easier on printing a report. you just need to worry now about putting the values in the cluster.
    You can find it here 

    Hello, take a look at this article. Unfortunately the Generate Report Get Data to Modify.vi was remove since RGT 1.1.3 release. That being said, we can try to find a workaround. See "Configuring a Printer Through the Windows Dialog in LabVIEW", open the GetPrinterSettings.vi, at the PrinterSettings property node you can select the from/to page. I hope this helps.
    Alejandro | Academic Program Engineer | National Instruments

  • Help with ACTIVEX Crystal Reports

    I have been using Crystal in my app since 2001; We had stabilized over the years with RAS 9.0 and the ActiveX viewer.
    Now I am migrating to Business Objects XI R2. and I cant use the ActiveX viewer (because i am using RAS to change the report source...)
    So i am stuck with the rest of the world with the .NET free viewer.
    OK- it stinks but OK.
    everything is cool until time to print.
    My users are HATING the PDF printing that is standard .
    So we turned on ACTIVEX printing.
    My users are having a devil of a time downloading the proper controls.
    Now- if i put the site in my trusted sites- all is good- but this is crazy.
    The ActiveX control can load to the clients machine.
    It affects all OS/ all levels of access (Admins too)
    It is a browser issue ;
    I have about 20% of my (20,000 daily) users who are being affected by this .. So we quickly go back to PDF (for now)
    Anyone else having trouble with ActiveX Crystal XI download for PRINTING only?
    I know that we used to distribute npviewer.exe under my old RAS 9 days to Admins who had network consideration. I'd hate to have to contact 20,000 people and say "hey ; remember all that trouble we had getting Crystal Reports to run on your machine....well....we kinda upgraded....and...well....we are gonna have to do it again.....sorry"
    HELP!!
    I am looking for:
    1) best practices
    2) what is min requirements for the activex printing.
    3) a possible download (like npviewer.exe)

    See if [this|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do] or [this|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do] note help to resolve the issue.
    If not, utilities such as [Fiddler|http://www.fiddlertool.com/fiddler/] or [Charles|http://www.charlesproxy.com/download.php] may be of help in tracing what is going on with the access to the activeX.
    Ludek

  • MS Word Reports-how to use bookmarks

    I am using the labview report writing tools to produce an MS Word report. I have produced several headings, information strings, tables etc. I need to use "Word Insert Object.vi" to place certain objects such as excel charts at certain places in the word report. This VI uses bookmarks in word to point at the right locations (the VI also seems incredibly limited in that it provides only a file reference as a source to obtain the object from - but no way of referring to which object in the file?? Does this mean I have to go to all the trouble to separate out my source objects to each reside in their own exclusive word doc? The documentation for "Word Insert Object" suggests you can extract objects from excel, but doesnt say how to identify the objects. Can anyone enlighten me?
    The only way I can see to set up the bookmarks in the word doc to send my objects to is to setup a template doc with the bookmarks and pagebreaks in place as a starting point before I use the labview report generation vis to place everything else. The objects insert quite happily at the required bookmarks (since the vi has an input which specifies the bookmark to use), but now everything else that used to form my title page, tables, text etc are pushed to the end of the template document (i.e. after all of the bookmarks and pagebreaks structured into my template). None of the other report generation vis (insert tables, text etc) seem to have any ability to point at bookmark locations.
    I can only hope for 2 possibilities here:
    1) that there is a way to make the non-bookmark capable vis jump to a certain location in the document (by forcing the cursor there somehow)
    2) that there is a way to programatically place bookmarks in the document as I write the various parts of it from labview, to which I can then insert objects at the end of the process.
    Can anyone enlighten me about the approach to use here?
    thanks
    Fred

    Hi Fred,
    Well to answer both of the numerated questions, I can think of two ways that would most likely fix your problem.
    1)  Find the activeX call that can place bookmarks or move the cursor in your word document.
    2)  Make a macro that can do the same thing.
    Has anyone in the community ever attempted this?
    Brian K.

  • How to fill pre-defined tables in Word 2003 with test results?

    Hi All,
    I have a simple test board , where i measure different DC levels,  with a simple Vi that saves the test results in to a Text file.
    These results in text file, were manually typed in to a test report , which is a Word document with tables, but i have now created a macro in word 2003 that can take the results from text file and added to the specific rows and columns in  my word test report file.
    The big questions is how can i get Labview to,after it has measured the DC levels, write the test results to the specific tables , rows and columns, in the Word document without deleting all?
    The attached picture illustrates one tables , and the yellow cells showing the cells that need to be filled in with test results.
    Labview vers: 2009
    Solved!
    Go to Solution.
    Attachments:
    Template.jpg ‏37 KB

    Hi!
    I'm a Test Engineer for electronics and I create alot of automated tests with LabVIEW. Many of our customers want testsresults in a fancy and easy-to-read report. I did not have the MS Office Report Generation tool. So I did some research in the Excel Board and came a cross a link to a free open Excel toolkit ( Link ). The toolkit looks like this in LabVIEW:
    As you can see, you have many tools to get the job done. I'm talking about reading, writing and formatting Excel. The toolkit uses activeX. If you give me a few minutes I'll create an example for you.
    What I do when I create a report:
    Step 1. Create a template with all your formatting, macros, images and colors. Name the file for example "template.xlsx" (or .xls if you use an older office version).
    Step 2. In your program, copy the file to the desired location and give it a proper name.
    Step 3. Aquire some data and write it to the file you copied and renamed.
    For my latest project I created a fully-automated testprogram for testing a electric product. After each test a report is generated based on the procedure above. After testing all the products I have for example 300 reports. I then created a program that reads all the reports and creates a summary report that contains statistics for all the tested products. In my program I can also print the reports or the summary report and deliver to our customer. All this takes just a few seconds and adds extra quality to the products we sell to our customer.
    Regards,
    Even
    Certified LabVIEW Associate Developer
    Automated Test Developer
    Topro AS
    Norway

  • MS Word report not visible in executable

    We are using LV 7.1 FDS (with app builder) on Win2000 prof. We have Report Generation Toolkit and Database Connectivity Toolkit installed (among others). Our VI publishes reports in MS Word. When the user clicks the "report" button, the VI generates the report and this is available to the user on screen. No file is saved and the user has the choice to save the report with any name.
    The report function works fine in VI state.
    But, when we make an EXE of the VI the behaviour of reporting changes. Now, pressing the "report" button triggers harddisk activity but nothing comes-up on the screen. There is no report to be seen on either the screen or the taskbar!! In the VI, the taskbar shows a word document and the report is accessible when the user clicks on this.
    The amount of disk activity is similar to the case when we were generating reports in our VI.
    The EXE is being tested on the same machine as the VI.
    We have tested on 3 machines (with Office 200 and Office XP) but the problem remains.
    What could be going wrong?
    An early answer would be appreciated.
    Thanks,
    Gurdas
    Gurdas Singh
    PhD. Candidate | Civil Engineering | NCSU.edu

    Bill and Kileen,
    Thanks both. That is just what was needed. I tested and it works fine now.
    The same is also mentioned in the User Guide / Release Notes that accompanied the toolkit.
    I happened to collect some other webpages and .pdf that talk of other issues. In case someone happens to need this (.zip file would be less than 1 MB), please feel free to write at [email protected]
    Best regards,
    Gurdas
    Gurdas Singh
    PhD. Candidate | Civil Engineering | NCSU.edu

Maybe you are looking for