Inserting an image into a Word Table with the Report Generation Toolkit.
I was wondering if it was possibe to use the Report Generation Toolkit to place an image into the cell of a table in a Word document?
Solved!
Go to Solution.
Hi,
Yes, you can do this by using the Word Edit Cell VI under Report Generation>>Word Specific>>Word Tables in your block diagram functions pallette. After creating a table, you can edit specific cells and send the file path of the image saved on your computer to that specific cell. I put together an example that I've attached here as well to help you out with this.
Regards,
Austin S.
National Instruments
Academic Field Engineer
Attachments:
RGTWordImageInTable.vi 14 KB
Similar Messages
-
I am creating a Word document with the Report Generation Toolkit, and LabVIEW 8.2.1. In the report I am using a template that has page numbering enabled in the center. When I try to add a text block to the left side footer, it eliminates the page numbering and adds my text on the left side. I found "Set Report Footer Text" and "Word Set Page Numbering" vi's that may be the clue to this. When I use these two vi's I either get Page 1 of 456789-001 on the left side, or if I reverse the order I get only 456789-001(text) in the left side with nothing in the center. What I would like to achieve is 456789-001(text) on the left footer, and Page 1 of 2 in the center. Is this possible and if it is, then how can I do it?
Hi SciManStev,
I have attached a vi where you can see how they can be made to work together. You have to design it such that one follows the other. If you don't design it that way, it results in a race condition and only one of them get executed.
Good Luck!
Warm regards,
Karunya R
National Instruments
Applications Engineer
Attachments:
SciMan1.vi 14 KB -
I was wondering how to align the axis labels, i.e. 90 degree or such when creating a graph with the report generation toolkit in word.
I can do it after the document is created through Format axis title -> alignment but is there a way out of LabVIEW?
I'd especially like to rotate the y-axis label by 90 degrees.
Thanks a lot,
JuergenI think he means he can modify it by hand after the report has been generated... But what I want to do is generate the word graph out of labview already with the rotated axis label...
After I posted this I found out that we can do this with a macro and use it from labview, but unfortunately I don't know VB, or VBA...
Like this: -
What is wrong with the report generation toolkit????
OK. Now I'm a little frustrated.
I started this thread, but then made an ugly workaround until someone tells me the correct solution.
So now.... my compiled application can find all the toolkit VIs... but I get error messages telling me that the VIs were are too old (V 7.0) to be recompiled to Version 8.5.1.
When I got the first of these messages, I opened and saved the VI indicated. That just pushed the problem along to the next VI. So I said "ah ha!" and went to the directory (blah\blah\....\addons\_office) that has the toolkit routines and did a Mass Compile. No errors were generated by this.
NOW when I try to run, I get an error message telling me that Excel_Insert_Text.vi is not executable. But that is clearly a lie. When I open the VI in the development environment, there are no broken arrows...
And let us not forget my application runs perfectly and without errors in the development environment, even after I brutally recompiled everything.
For those who care: I'm running V 8.5.1 with whatever version of the Report Generation Toolkit comes with that (1.1.2??).
Arrgh.
-GNI feel your pain GN... the RGT in its current Classes incarnation has a few "issues"... try deploying it with TestStand a whole world of pain opens up.
Now, I have recently seen an issue very similar to the one you described, I broke the RGT after doing a mass compile.
Eventually opened the RGT VI that was "broken", it looked fine to me. It was something to do with setting the font, and was basically just an activex call. Eventually out of frustration I right clicked on the node, reselected the same method, and another input parameter line appeared at the bottom of the node and the VI all of a sudden became runnable. WOW!
This needed to be done in a few of the VIs.
Maybe this will help you
nrp
CLA -
Distribution with the report generation toolkit
I am using the LabView report generation toolkit to put data into an
Excell spreadsheet. It works fine in Labview and the executable works
on my development PC, but not on a client PC - it opens a template XLS
spreadsheet OK but does not insert the data.
I have included the required dynamic vis in the application builder and checked 'NI Reports Support' in the installer settings.
LabView 7.1
Thanks,
Jim/.Is it a different version of Excel? I have had problems with different versions of Microsoft Office products not connecting or behaving correctly. That it opens the template seems to indicte that this is probably not the problem, but it is something to check. There have been many posts about that problem here, so if that is what is going on, the solutions may be here as well.
Let us know what you find.
Bob Young
Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
DISTek Integration, Inc. - NI Alliance Member
mailto:[email protected] -
Hello,
My vi is gathering data from a piece of machinery. At varrious points durring the process, my vi must create printable reports. I am using the report generation tool kit to do this. What I want to do is for every report generated durring the run, add it as a new worksheet in an Excell workbook. My excell template works fine for the initial master report and I can add new data to new worksheets. What I am having a problem figuring out is how do I add the new data to a new worksheet using an excel template? I have 5 different reports that need to be generated at different times with some more often than others. I would like all these reports to be in the
same master excel file. Thanks in advance
-Greg
Gregory Osenbach, CLA
FlukeHi Greg,
There is no built-in support in LabVIEW to add a new worksheet to an existing Excel report simply because this functionality does not exist in the Excel application itself.
My suggestion would be to open up the template you wish to use for the new worksheet. Copy the cells from the template and paste them into your new worksheet that you've created. Then close the original template and you have another copy of the template in which you can populate with data values.
I have attached an example program of how to Copy and Paste a Cell in Microsoft 97 Using ActiveX in LabVIEW to this post. Hope this helps!
Kileen C.
Applications Engineer
National Instruments
Attachments:
XL_cell_copy_and_paste.llb 76 KB -
Setting the title font and axis labels in a graph created with the Report Generation Toolkit
I'm using the LabVIEW Report Generation Toolkit for Microsoft Office to generate Excel worksheets containing plots. Unfortunately, the default font size used in the plots is huge (see attached worksheet). I was able to use Excel Set Graph Font.vi to reduce the size of the axis labels, but there does not appear to be a function to do this to the title and legend. In addition, there does not appear to be a function to set the axis text labels. Before I write my own, has NI released additional functions to perform these tasks?
Thanks for your help,
Zach Lerner
Software Engineer
OnWafer Technologies, Inc.
Attachments:
Test1_-_embedded_graph's_title_and_legend_font_is_huge.xls 14 KBHello Zeidan
The graph title and legend font sizes can be changed by accessing a low level VI (Excel_Insert_Chart.vi) that is part of the excelsub.llb that is located at (C:\Program Files\National Instruments\LabVIEW 8.2\vi.lib\addons\_office). This VI is called dynamically from within the Excel Insert Graph.vi and it uses VI server technology to access the Excel exposed properties. Attached to this post is an image of the block diagram of this VI after I have modified it to set the font sizes of the title and legend to 15. The circles in the image represent what I had to add to accomplish this.
Best Regards,
Ayman Kabire
Attachments:
Excel_Insert_Chart.JPG 99 KB -
I can't transfer data properly to Excel 2003 with the report generation toolkit.
I have a table with number to transfer into Excel. I use EasyGraph.vi and it works correctly with Excel 2000. But when I try the same program to transfer my data into Excel 2003, the data are not transfered correctly. When I have for example 0,56, it is read as text in Excel and when I have something like 53,300 Excel 2003 read this 53 300 as if there was no coma.
Do you know what's happening with Excel 2003 ?Separators have always been a pain in Excel !
A work around is to avoid using any separator at all, and to format numbers as power of 10.
For instance :
0.12345 -> 12345E-5
12.345 -> 12345E-3
The attached vi does the trick.
Chilly Charly (aka CC)
E-List Master - Kudos glutton - Press the yellow button on the left...
Attachments:
NoSeparatorEnumbers.vi 20 KB -
How can I create a Report with the Report Generation Toolkit?
Hi,
I have installed Labview Report Gerneration Tool for Microsoft Office Version 1.1 and now I want to use MS Office Report Express VI but it need the VI "Dflt Data Dir.vi". I don't have this on my computer, why? Where can I get this VI? Can somebody help me?
thanks LabprogHello Labprog
This VI should be located in the file.llb in the folder
..\vi.lib\utility. Thus, it is not part of the report generation
toolkit but of LabVIEW. I am not sure why you are missing that file on
your PC, maybe you just did not find it because it is hidden in a LLB.
Maybe this LLB is not part of your LabVIEW package (Base, FDS, PDS).
Anyway, I'll attatch that little VI, hoping that this is the only one missing.
Ingo Schumacher
Systems Engineer Sound&VibrationNational Instruments Germany
Attachments:
Dflt Data Dir.vi 11 KB -
How to create a working link anchor in an EXCEL document with the report generation toolkit?
I am using the latest report generation toolkit and want to add links on the first worksheet pointing to the other worksheets in the same document.
I am using the "Append Hypertext Link Anchor to Report" VI. The links are created, but don't work when clicking them.
Question now is: How does a link to a cell on a different worksheet needs to look like?
It can not be that complicated but all variations I tried did not work and I could not find any information about this problem. So any help is appreciated!
Thanks and Regards,
Ingo
Solved!
Go to Solution.Thanks, Brian, for your support! - It's working.
It's hard to understand why NI did not pass this parameter to the top of the call chain...
I also needed some time to understand the syntax of the string passed to the subaddress node:
The name of the worksheet needs to be framed by single quotation marks and the following cell address must preceeded by an exclamation point (!).
A working link pointing to cell "A1" of "Worksheet 1" looks like:
'Worksheet 1'!A1
Maybe also of interest: If you want to point the link to a worksheet inside the document itself, the parameter "address" (URL of link - href) can be left empty.
Thanks and Regards,
Ingo -
I have a Microsoft Word template I want to populate programmatically with test data. The template contains both explanatory text and a data sheet section with test data placeholders (bookmarks). Using the Report Generation Toolkit for Microsoft Office, I have been able to successfully populate the placeholders with data and save the results into a new Microsoft Word document. The problem is the new Word document contains not only the test data but also the explanatory text that was in the original document template. Ideally, I would like to have the generated document contain just the test data without the accompanying text. Is it possible to do this usi
ng the Report Generation Toolkit?Hello Ryan,
Two easy options come to mind.
1. You may want to consider using an �ink annotation� instead of regular text for your explanation.
2. You can programmatically do a find and replace on the explanatory text. Have LabVIEW find the whole paragraph, and replace it with nothing.
If none of these suggestions help, or if I�m not correctly understanding your issue, please reply with comments or answers to the discussion above and any additional information that may help, and I�ll be happy to look further into it.
Have a nice day!
Robert Mortensen
Applications Engineer
National Instruments
Robert Mortensen
Software Engineer
National Instruments -
I have researched the knowledge base and found:
Printing A Range of Pages or Number of Copies of a Report Using the Report Generation Toolkit in LabVIEW.
This seems to be from a previous version of LV. I am using LV2010. The instructions given do not match up with the current vi. The information did provide a tip and drilling down into the vi I was able to insert the from/to page numbers at the printout invoke method, however this prevents the print function from working in that it can no longer find the default printer.
The error message is:
Error 1015 occurred at NI_ReportGenerationToolkit.lvlib:Word_Print.vi -> NI_Word.lvclassrint Report.vi ->
error 1015 is: Printer is not responding. Check printer configuration.
Any ideas how I can make the modification to print, for example, pages 24 through 29 out of a 32 page word document?
Thanks,
ChrisHello, 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 -
How to use the Report Generation Toolkit to get a list of bookmarks in a Word Template
I am working on a project where I will need to use the Report Generation Toolkit to fill out a fairly long Word Template. The MS Office Report Express VI can only have inputs for a maximum of 17 bookmarks which is not nearly enough for what I am needing to do.
I'm wondering if there is some way to use the lower level report generation VIs to read the word template and return a list of the bookmark names as a 1d array of string. The dialog box that you use to set up the Express VI has this capability but I'm not finding a way to scan the document programatically.
I'm sure I can't be the first person to run into this issue and I'm hoping that someone out there has found a good solution.
Solved!
Go to Solution.Wordsub.llb should be somewhere in your Labview folder on your local drive. The path to it in my install is: C:\Program Files\National Instruments\LabVIEW 8.6\vi.lib\addons\_office\_wordsub.llb
Also what specific problem are you referring to about 17 bookmarks? Is that the limit on the express style VI for filling them in from LV? If so what you will need to do is to use the lower level function 'Word Insert Field' under Word Advanced VIs. You will need to supply the VI the name of the bookmark and the text you want to insert. -
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 -
How to update data to excel in runtime with LabVIEW Report Generation Toolkit
hi,All
i am using LabVIEW Report Generation Toolkit,and a newer.i want to insert the data in excel for every loop.
so at first,need to creat a excel file(xxx).and when every loop end,the test data can be insert into the file(xxx).when the test finished,the file will be saved.
i have seen the examples in LabVIEW Report Generation Toolkit, all of them need to creat a new file.i need update the data in the same file.
can you give me some advances for that?
my labview's version is 8.5 and LabVIEW Report Generation Toolkit's version is 1.1.0.
thanks a lot.Hi cat099,
One question, why don't you store data of each loop, say in shift register and update all data in excel at once when your test is finished.
It will be easy. Or else, if you want to build same functionality as you mentioned, then you can build your own vi to write in excel. No need to use report generation toolkit.
See attached example.
Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
Attachments:
write to excel.vi 21 KB
Maybe you are looking for
-
SOMEONE AT ADOBE PLEASE HELP!!! I have had no problems editing Red Epic 4K R3D files in the past revisions of Premier CC but ever since creative cloud updated me to the latest Premier CC 2014 (8.0.1) I cant get any serious work done as my system is c
-
PS CS5 32-bit won't use GPU acceleration
I have CS5 32- and 64-bit installed on both my desktop and my notebook. My desktop runs Win 7 x64 Biz and has an nVidia GTX275 display card. The notebook is a Sony runs Win 7 x64 Home and uses the nVidia GT300M. Though the notebook is numerically hig
-
Why can I only see today's history - i want to see previous history?
When i click on history tab; show all history and a window (Library) opens with History; Tags & Bookmarks but the only option to view under Histroy is Today. I want to view previous searches. I'm sure I previously could look up Last Week or Yesterday
-
Hi, I am getting an error in LSMW...Tax category does not define classification 1. Does any one know where i have to make changes? Thanks
-
Query about Temporary Tablespaces
Why Data Manipulation Language (DML) locks are never acquired on the data of temporary tables? Any detailed explanations with justifications will be great. Thanks in advance.