Report Generation MS-Word always give error

Hi
I am using LV 2012 and MS Office 2010.
I am using report generation toolkit to have a customised output report.
When I specify output format as excel, I am able to get the desired result but when I specify output format as word, it always throws an error. I checked running the NI examples meant to give output in word but they all fail while the excel reports are perfect.
Please find attached an error code for one of the example Sample Report(word).vi
Please suggest the solution.
Regards,
Manbir
Attachments:
error_doc.JPG ‏20 KB

We need to see the code in order to say "Here is the error" or "Try doing it this way".  It also gives us something to try, ourselves.  Do you know how to make "snippets", which are .PNG "pictures" of your code that you can simply put into the message using Insert Image?  We can then drag this image into a LabVIEW Block Diagram, and voilà, working code!
BS

Similar Messages

  • Report Generation Toolkit (Word) : How to use correctly bookmark and cross-reference without "Error! Reference source not found"

    Hi,
    I try to generate a report using a template. In my template I use some cross-reference to refer to one bookmark. For exemple in the first page I created a bookmark for my name and in the header I created a cross-reference refer to my name. The problems is when I run my VI the bookmark actualise perfectly but the cross-reference refer to the bookmark can't actualise with the same value and generates an error : "Error! Reference source not found".
    Can somebody help me please!
    Nki
    Solved!
    Go to Solution.
    Attachments:
    01.jpg ‏72 KB

    Hi,
    When i create the word template, the bookmaks and the cross-reference referred to the bookmark update correctely. The problem is when I try to change the bookmark using "report generation from template vi" the bookmark change but not the cross-reference and the error generated is "Error! Reference source not found". 
    I make coople reasherch and i think they have no solution for this because : "if the text in a heading referred to in a cross-reference is revised, the cross-reference to the heading may no longer work" (http://office.microsoft.com/en-us/word-help/troubleshoot-cross-references-HP005189368.aspx).
    To "resolved" this problem I create an other bookmark in the template who have the same value white the principle bookmark.   
    I use Labview 2011 and Micosoft office 2010.

  • Labview 2013 report generation toolkit word 2010 insert table problem

    Hi,
    I am currently evaluating LV2013 with respect to the report generation toolkit for use with word 2010. My Vi/program won't insert the correct table and gives me an error message. see below:-
    Exception occured in Microsoft Word: The requested member of the collection does not exist.Help Path is wdmain11.chm and context 25421 in NI_ReportGenerationToolkit.lvlib:Word_Insert_Table​.vi->NI_Word.lvclass:Append Text Table to Report.vi->Word Table save.vi
    I have since run the following word example.vi provided by NI within LV2013 office examples:- Growable table.vi. this gives me the same error!
    Exception occured in Microsoft Word: The requested member of the collection does not exist.Help Path is wdmain11.chm and context 25421 in NI_ReportGenerationToolkit.lvlib:Word_Insert_Table​.vi->NI_Word.lvclass:Append Text Table to Report.vi->Growable table.vi
    It would seem that regardless of my own Vi there is a fundamental problem in the office example vi.
    I have found examples of a similar problem in LV2011/2012 but the work around code doesn't seem to match the LV2013 vi's code for a direct replacement.
    Can anyone help/shed some light on this? 
    Thanks in advance,
    Dan.

    Because the upgrade of Word from 2007 to 2010 I needed to upgrade an existing application from LabVIEW 2009 to 2013. This didn't work because of the insert table error. I discovered that the problem is the vi called "Word_Insert_Table.vi" located in the ..Program Files (x86)\National Instruments\LabVIEW 2013\vi.lib\addons\_office\_wordsub.llb. There is a "Cut" command implemented, this command removes the created cell instead of clearing it. Therefore the table will be filled half and then returnes with an error. I have removed this command. I have posted the changed vi (LV 2013).
    Attachments:
    Word_Insert_Table.vi ‏30 KB

  • Report Generation MS Word Table Bug

    Hi everybody,
    I am using Word 2010 and LV2010 and I am unable create a proper table with Word using the Report Generation Toolkit. Excel and HTML work fine, but Word fails. Not even the Examples work as they are supposed to.
    When using the attached VI (see screenshot below)
    the result appears as follows:
    Temperature
    Temperature
    Temperature
    Temperature
    Temperature
    Data 1
    Data 1
    Data 1
    Data 1
    Data 1
    Data 2
    Data 2
    Data 2
    Data 2
    Data 2
    Does anyone have an idea?
    Thanks in advance.
    ben
    Solved!
    Go to Solution.
    Attachments:
    test_table.vi ‏10 KB

    OK, if NI won't provide a workaround, I'll create my own:
    The problem stems from the fact that the NI Report Toolkit populate a Word table by first creating an empty table of the correct size, then placing the table contents into the copy buffer, then selects the whole table and uses Paste to push the data into the table. The problem is actually in Word, because in Word 2010 it interprets the contents of the copy buffer differently.
    The solution is to alter the data that gets pushed into the copy buffer by the NI Report Toolkit. To implement my fix, you will need to alter one VI of the NI Report Toolkit (so you might want to make a backup in case this stops it from working in other previous release of Word).
    Open [LabVIEW installation folder]\vi.lib\addons\_office\_wordsub.llb\Word_In​sert_Table.vi
    There is a nested for loop that interprets the provided string array data and reformats it into a long ASCII string for the copy buffer. It should look like this:
    Change the nested loop to look like this:
    The changes I've made are twofold:
    1. Within the inner loop, replace the "\n" char with a Tab character
    2. Just after the inner loop, add a new "concatenate strings" function that adds "\n".
    This alters the string that the toolkit places into the copy buffer. You should find that report tables now populate correctly in Word 2010!
    This is untested on previous releases of Word, and could possible introduce problems there, so if anyone could test this for me it would be most appreciated
    Best of luck!
    Thoric (CLA, CLED, CTD and LabVIEW Champion)

  • Can I align the orientatio​n of axis labels in a graph generated with the report generation toolkit (Word)?

    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,
    Juergen

    I 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:

  • Impdp triggers always give error ORA-04071:missing BEFORE, AFTER or INSTEAD

    Hello,
    I am using 11g impdp to create a test system.
    I use this cmd to import
    impdp 'SYS/xxxxx@PWRFUN AS SYSDBA' dumpfile=PWRPROD.DMP logfile=PWRFUNimportPROD.log SCHEMAS=pwrplant TABLE_EXISTS_ACTION=REPLACE
    Then I get this error for all the triggers
    ORA-39083: Object type TRIGGER failed to create with error:
    ORA-04071: missing BEFORE, AFTER or INSTEAD OF keyword
    Failing sql is:
    CREATE TRIGGER "PWRPLANT"."APPROVAL_STEPS_HISTORY" PS_HISTORY
    BEFORE UPDATE OR INSERT ON PWRPLANT.APPROVAL_STEPS_HISTORY
    FOR EACH ROW
    BEGIN    :new.user_id := USER;    :new.time_stamp := SYSDATE; END;
    As you can see, the trigger does contain the word "before".
    When I remove " "PWRPLANT"."APPROVAL_STEPS_HISTORY" " and run the trigger below, it compiles correctly. Why is this, and how do I make my impdp to run correctly?
    CREATE TRIGGER PS_HISTORY
    BEFORE UPDATE OR INSERT ON PWRPLANT.APPROVAL_STEPS_HISTORY
    FOR EACH ROW
    BEGIN    :new.user_id := USER;    :new.time_stamp := SYSDATE; END;

    same error, thanks for your attemp
    Error starting at line 1 in command:
    CREATE TRIGGER "PWRPLANT"."APPROVAL_STEPS_HISTORY" PS_HISTORY
    BEFORE UPDATE OR INSERT ON PWRPLANT.APPROVAL_STEPS_HISTORY
    REFERENCING new AS new
    FOR EACH ROW
    BEGIN :new.user_id := USER; :new.time_stamp := SYSDATE; END;
    Error report:
    ORA-04071: missing BEFORE, AFTER or INSTEAD OF keyword
    04071. 00000 - "missing BEFORE, AFTER or INSTEAD OF keyword"
    *Cause:    The trigger statement is missing the BEFORE/AFTER/INSTEAD OF clause.
    *Action:   Specify either BEFORE, AFTER or INSTEAD OF.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Updating CC Desktop app always gives Error code: A12E1

    Ok, this is getting really old. The fifth release of Adobe Cloud desktop app has come out since I purchased CC last December. Every time, the installer fails with error code: A12E1 (see attached). Again, I followed all the instruction regarding renaming the OOBE folder, first as admin user—then as root. The installer always shuts down and crashes the desktop application. I have a MacBook, Intel OS Lion 10.7.5.
    Is Adobe ever going to fix this issue? I am tired of re-installing my Adobe Apps and presets every time the desktop app updates.

    Hi
    Try the steps mentioned in given document :- http://helpx.adobe.com/creative-cloud/kb/a12e1-error-downloading-creative-cloud.html
    Also, share the update on the resolution.
    Sarika

  • HT201699 My Ipad 2 recognizes my MTNL Micro sim and connects me to 3g network easily. I put the same sim in the latest ipad 3, it always gives error as "sim failure'. I did all the work such as putting correct APN, restarting the ipad etc. Still why this

    I do have this problem with new Ipad3.
    I used Ipad 2 3g with mtnl,Mumbai as carrier. The sim I used have not given me any problem as my Ipad immediately recognized and connected me to internet.
    Recently i purchased I pad 3 3G. I have inserted the above micro sim to this ipad. It always gave this message as " Invalid Sim".I have the the following to correct the problem
    Put the correct APN under cellular data.There is no need of user name or pass word
    Restarted my I pad after putting the APN
    Taken out the sim from the tray and reinserted it later.
    Checked whether I got the latest carrier version
    Turned off wifi
    Switched on and off cellular data
    I know that the sim is not locked because the same sim is working in my telephone as well as ipad2
    Now the SOS to my community members please....

    Oh friend. Now I am totally disappointed with this big purchase. My connectivity is now limited with wifi only.(till my operator starts 4G service).
    Anyway manyy thanks for attending my doubts....

  • 2nd execution of download jsp always gives error

    I have got a download button in my html which executes the server page Filedownload.jsp. The download executes fine, but I cannot invoke it again without refreshing the html screen. Otherwise I get an error.
    This is how the jsp is invoked from my html:
    document.location='FileDownload.jsp?ReportTypeDir=' + ReportTypeStr +
    '&MonthDir=' + MonthStr + '&filename=' + DownLoadFileStr;
    And this is my jsp:
    <%@ page contentType = "application/vnd.ms-excel" %>
    <%@page language = "java" import = "java.util.*, java.io.*, javax.servlet.*, java.text.*" %>
    <%
    String filepath = "c:\\Pace\\" + request.getParameter("ReportTypeDir") + "\\" + request.getParameter("MonthDir");
    String filename = request.getParameter("filename") + ".xls";
    File file = new File(filepath + "\\" + filename);
    byte b[] = new byte[(int)file.length()];
    response.setHeader("Content-Disposition", "attachment; filename=\"" + filename +"\";");
    if (file.isFile())
    BufferedInputStream fin = new BufferedInputStream(new FileInputStream(file));
    BufferedOutputStream outs = new BufferedOutputStream(response.getOutputStream());
    int read = 0;
    while((read = fin.read(b)) !=-1){
    outs.write(b,0,read);
    }//end of while
    outs.close();
    fin.close();
    }//end of if
    %>
    How can I avoid getting this error message.
    Thanks in advance
    Nongo

    I'm suprised that it even worked the first time. Since your jsp calls response.getWriter() to give you the implicit 'out' variable, it would be illegal to call response.getOutputStream() in your jsp.

  • Report Generation Toolkit for Microsoft Office errors when building and applicatio​n

    Has anyone seen this issue?
    My program runs fine. When I try to buil an applcation, I get the attched error.
    Attachments:
    error.png ‏98 KB

    Have a look on this page.
    https://decibel.ni.com/content/thread/5936
    CLA 2014
    CCVID 2014

  • Report Generation (MS Word)

    Is there a way to make the target MSWord document have landscape
    orientation?
    Thanks,
    Peter

    Use "Set Report Orientation.vi" in the Report Layout pallete.
    - Dan

  • HT4436 my massage alway give error with the server try again later help

    someone know how strigh forward reset massage and fix error with the server????
    help

    See http://support.apple.com/kb/TS3970?viewlocale=en_US&locale=en_US - maybe it can help solve your problem.
    Clinton

  • App world always gives error after 1 complete sync

    earlier i have used the app world plugin and all was well. 
    now since last week im facing this problem: (phone is storm 9530, and i have upgraded the OS to 5.0 just last week)
    whn compluter starts, and i start google chrome, then goto appworld website, then download (SYNC) any app, all goes succesfully.
    then whn i try the 2nd download (sync) .. the error comes 
    "SYNC ISSUE: There is an issue connecting to BlackBerry World. Please try again"
    i have checked in hte cellphone, the first app is working perfect.
    later if i try syn agian and again at appworld website, the first SYNC is even impossible and has same error.
     If i resrtart the computer, then all goes well , juz like i stated earlier, but only for 1st sync.
    plz provide a solution

    furthermore ... if i try restarting the google chrome, or even through the internet explorer ... cannot even open the appworld website... it juz goes blank with both the chrome and IE.
    however other website work fine

  • I need to update iPad one but always give error ?

    I can't update iPad ?

    What happens when you try and are you getting any error messages/codes ? If you are getting a 'network timeout' error when downloading the update on your computer then try temporarily turning off all your firewall and antivirus software until the download has completed. If you are getting a different error ... ?

  • MS word report generation

    Hi,
    I am trying to generate report in MS word.The functions used in report generation are appending test and appending table.At few instance of report generation getting the attachded warning/error And report is not generated.
    Using SPI 2013 and MS word 2013.
    Thanks,
    Chethan
    Attachments:
    REPORT ERROR.JPG ‏63 KB

    Hi
    VI attached.
    Note:The error message appears randomly(Not always).
    Thanks,
    Chethan
    Attachments:
    PA_REPORT.vi ‏45 KB

