Report Generation excel column size

  Dear,
In the project, I save the data in Excel with Report Generation. I would like change just the column size of my Excel report. There is an explanation in the labview help but I have always an error when I run the VI.
I work with labview 8.2
A VI is joined with a simple example.
Regard
Julien
Attachments:
report table graph.vi ‏21 KB

Julien,
I realize you only want to modify columns, but you need to put in a start and stop row value other than -1.  Try setting the start and stop rows to 0.

Similar Messages

  • Error 1045 Using Report Generation Excel 2010

    Hello,
    The attached code throws an error 1045 when using Excel 2010.  I don't get this error when using Excel 2007.
    Please Advise
    Thanks
    Attachments:
    Source.zip ‏66 KB

    Take a look at this Knowledge Base article and see if if helps.
    Error 1045 When Using Report Generation Toolkit for Microsoft Office
    http://digital.ni.com/public.nsf/allkb/3E4102D8B91D0F9E86256CE0006BADCB
    Applications Engineer
    National Instruments

  • Report generation, Excel isn't closed in the Task manager (LV2010)

    Hello everybody,
    I attached a simple example, to explain my problem.
    I tried (with Report generation) save data to Excel. That works fine. My problem is: in the Task Manager I can see the Excel.exe.
    Does anybody have a idea or a solution, why Excel don't closed?
    If I open and close the saved Excel file, the Excel.exe disappear in the Task manager. But this should not the way.
    many thanks in advance
    zäpfle
    LV2010
    Solved!
    Go to Solution.
    Attachments:
    Example_Forum.vi ‏19 KB
    Example.xls ‏55 KB
    Auswertung_Example.xlt ‏51 KB

    Hello zäpfle,
    This is actually a known issue and already reported to NI R&D. As you mentioned, to solve this, you have to open and close the Excel report (with Word report everything seems to be fine). Since the task is closed just after the VI closes or open-and-close Excel, it seemed that not all references would close properly. The issue though isn't with properly closing the references, but rather deeper.  However, a possible workaround would be to programmatically end the process just after closing the reference to Excel.  Here is a link to a community example that demonstrates how to do just that:
    Kill a task in Windows using System Exec.vi
    https://decibel.ni.com/content/docs/DOC-9275
    Hope this helped. I am sorry for the inconvenience!
    Kind regards,
    Ioannis Karakatsanis
    Applications Engineering
    www.ni.com/support

  • Report Generation tool kit for MS office (Opening an existing excel file and appending to the bottom)

    I don't have any problems creating and filling an excel sheet with data. I use the New Report.vi, Easy Title.vi, and Easy Text.vi to create the file. I then save and dispose properly.
    What I don't seem to be able to do is open the exsting file and append data to the end of the sheet.
    Thanks in advance for your help.
    todd

    Hi Todd,
    You can do this by creating a new Excel report with the existing excel file path wired to the "template" input. Then use "Excel Get Last Row.vi" (located under Report Generation\Excel Specific\Excel General) to obtain the location of the last row. Then use that location to input new data into the file.
    Hope this helps,
    Dan

  • Is it possible to insert data into two Excel worksheets using Report Generation Toolkit?

    I'm using the toolkit to insert data into two separate worksheets in Excel using named cells. The problem is that it tends to favor one sheet or the other. In other words, one sheet will have data and the other no data and vice versa. (Sometimes I get data in both sheets.) Is there something I can do to clear this up or is what I'm trying to do unreasonable? I would like to use two worksheets so one sheet receives text and data. The other sheet is used to format the data into a printable report. (i.e. using Excel's CONCATENATE function) The second (report) sheet is also used to receive plots (JPEG files) from LabVIEW. I'd send the plot images to the first sheet, but I can
    not see a way to automatically transfer images from sheet to sheet. I'm using LV 7.1, Win2000 and Toolkit v.1.0.1

    Hi,
    You can use the "Excel Get Worksheet.vi" under All Functions >> Report Generation >> Excel Specific >> Excel General to specify a particular worksheet as the current worksheet. Then, you can specify which worksheet you want to write to in your VI.
    Let me know if you have any further questions and good luck!
    Kileen C.
    NI

  • Excel Graphs using Office Report Generation

    I'm using Office Report Generation and I would like to add a grpah to my excel spreadsheet using existing excel spread sheet data. 
    Right now the only way I can add a grpah is to load the data into labview and create a graph in a 2d array.  However that way the graph has no linkage to the data in the exc el spreadsheet.  I can't use a template to create the graph then load the data because different results require different methods.  However if I could modify an existing graph within labview I could use the template but I can't index a now labview created graph.
    Can anyone suggest anything?

    Hello,
    Thanks for posting to the NI Discussion Forums!  I think you might
    be right, and there might not be a conventional way to create your
    graph from the Report Toolkit (after all this is designed more to
    create a report from known and unchanging data that you can move to
    excel for demo purposes).  There might be some other ways to do
    this.
    My first recommendation if you would like to stick with the Report Gen.
    VIs, you can design an Excel Macro to generate a graph from the
    spreadsheet.  LabVIEW can execute the Excel Macro through the
    Report VIs (see the Report Generation->Excel Specific->Excel
    Advanced->Excel Macros palette).  There are some good examples
    and documentation out there about calling Excel Macros:
    http://venus.ni.com/stage/we/niepd_web_display.DIS​PLAY_EPD4?p_answer=&p_guid=B45EACE3DD2F56A4E034080​020E74861&p_node=DZ53040&p_rank=&p_source=Internal​&p_submitted=N
    http://venus.ni.com/stage/we/niepd_web_display.DIS​PLAY_EPD4?p_answer=&p_guid=B45EACE3D9D856A4E034080​020E74861&p_node=DZ53003&p_rank=&p_source=Internal​&p_submitted=N
    http://venus.ni.com/stage/we/niepd_web_display.DIS​PLAY_EPD4?p_answer=&p_guid=B45EACE3DC6D56A4E034080​020E74861&p_node=DZ53003&p_rank=&p_source=Internal​&p_submitted=N
    http://zone.ni.com/reference/en-XX/manuals/323805A​-01/RepGenUG_07/
    If you do not want to use the macros, you might have more luck using
    ActiveX, or other means in which to interface with Excel than are
    provided in the Report Generation Toolkit.  There are countless
    examples and discussions about Excel, LabVIEW and ActiveX so I won't
    spend too much time here on it, but if you think you might want to use
    this as an option, let us know and I can see about finding some
    examples on it for you.
    Hopefully this helps!  Please let us know how things go.
    Travis M
    LabVIEW R&D
    National Instruments

  • Remove worksheet VI - Report Generation Toolkit (LabVIEW 8.6)

    Hello,
    I am using the Report Generation Toolkit that ships with LabVIEW 8.6 for creating an Excel report. I am looking for a way to delete spreadsheets in a workbook. I did come across couple of message posts in the forum which mentioned about worksheet removal using some VIs that were shipped with previous version of LabVIEW. I could not find the built-in VIs in newer version of report generation toolkit (the one with LabVIEW 8.6).
    Is there a way I could remove worksheets in LabVIEW 8.6?
    Thank you.

    Assuming you're using Report Generation Toolkit 1.1.4 with LabVIEW 8.6, you can use the following VI (in the Report Generation > Excel Specific > Excel Advanced subpalette) to gain access to your current Worksheet and/or Sheets object:
    Note that this VI is not available in Report Generation Toolkit 1.1.3.
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • Changing the Size of generated graph in excel report generation toolkit

    Hi, i am trying to build a report generation vi for my Structural health monitoring system in which i need to export 3 graphs in to an excel report. The idea is to have the report on a single page, but when i paste them along with the ceiling and pillar deviation percentages, the report just exceeds the page limit. I wanted to know whether one can change the size of the graphs in excel? One can do it in word(tried that), but i dont want to use the bookmark option as it intend to put this up as a webservice in the next step. I am using LabVIEW 2009 Thanks.
    LabVIEW 8.2,8.6,2009...still learning
    Attachments:
    Report Generation SHM.vi ‏30 KB

    Hi,
    I haven't tried this myself, but looking through the report generation toolkit the "Excel format image VI" (in the Excel specific tab of the Report Genertaion window) looks to be the one you are after. The help entry for the VI says to: "Use this VI to format any type of image in a worksheet, including front panel images, images from a file, and graphs"
    Hopefully this will help.
    -CC 
    "If anyone needs me, I'll be in the Angry Dome!"

  • How do I get the last COLUMN in an Excel Sheet using Report Generation toolkit in LV7.1?

    I am trying to get the last column in an Excel sheet using the Report Generation toolkit. The function "Excel Get Last Row" does not give last column info. Is there a function that will do this?
    Thanks

    Hello –
    I think the following example program might be helpful to get you started programming your application.
    Get Excel Data from Specified Field.
    Hope this helps!
    SVences
    Applications Engineer
    National Instruments

  • Excel report generation

    Hello,
    I am looking for a simple solution to this simple problem:
    I have generated an excel data file using LabVIEW Report Generation Toolkit for Microsoft Office ( see diagram below ).
    Now I would like to add data to this worksheet every time I run this VI ( data must expand in column format instead of
    row)  but i have no Idea how to do it .
    I would appreciate any help.
    Thanks 
    Attachments:
    Excel Report.jpg ‏59 KB

    That's what the start input is for. You tell it where to insert the cells.
    Asides:
    Why aren't you wiring the error out from the new report function to the next function?
    Do not autoindex an array and wire a value to N. Do one or the other, not both. If you do both the loop will run for whichever value (N, or the array size) is smaller.
    Your loop with the function node can be simplified by replacing it with a single Divide function and feeding the Divide function the arrays directly. The numeric functions (as well as many other functions) are polymorphic.
    To learn more about LabVIEW it is recommended that you go through the introduction material, tutorial(s), and other material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. You can also take the online courses for free.

  • Hide Excel Chart Legend Using LabVIEW Report Generation Toolkit or Active

    Hello Eveyone:
    I work on the report generation toolkit in labview and creat the report in excle. I create the chart into report but I can't hide the chart legend or change the font size using report generation toolkit.
    I appriciate you guys time.
    Thanks
    Solved!
    Go to Solution.

    Howdy!
    What is the version of LabVIEW and Report Generation Toolkit you are using? Have you taken a look at the LabVIEW Example Column Graph (Excel).vi
    and looked at the help for Excel Insert Graph VI and Excel Set Graph Font?
    Joshua B.
    National Instruments
    NI Services
    NI Support Resources
    NI Training Resources

  • Report generation toolkit and column

    Hello, i asked this question before, but this time i just needed some input..
    I originally asked, if i am doing various experiment sets and say each sets takes in about 1000 data points, and i have to do 50 such experiments continously i wanted to know if there was a way of arranging the data so that for each experiment is written in a different column, so i have 50 different column. Instead of the current one column with 50000 data points.
    I was kindly suggested various alternatives such as using arrays...now my querry is regarding something that i heard which involves Report Generation toolset.
    If i was to get this toolset, with this make my life easier interms of sorting my data out into different columns? I ahve also been
    told it will do all sorts of graphs and do pretty much everying thing falling short of making a cup of tea
    Now has any one had any experience in this type of porblem? or do i have to stick with the array solution. Incidently the reason why i have a niggling problem with arrays is that my programme is stricly no limited to just 50000 data for some runs i can decide to take more data in one set then the orther so building an array becomes problematic.
    Please let me know what you all think of this kind Regards
    Mansoor

    Hello Mansoor
    If you want to write the data to an Excel spreadsheet there are several options available to you as well as the Report Generation Toolkit.
    I have posted some links to help and advice on performing this action using the toolkit, but also using the file I/O vi's and using active X.
    Have a look at these links and if you have any further questions please reply to this post.
    Report Generation Toolkit User Manual
    http://digital.ni.com/manuals.nsf/webAdvsearch/463​34E8183C5360586256E3F00603DDB?OpenDocument&vid=niw​c&node=132100_US
    Report Generation Toolkit Tutorials
    http://zone.ni.com/devzone/devzone.nsf/webcategori​es/A50386FBB21ECC1A86256AB7006C2E6C
    File I/O information
    http://zone.ni.com/devzone/devzone.nsf/webcategori​es/BC4E8ABB211CFE7F
    86256A1F0062CEB2
    Writing data to an Excel file example in the LabVIEW example finder at the following location: - �Communicating with External Applications -> ActiveX -> Excel -> Write Table to XL.vi�
    Regards
    Hannah
    NI

  • Report Generation broken after deployment - Excel Set Cell Color and Border.vi

    Upon deployment, the Excel Set Cell Color and Border.vi became broken.  After installing LV2010 SP1 to view the VIs in the deployment, I noticed that in the second case structure where the code draws the border using the BorderAround invoke node, there is an extra variant input parameter named 'Parameters'.  Upon right-clicking, an option to 'Relink Invoke Node' appeared and after selecting this, the extra input disappeared and the VI was no longer broken.
    Why does "Relink Invoke Node" appear?  How do I create a deployment with this issue?  Has anybody else experienced this?  Why is the TestStand deployment so buggy?  

    Hi Ching-Hwa,
    I have set up a test deployment here where I am deploying a workspace that contains a sequence file.  This sequence file has a LabVIEW Action Step calling a VI that opens a new Excel file and simply calls the Excel Set Cell Color and Border VI.  After deploying this, both the VI and my test sequence ran on the deployment machine without error.  Therefore, I do have some more questions to more accurately reproduce what you are seeing.
    First, what operating systems are you developing on and deploying to?  Also, what license do you have for TestStand on the machine you are deploying to?  If you have a development version, can you manually take the sequence file and VI to this machine and run it?  I know you now have LabVIEW 2010 SP1 on your development machine, but if you have the development version of TestStand as well, it would be interesting to see if you copy the files over if you still see this behavior.  Are you including the TestStand Engine in the deployment?
    Can you open a blank VI on the deployment machine and add the Excel Set Cell Color and Border VI?  It would also be interesting to see if this is not a product of the deployment, but rather an issue with something on the deployment machine itself.  What version of the Report Generation Toolkit do you have on each machine?  Also, what versions of Excel are you using on the development and deployment machine?  Again, it would be helpful for me to know exactly what versions you have installed on both the development and deployment machines so that I can reproduce this as accurately as possible.
    One last thing to try, too, would be to try deploying the VI by itself just to see if it also has the same behavior.  Do you have the Application Builder in LabVIEW?  If so, could you also try building an executable from the VI, create an installer, and deploy this to the deployment machine?  
    In regards to the "freezing" of code by removing the block diagrams, I do not believe this will be a proper work around in this case.  While this removes the block diagram from actually being deployed along with the VI and restricts users from editing the code on the deployment machine, if something is getting changed in the compiled code upon deployment, this will not stop this from happening.  This option is available more as a memory option to lower the size of the deployment as well as prohibit any users on the development machine from editing the block diagram themselves.    
    Thanks, Ching-Hwa!  I look forward to your response so that I can continue trying to reproduce this issue.  Have a great day! 
    Taylor G.
    Product Support Engineer
    National Instruments
    www.ni.com/support

  • Dynamic crystal report generation - issues with column headings

    Hi All,<br>
    I'm trying to generate a crystal report dynamically based on a "result set" data(Query: select REPORT_ID, REPORT_NAME, REPORT_DESC, RPT_FILE_NAME, LOCATION from IRS_REPORT_DETAILS). I'm able to generate the report run time, But the report is without columns heads. I would like to include the column headings as well. <br><br>
    I searched the API(RAS) and found that there is a 'add(java.lang.String fieldName, java.lang.String headingText) " method present in "ReportObjectController" using which we can add the headings.<br><br>
    ReportDefController reportDefController = clientDoc.getReportDefController();
    ReportObjectController reportObjectController = reportDefController.getReportObjectController();
    reportObjectController.add( "{Table.Field}", "FieldName" );
    <br><br>
    I'm facing problems in using this code. When trying to use this function for my fields(Ex: reportObjectController.add( "{ IRS_REPORT_DETAILS.REPORT_ID}", "Report ID" );) it is giving me the following error:<br><br>"com.crystaldecisions.sdk.occa.report.lib.ReportSDKGroupException: The field was not found.---- Error code:-2147213310 Error code name:fieldNotFound"<br><br>
    <b>The following is my dynamic crystal report generation code:</b><br><br>
    public ReportClientDocument execute(String repName, String query) {
              ReportClientDocument boReportClientDocument = null;
              try {
                   boReportClientDocument = new ReportClientDocument();
                   boReportClientDocument.newDocument();
                      // Add a table based on the given Resultset to the report.
                   dbConnResultSet mySampleResultSet = new dbConnResultSet();
                   //mySampleResultSet.execute(query);
                   boReportClientDocument.getDatabaseController().addDataSource(
                             mySampleResultSet.execute(query));
                   IReportSource test = boReportClientDocument.getReportSource();
                   // Access all the database fields
                   DatabaseController databaseController = boReportClientDocument
                             .getDatabaseController();
                   IDatabase database = databaseController.getDatabase();
                   Tables tables = database.getTables();
                   ITable table = (Table) tables.getTable(0);
                   int NO_OF_FIELDS = table.getDataFields().size();
                   int LEFT_POSITION = 200;
                   // Add all the database fields to the report document
                   for (int i = 0; i < NO_OF_FIELDS; i++) {
                        IField field = table.getDataFields().getField(i);
                        FieldObject fieldObject = new FieldObject();
                        fieldObject.setFieldValueType(field.getType());
                        fieldObject.setDataSource(field.getFormulaForm());
                        IReportObject rep = (IReportObject) fieldObject;
                        IObjectFormat objformat = rep.getFormat();
                        objformat.setEnableCanGrow(true);
                        objformat.setHorizontalAlignment(Alignment.from_int(1));
                        rep.setFormat(objformat);
                        rep.setLeft(LEFT_POSITION);
                        rep.setWidth(1000);
                        LEFT_POSITION = LEFT_POSITION + 1000 + 50;
                        ISection section = boReportClientDocument
                                  .getReportDefController().getReportDefinition()
                                  .getDetailArea().getSections().getSection(0);
                                   //***************** Data being added to the report here, But headings are not added*****************
                        boReportClientDocument.getReportDefController()
                                  .getReportObjectController().add(rep, section, i);
                   boReportClientDocument.createReport();
                   /*Some report saving code is present down*/
              } catch (ReportSDKException ex) {
                   ex.printStackTrace();
              } catch (Exception ex) {
                   ex.printStackTrace();
              return boReportClientDocument;
    <br><br>
    appreciate your help.

    IField field = table.getDataFields().getField(i);
    Here you are getting the first field in the array.  This may not be the field you want to add since we aren't sure how the arrays are ordered when retrieving fields from the report.  It is better to retrieve the fields with the findObjectByName method, thus ensuring you are retrieving the field you want to add to your heading.

  • In SSRS , after exporting report in excel,wrap text property for cell and freeze column for SSRS table header not working in Excel

    I am working no one SSRS my table headers are freeze cangrow property is false and my report is working perfect while rendering data on RDL and i want same report after exporting in Excel also , i want my table header to be freeze and wrap text property
    to work after exporting in my report in excel but its not working ,is there any solution ? any patch ? any other XML code for different rendering ? 

    Hi Amol,
    According to your description, you find the wrap text property and fix column is not working after exporting into Excel. Right?
    In Reporting Services, when exporting to excel file, it has limitation for textbox.
    Text boxes are rendered within one Excel cell. Font size, font face, decoration, and font style are the only formatting that is supported on individual text within an Excel cell.
    Excel adds a default padding of approximately 3.75 points to the left and right sides of cells. If a text box’s padding settings are less than 3.75 points and is just barely wide enough to accommodate the text, the text may wrap in Excel.
    In this scenario, it supposed to be wrap text unless you merge cells. If cells are merged, word-wrap does not work correctly. If any merged cells exist on a row where a text box is rendered with the
    AutoSize property, autosize will not work. For the Fix Data Property, it can't be working in Excel. These are features when exporting to Excel. We can't change it because it's by design.
    Reference:
    Exporting to Microsoft Excel (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

Maybe you are looking for

  • Track timing is lost when I change tempo

    even though I follow the diretions to a "T", by selecting all, and the locking smpte position. Then I analyse the beat with the bpm counter.  As soon as I enter that value into the transport bar tempo, regions move and the timing falls apart.  Why Wh

  • Database creation through command prompt

    Dear all, When i tried to create the database through comand prompt , till startu nomount stage it went fine after that when i issued create database command the following error occurred *ERROR at line 1: ORA-01092: ORACLE instance terminated. Discon

  • Poblem with getting Control on a line

    Hello all, I need to adjust the volume of a microphone. To do that I use this code : if (mixer.isLineSupported(Port.Info.MICROPHONE))                          lineOut = (Port) mixer.getLine(Port.Info.MICROPHONE);                          lineOut.open

  • Help with lost account info and obsolete email address in that old account

    Has any got an exact method to delete a messed up account with some forgotten i.d. and an old email address (which i got rid of). Do i simply start a new account and ignore the inaccessible account-- Spending half an hour goes around in hopeless loop

  • Sound Problems: Echo\Stutter\Cut-

    I recently upgraded my video card and ever since the sound on my Soundblaster Audigy Platinum for games and certain Internet sites (e.g., Pandora.com)has been bad. It is hard to describe but it is a combination of an echo/stuttering with bits of soun