Report generation is saving data to a word template

I created a template for a program to write test result data when prompted by the user. My problem is that after the template is written to and closed it's asks if the new data shoule be saved. I don't want to give the user that option because it actually saves it to the template not a document, and when another test is done and report is requested, it doesn't write over the data fromt the previous results, it adds to it. Is there some sort of Word security option or a vi that might be helper to prevent users from saving data permanently, to overwrite previous data?

Harene,
The ActiveX call to Quit comes with a parameter to Save Changes (T or F). I would suggest making that the last call you make. This is how the Dispose Report.vi is made in the Report Generation Toolkit for Microsoft Office. (This was checked on my machine with Office 2000.)
Randy Hoskin
Applications Engineer
National Instruments
http://www.ni.com/ask

Similar Messages

  • Insert document expiration date in a Word template

    Hello all,
    I have a problem I hope anyone can help me with. I need to include a column in Document Library with the Document expiration date and after that, include that expiration date into the Word templates I have in that library.
    In order to do that, I created a date column (not a calculated one) called "ExpDate" with a default value of Today + 365 as I want the document to expire one year after its creation. After that, I edit the word templates I have associated to the
    document library so as to include the new "ExpDate" column as a Quick part.
    The problem I find is the following: When I create a new document based in the document templates (through content types), the user has the chance to insert an expiration date (as it is metadata) or leave it empty (the column is not defined as mandatory). If
    the user leaves the expiration date empty, the new column is filled with the default value (today + 365 days) but when I open the word document I see the name of the column [ExpDate] instead of the default value.
    Is there a way of forcing the document information panel to be filled with the default value?
    Do you imagine an alternative solution to the requirement of including the expiration date inside the document without having to be defined by the user?
    Thanks a lot.
    Regards.

    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.

  • Report Generation Toolkit - Prints data from a previous report in Word

    I am running an executable from the "system exec.vi" created with Labview 6.1. I am using the Report Generation toolkit vi's to create a report in Word that prints simple Title with test header and then appends a Table with measurement data. The problem is the measurement data in the table is from a previously printed report. This problem only exists when I Run the Report.exe from the "System Exec.vi". If I manually start the Report.exe in Windows or open in the Windows Commandline the correct data measurement data is printed in the report table. Any suggestions are appreciated. Thank You

    Hi,
    So far I havent been able to reproduce this on my computer. Could you post your code so that I can try and reproduce this issue?
    Feroz P
    National Instruments

  • Report Generation Toolkit Table Row Height-MS Word

    I am having trouble setting the table row height in the report generation toolkit. I can set the column width fine, but the row height seems to remain the same no matter what I set it to. I have attached the VI that generates and formats the table, and the printout it is resulting in. I have also attached the template file I am using.
    Any tips to get this to work right? I am trying to make the cells exactly the same height as the text inside. 
    Solved!
    Go to Solution.
    Attachments:
    AddMarkersToReport.vi ‏20 KB
    badFormatting.pdf ‏179 KB
    splitter.docx ‏13 KB

    Hi,
    So I tried .2  and it didn't work.  So I went to Word to manually change it, and it did not work either.  There is a selection box in word, for the table properties, that seems to default to the value "at least".  When I changed this manually to "exactly" in word, no problem with the .2 manually in Word.
    Hopefully this can be set within the template, for all new inserted tables.  I'm not sure the report generator VI's expose this property.  Well, this is a start for the issue.
    Edit ****
    You can go into the add table VI and expose the property.  See pic.   However, you have to decide if you want to "upgrade" this VI permanently to expose this property or make a copy with the property exposed.   I haven't messed with the new class reports too much, so not sure of the ins and outs with this.
    I think this is the issue with the row size becoming smaller.
    Mark Ramsdale

  • Cannot open a report I just saved via Save a Dynamic Template

    Hi All,
    I am on BPC 5.1 SP9, working in Office 2007.
    The problem is happen sporadically, where I save a report using Save a Dynamic Template.  Then try to open up the report I just saved, and the report does not open.  Sometimes if I resave the report via Save Dynamic Templates, I can reopen up the report.  If that does not work, I go back into Save Dynamic Template, and save it to a new name, and see if I can get the report to open.
    The strange thing is I can save the report to my desktop, then go into BPC.  Every time I open the report from my desktop it always runs.
    Not sure if anyone has seen this before?

    Does your template have an Excel 2007 4 digit extension? 
    There is a known issue with BPC 5.1 sp7 or higher service pack and Excel 2007 format extensions (SAP Note 1347243)
    Files with Excel 2007 Extension such as XLSX and XLTX, (saved and opened repeatedly via eTool -> Save / Open Dynamic Templates menu) may have issues where the template will not open.
    The problem does not exist with BPC 70M sp3 or higher. 
    The note also has a possible workaround; suggesting renaming the template on the File Share Server and then opening the re-named template via Open Dynamic Templates menu.
    Hope this helps.

  • Utilizing SQ01 SQ02 for user report generation of production data

    I am interested in utilizing sap query transactions SQ01, SQ02, and SQ03 to create and customize end user reports that will be used  by our audit team to analyze SAP data in our production environment. My objective would be to have one person with authorization to run SQ01,02,03 and have that user create all the reports that would be required for the team to use. This way there isn't a bunch of users out there using SQ01 indiscriminately or perhaps not using it at all. I currently have authorization to run SQVI but it is limited. From what I understand there is more flexibility with SQ01 because they allow you to create calculated fields and offer more formatting options. Most of these reports would be related to finance, sales, vendor, customer, etc.
    My question is this. How do I create these custom queries and allow multiple users to access and run them? Are the queries created directly in production? Are they created in DEV and then tested in QA before being transported to Prod? I understand you can map an sap query program to a transaction and then add that to a role but isn't the program name generated by SQ01 different in every instance? I would like this code to be reproducible as I have 5 different SAP instances in which these reports would be used. Same reports, different data.
    I am looking to leverage the power of SAP query to produce meaningful reports for our team without having to use programmers to develop them from scratch. What is the optimal approach to doing this without creating a lot of hassles and without creating additional security risks?
    If I create a query based on SAP tables I have access to does the general user also have to have authorization to those tables in order for the query to run for them? In theory the entire team should have authorization to the same standard SAP tables because we all have the same roles assigned but I may have some additional tables assigned to me because I am the IT auditor. Just confirming.
    I appreciate any and all suggestions. I would like to proceed with the best solution as soon as possible.
    Thank you very much.
    Mark

    Hi Mark,
    It is best to create queries in dev rather than doing it in prd directly.
    Query user group can be used to control the access in production.
    You can have one query administrator with access to sq01,2,3 and sqvi who will assign query user group to respective users in prd so they can run these.
    BR,
    Mangesh

  • Are report generation tools exclusively text-based?

    Hi,
    I'm using LabView 5.1.1, and have just explored the new (to me) report
    generation tools. Handy though they are (I added the facility to print
    results from my project in a nicely formatted report in just a couple of
    hours) it strikes me that it would be even better if I could add bitmaps
    to the report. This would let me add pretty logos, but obviously we
    could do far more using LabView pictures/graphs etc.
    There is no reference in the documentation or on the NI web site as far
    as I can tell, but I can't be the first programmer wanting to do this.
    Any hacks out there?
    Best wishes to you all,
    Allan Green
    Medical Physics and Clinical Engineering,
    Queen Elizabeth Hospital Edgbaston Birmingha
    m UK
    ==================================================================
    My views and opinions are seldom that of the institution for which
    I work. I take that to be a healthy sign.
    ==================================================================

    I too have tried to use the report functions. They work fine for text only.
    In the end I ended up scraping the idea and simply configured a vi (which i
    called report.vi) to print at completion. I set the vi up with tables and
    bitmaps the way i wanted it and called it as a sub vi (passing the data i
    wanted printed to it) whenever i wanted a report printed.
    It works really well. The only problem is that it must always be strictly
    to a given format as defined in your vi.
    I suppose you could hide some controls using attribute nodes (and maybe
    enable others) if you didn't want them printed.
    Cheers
    John
    Reinis Kanders wrote in message
    news:[email protected]...
    > On windows I have had success with using HiQ for report generation. I
    > would manually create a template for a
    > particular project, then send data using LV VI's to that template then
    save
    > it with different name or just print it.
    > Using HiQ (free with LV 5.1) I was able to have pictures, graphs, you name
    > it. Also since HiQ gets the actual data, then by saving HiQ file you do
    > data logging as well, those HiQ reports can also be stored in database.
    > I found HiQ approach to be more flexible than NI report generator,
    only
    > drawback is that it is not cross-platform portable. For cross-platform
    > report generation I have been looking into some sort of XML based
    approach.
    >
    > Hope it helps,
    >
    > Reinis Kanders
    >
    > "Allan Green" wrote in message
    > [email protected]...
    > > Hi,
    > >
    > > I'm using LabView 5.1.1, and have just explored the new (to me) report
    > > generation tools. Handy though they are (I added the facility to print
    > > results from my project in a nicely formatted report in just a couple of
    > > hours) it strikes me that it would be even better if I could add bitmaps
    > > to the report. This would let me add pretty logos, but obviously we
    > > could do far more using LabView pictures/graphs etc.
    > >
    > > There is no reference in the documentation or on the NI web site as far
    > > as I can tell, but I can't be the first programmer wanting to do this.
    > > Any hacks out there?
    > >
    > > Best wishes to you all,
    > >
    > > Allan Green
    > > Medical Physics and Clinical Engineering,
    > > Queen Elizabeth Hospital Edgbaston Birmingham UK
    > >
    > > ==================================================================
    > > My views and opinions are seldom that of the institution for which
    > > I work. I take that to be a healthy sign.
    > > ==================================================================
    > >
    > >
    >
    >
    >
    >
    > -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
    > http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
    > -----== Over 80,000 Newsgroups - 16 Different Servers! =-----

  • Report Generation Toolkit: Page Numbering

    When creating a Word Report using the Report Generation Toolkit, I am using the Word Set Page Numbering.vi to display the page numbers in the footer of each page of the report. This works fine when the include page x of n switch is turned OFF. However, when the switch is turned ON the numbers only show up in the left footer regardless of the position setting.
    Is this a known bug?
    If not where do I report it?
    I guess I just did...

    Hi Drugar,
    I have filed a CAR (43K9NBF2) regarding this issue.  I will look into fixing it for the next version of the Report Generation Toolkit.  If you want to workaround the problem for now, go into vi.lib\addons\_office\word.llb\Word_auto_text_entry (for page number).vi.  You can get a reference to the "Selection" property of the Application class.  Then under Selection, get a reference to "ParagraphFormat".  Then, you can set the "Alignment" property of the ParagraphFormat class.
    Thanks for reporting this issue, and let me know if you have any other questions.
    -D
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • Does the Report Generation Toolkit support Office 2007?

    With the hot-out-of-the-oven Office 2007, Microsoft has done a complete overhaul of the Office environment that we all have spent many years learning to perfection (well.. almost). Lucky those who got a head start as part of the Office Beta program.
    Well, NI claims that the current version of the LabVIEW Report Generation Toolkit supports "Microsoft Office 2000 (Word, Excel, and Graph) or later" and therefore literally also the new Office 2007.
    I doubt that the ActiveX API has remained unchanged when developing Office 2007, so let's use this thread to uncover the experience you have with calling Office 2007 applications using the LabVIEW Report Generation Toolkit.
    Anyone???
    - Philip Courtois, Thinkbot Solutions

    We are currently working on a maintenance release for the Report Generation Toolkit to support Office 2007.  You can install the current toolkit with Office 2007, but you will have some problems.  If you copy the four LLBs from the Compatibility\Office 2003\vi.lib\addons\_office folder on your Report Generation Toolkit CD to the corresponding vi.lib\addons\_office location in your LabVIEW folder after installing the toolkit, things will work for the most part.  But you won't have 100% compatibility until the maintenance release is done.
    -D
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • .tdms report generation with .pdf format

    Hi,
    My problem is a kind of report generation problem.My data logging format is .tdms format and i use tdm file viewer function to view my datas but i didnt use tdm data report generation function.How can i use this function with my code.Actually i want to print automatically like pdf format...
    Attachments:
    ustalt.vi ‏62 KB

    kacco wrote:
    Hi Yye,
    İ use diadem and labview 09. I know diadem is very good solution to view data but i want to print automaically.My data type is .tdms(test data management system) if u look my .vi you can understand.
    ı want to print aoutomatically with my channel and group.
    I can see from your code that you are a beginner. Your coding style is very Labview no-no. But well every Labview pro have some time been a beginner I have some problems understanding or grasp the essence of your problem. Can you post your failed attempt to use rapport generation. It would help in the understanding of your problem.
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • Can I export the data collected in a PDF Form to a Word Template?

    I work in the legal field and constantly have to draft the same legal documents over and over. I would like to creat a form that allows me to collect the data I fill in as well as export that data into the word templates for legal document drafts. Is this possible?

    Hi,
    The Acrobat Forms forum would be a better target for your question:
    http://forums.adobe.com/community/acrobat/forms
    Regards,
    Brian

  • Using Word Easy Table Under Report Generation takes long time to add data points to table and generate report

    Hi All,
    We used report generation tool kit to generate the report on word and with other API 's under it,we get good reports .
    But when the data points are more (> 100 on all channels) it take a long time  to write all data and create a table in the word and generate report.
    Any sugegstions how to  make this happen in some seconds .
    Please assist.

    Well, I just tried my suggestion.  I simulated a 24-channel data producer (I actually generated 25 numbers -- the first number was the row number, followed by 24 random numbers) and generated 100 of these for a total of 2500 double-precision values.  I then saved this table to Excel and closed the file.  I then opened Word (all using RGT), wrote a single text line "Text with Excel", inserted the previously-created "Excel Object", and saved and closed Word.
    First, it worked (sort of).  The Table in Word started on a new page, and was in a very tiny font (possibly trying to fit 25 columns on a page?  I didn't inspect it very carefully).  This is probably "too much data" to really try to write the whole table, unless you format it for, say, 3 significant figures.
    Now, timing.  I ran this four times, two duplicate sets, one with Excel and Word in "normal" mode, one in "minimized".  To my surprise, this didn't make a lot of difference (minimized was less than 10% faster).  Here are the approximate times:
         Generate the data -- about 1 millisecond.
         Write the Excel Report -- about 1.5 seconds
         Write the Word Report -- about 10.5 seconds
    Seems to me this is way faster than trying to do this directly in Word.
    Bob Schor

  • Saving only a portion of a Microsoft Word template into a new document using LabVIEW Report Generation Toolkit

    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

  • Saving report generation word file to a previous version of word

    hello everybody,
    well, the problem is quite simple.
    on the computer of my bench I have office 2007, when I save a report generation word file it saves it from the template to a word 2007 file. file which is unreadable from a word 2003.
    Is there any option on the report generation toolkit that allow me to save this file to a previous version of word like we do when we do save As on Word 2007 ?
    thanks for your answer...

    Hello,
    I don't really know the exactly answer to your question about an option to save to a previous versions of word. But you can program it because the Save Report to a File.vi accept both ".doc" and ".docx" extensions. If you use the ".docx" extension or just the file name without extension (in the File Dialog express vi, for example), you will open the document only with Microsoft Office 2007. If you use the ".doc" extension, you will open the document with Microsoft Office 2003 and with Microsoft Office 2007 (in compatibility mode).
    Let me know it this tip helped you.

  • I am using report generation toolkit 1.1 with Labview 7.0 and Office 2003 profession​al. The create new report VI opens Excel but throws error (-21471672​62- from automation open VI) when I try to open MS word. please help...

    I am using report generation toolkit 1.1 with Labview 7.0 and Office 2003 professional. The create new report VI opens Excel but throws error (-2147167262- from automation open VI) when I try to open MS word. please help...

    Hi Leo22,
    Does this error occur if you use any of the example programs that come shipped with LabVIEW? I would try opening one of the examples that write data to Word and see if those give you an error. Also, have you tried just putting down a New Report.VI and change the report type to Word? If this simple vi (that's all you need to open Word) breaks, I would check to see if there are any instances of Word still open. Check the task manager to see if any word processes are still open. There should not be a problem accessing Word 2003 from LabVIEW 7.0. If neither of these solutions work, please give some more detail about your application and we can research further. Thanks!
    Jeremy L.
    National Instruments
    Jeremy L.
    National Instruments

Maybe you are looking for

  • Tracking in flash/Swf :: Help me please :)

    This is my first time working with Ad Tracking in Flash and I want to make sure I'm going about it correctly.. I can't test it on my side, so I want to know it's right when I pass it on to the client. I've gone through the tutorials on Adobe and here

  • Backup error

    When I try to backup my catalog in Premiere Elements 12 I get an error message that reads "Error encountered while writing disc ..".

  • Problem using mplayer [solved]

    Hi - I'm trying to run mplayer through its gui gmplayer. It doesn't run either from my normal user account or from root. From my user account I get this - process:2900): Gtk-WARNING **: This process is currently running setuid or setgid. This is not

  • Reason rewire audio problems

    Hi, I've followed all the instructions posted within this forum and in the manuals but I still cannot get Reason audio in Logic. Midi rewires fine between Logic and Reason, i.e. playing a rewire track in Logic does trigger the Reason rack - audio com

  • My computer crashed so i am trying to download the app on a new computer

    Why won't my computer recognize the start up app?