Maybe you are looking for

  • Iam not getting the data on screen after using the user exit zxpadu01

    Dear Freinds             As per my requirement when the user enters value Ansal  it should get defaulted to Amount field (bet01 ) based on the wage type i have written calculation ( q0008-bet01 = ansal/100) before it getting defaulted to bet01, i fou

  • Creating a still to be edited in photoshop or used as a clean plate

    Hello All, Is there a quicker and simpler way to create a still image at the current or specific time in the Compostion Window I want to create a single frame targa or tiff that I can open and edit in photoshop.  The way I'm doing this was (on the Ma

  • Help with photos that can't be imported

    Hello all, Every time I open iPhoto there is a message saying new photos have been found and asking if I want to import them to the library. I click "yes" and the same message is shown again. After that, I get a message saying the photos have been ad

  • Dynamically Setting the Position of a Subform

    Hello there I am trying to solve an issue with the dynamic positioning of a subform not working when the form is rendered from a process. I have a flowed XDP based form with a variable amount of content, and a "totals" subform that needs to be positi

  • Cover flow image all pixelate. How can I fix it?

    in coverflow, some of the graphics ok the album cover are pixelatwd and mosaic looking. It's about every third of fourth album cover. In non-cover flow view they are all fine. What could have caused this and how can I fix it? In iTunes the graphics a