How do I add a new worksheet to an excell file utilizing a template with the report generation toolkit?

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
Fluke

Hi 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

Similar Messages

  • How do I use page numbering and a text block in a footer in Word with the Report Generation Toolkit?

    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

  • 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

  • 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 Labprog

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

  • How can I add a description to a photo so it will be emailed with the photo?

    How can I add a description to a photo that I am going to email so it will be emailed with the photo? For that matter how can I add a description to a photo that will stay with (or on?) the photo?

    Add your description as you normally would. Then export the photo using the File -> Export command. In the resulting dialogue you have a number of options. If you check the box at Titles and Descriptions then these wil be written to the IPTC metadata of the files, and available in any app that understands this metadata.
    Regards
    TD

  • How do I add 3D text to an existing scene so that it interacts with the lighting and environment effects of that scene?

    Hi guys -
    I have quite a bit of experience with photoshop and illustrator, but am only beginning to dig into the 3D capabilities. I'm using Photoshop CC 2014.1.
    I'm working on a product for a client, and would like to add text to the foreground of the image below.  The text will be extruded and slightly reflective. The problem is: I can't find a way to get that text into the same scene with the cubes. I seem to have to create a separate scene...and then none of the cubes interact with my text. It's probably a simple fix, but I can't figure it out.
    Thanks!

    Hi guys -
    I have quite a bit of experience with photoshop and illustrator, but am only beginning to dig into the 3D capabilities. I'm using Photoshop CC 2014.1.
    I'm working on a product for a client, and would like to add text to the foreground of the image below.  The text will be extruded and slightly reflective. The problem is: I can't find a way to get that text into the same scene with the cubes. I seem to have to create a separate scene...and then none of the cubes interact with my text. It's probably a simple fix, but I can't figure it out.
    Thanks!

  • Is there a way to add custom functions to the Report Generation Toolkit?

    I would like to be able to delete unused sheets from an Excel report without having  to reopen the file (and Excel) to do it using ActiveX. It is probably not possible since the NI_Excel.lvclass is locked but maybe there is some other way to do it.
    Ben64

    P Anand wrote:
    I just tried to explore the Excel report gen toolkit. In that one when you open a Method (Invoke node) of an excel worksheet you have one option called delete after giving the name of the worksheet that you wanted to delete use the method and check it. Even I have never tried these sort of things.
    It not clear exactly what you mean. but as an alternative I found the Excel Get Active X References.vi in the toolkit, I can use this vi with the delete method. Initially the issue I had was that you can't unbundle the Excel report to get acces to the activeX references when you're outside the NI_Excel.lvclass (as in the following picture).
    Ben64

  • How do you add a new machine as an agent only to be seen by the server....?

    I'm fairly new to this but I'm starting to get the hang of it. I configured what I call a sysadmin server to serve as a SunMC-4.0, Console, Agent & Server. I can connect to the server and I see all the Modules and what's
    running to I'm good there.
    Where I am having a problem is that I setup on a second Solaris 10 box as just an agent box, configured it and started it sucessfully. Pointed it at the 1st machine (the server) and all seems well.
    My problem is when I start the console on the server (machine #1) it still only sees itself not the second machine. I have looked through all the doc's that I have and there is nothing really on setting this up? A lot on jumpstart etc.
    but I just want to setup about 10 machine as agents (only) and use the one server machine to see them all. If someone could point me in the right direction I would much appreciate it.
    Thanks,
    Tom
    Edited by: ConsumerUser on Jan 26, 2010 11:19 PM
    Edited by: ConsumerUser on Jan 26, 2010 11:20 PM

    HI ConsumerUser,
    ConsumerUser wrote:
    My problem is when I start the console on the server (machine #1) it still only sees itself not the
    second machine. I have looked through all the doc's that I have and there is nothing really on
    setting this up? New Agents don't automatically populate themselves into the Console, you need to either tell SunMC about them (i.e. specify their hostname/IP) or have it scan a range of IPs to find it for you. For just a few systems you can probably just enter them as you go: [Edit --> Create Object|http://docs.sun.com/app/docs/doc/819-5417/6n7gj8249?l=en&a=view]
    For larger installs many people also script the creation of icons using the SunMC CLI to make their life easier. If you're interested send me an email and I can point you to a sample script.
    Congrats on starting to use SunMC, it's a fantastic tool!
    Regards,
    [email protected]

  • How to save to data into another file in the Report Generation Toolkit

    I read a doc template and wirte many data and bmp into it. I want to create a new doc file with my own name,
    But in my test, data will be writen into my template. If user don't notice it, my template will be overriden. Can
    I save to a new file in my program? please help me about it.
    Thanks.
    br

    HI, NIhuyu
    thank your answer.
    I will try it.
    Can you tell me the meaning of star out and end out of vi?
    I am not clear about it.
    Thank your very much.
    br

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

  • Using the report generation toolkit, how do I make a bar graph verticle instead of horizontle?

    The attached vi is similar to what I am using, and it produces an Excel bar chart. I would really like to create the same chart, only vertically instead of horizontly. I have tried all kinds of things that don't work. Is there a way to do this that does work. I want a result similar to rotating the produced chart 90 degrees CCW.
    Thank you!
    Attachments:
    Chart Test.vi ‏20 KB

    you want to use a xy-graph.
    you can right click the plot legend to make a bar graph vertical.
    Harold Timmis
    [email protected]
    Orlando,Fl
    *Kudos always welcome
    Attachments:
    bargraph2.jpg ‏91 KB

  • How can i add a new user and change user'password with javamail?

    how can i add a new user and change user'password from a mailserver with javamail?
    email:[email protected]

    Well user creation and updation is a system property..U need to go through that part...as it depends on the system you are hosting pout your application...
    if it is linux...u have to use some shell programming\
    bye for now let me know if this guides you or if you need some more stuff.
    bye

  • How do you add a new ipod touch to an existing library?

    How do you add a new device, an ipod touch to an existing library? The computer isn't recognizing therefore new device.

    Open itunes, connect ipod, select what you want to sync, sync.

  • Create and name new worksheets in existing excel spreadsheet

    Hello-
    I am running LabVIEW 6i and excel2000. I need to write data acquired in LabVIEW to new worksheets of an already existing excel spreadsheet, and also name these new worksheets. I have been able to create the new worksheets but haven't yet figured out how to name them. I'm new to activeX and any help would be greatly appreciated.
    Thank you

    Hi Paul,
    Programming using ActiveX can be tricky, especially knowing just what kind of datatypes the different methods and properties are expecting. There are 2 ways I would recommend for users to find out about ActiveX parameters:
    1. Right-click and choose Help for the specific property/method.
    When you have a method or property selected on the Property or Invoke Node, you can right-click and there will be 2 help options--one for the generic Property Node or Invoke Node, the other for the specific method or property that is selected in the node itself. If you select the help for the specific property/method, a Microsoft Visual Basic Reference Help should appear that will provide you with explanations and examples of the datatypes that method/property is expecting given the object that is in use.
    2. Go to the MSDN Library >> Excel Object Model
    This has an overview of Microsoft's Excel Object Model and will also show you how to use Microsoft's Excel Object Model.
    Keep in mind that because ActiveX can be tricky, NI also offers the Report Generation Toolkit to make programming to Word and Excel much easier! Nice tutorials and examples are provided too.

Maybe you are looking for

  • How to incert custom leave application IView under ESS overview?

    Dear Team, We are developed custom leave application like Work & Time & now that displaying at work set row My client requirement is Custom leave application should also display under ESS Overview with iView pic along with other iView's. Please share

  • I want tables for SAP ICH to do smart forms

    Hi , i want tables for ADRESS DATA of bill to party  and ship to party , for PO details  pls help me

  • PO Document Sequencing

    Hi Can anyone please validate if the PO Document Sequence Number is at OU Level or SOB Level. Can we have different PO Types i.e. A1 , A2 , A3 which can be standard only. I understand that in PO we have standard Order Type but can we have a workaroun

  • Co-workers using CS3, I'm getting CS4. File incompatibilities?

    I work with two graphic artists that use CS3. I will most likely be purchasing a new iMac this weekend and I'm assuming that I will only have CS4 available to buy unless I look for CS3 on ebay or something. Will there be many file incompatibilities i

  • Problem in barcode printing..

    I am given only the barcode dimension and content to print it using smartforms..how do i go about it..? Do i have to start from SPAD transaction or se73.. kindly let me know links which may give step by step guideline to my problem..and in SE73 i don