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!"

Similar Messages

  • Troubles by changing the size of a bookmark header text Repot generation Toolkit

    Hello everyone
    I'm having  troubles getting the size of  a header text formatted into a different font size, I attach the code I'm using to get the work done.
    At the end I get all I want from the report generation toolkit but the text size in the header and footer . Does Anyone have a clue?
    Well the image is too small I'm getting an error when I try to post a bigger one. The thing is that the VI's used here to change the size are append report text.vi and format text.vi. The first one is used to insert text through bookmarks in the header and footer  (it works just gereat) and the second one is intended to change the size of the inserted text (it doesn't work at all) I've already used shift registers in the for loop but I get the same results. The last VI is dispose report.vi
    thanks in advance
    Attachments:
    Maquina Etdos Verifica Reporte.vi ‏94 KB

    Hello Julio9,
     sorry for the waiting I had to clean the block diagram up and take into account some data security issues before I could post the information you asked me to. I have to tell you that I already came out with a patch for the issue nonetheless it is not the correct way to solve it and I would appretiate if you or anyone else could help me to do it right.
    Here is what I changed:
    In my code at the Initialize state (within the state machine) there is the New Report.vi I opened it to get also the new report SubVI.vi opened, afterwards I selected the NI_Word.lvclass: new report subvi.vi and opened it in its code yoou can easly see the double numeric constant value for the size of the text inserted as default. I just changed it from 12 to 8 to correct the formatting. As the outcome all the text inserted through the bookmarks have the default size (8 pts). 
    I attached the new version of my code with all the documents you will need. Please follow these steps:
    1.-Open the project named Verifica Temperaturas 2010.lvproj
    2.-Run the main vi named Maquina Etdos verifica reporte 2.vi
    3.-Check the option Laboratorio de Refrigeradores:
    4.-Click OK
    5.-Complete the information as shown:
    (For Selecciona Machote pick the word document named Document.doc attached in the .zip file. For the Selecciona Archivo de temperaturas pick the Estacion1_21-02-2012.txt file also attached in the .zip file)
    6.-Press Siguiente
    After completing the steps you'll see how the document in created. As expected the size of the text in the header is 8 pts.
    Attachments:
    Verificacion_Camaras.zip ‏359 KB

  • Add multiple graphs in one chart(ex.scatter chart) using labview excel report generation toolkit

    How to add multiple graphs in one chart(ex.scatter chart) using labview excel report generation toolkit. Assume like my test data is like below:
    X-Axis
    Data1
    Data2
    1
    1
    2
    13
    2
    3
    14
    3
    4
    15
    5
    5
    16
    3
    6
    7
    7
    The above graph generated manually in excel. I want to generate the same using excel report generation toolkit. when I use Excel Insert Graph.vi where the input data is 2D array with numeric data but here labview converts the empty cells (eg.x -axis 1,data1- is empty) as zero and while plotting i am getting zero for empty cell values.
    Can anyone please help me on how to plot the graph without adding zero for empty cells?
    Thanks&Regards,
    Bharathi T
    TE
    X-Axis
    Data1
    Data2
    1
    1
    2
    13
    2
    3
    14
    3
    4
    15
    5
    5
    16
    3
    6
    7
    7

    Hi Bharathi,
    The Excel Insert graph function takes in only 2d arrays as inputs. Since arrays can only have numeric values, any table with a null string is read as 0. Now to get a plot like you mentioned, you could read the table and replace blank Strings as NaN. NaN values in an array when plotted do not appear in the excel sheet. For reference I have attached a sample vi to help you understand.
    Regards
    Vijetha Nuthakki,
    Applications Engineer
    NI Systems India
    Attachments:
    Excel_graph_multiplot.vi ‏21 KB

  • How to obtain the table index in word use LabVIEW Report Generation Toolkit for Microsoft Office

    I created a word templete and it had several tables. When I use the "Word Edit Cell" function in LabVIEW Report Generation Toolkit for Microsoft Office, the function need "table index", and I didn't find any function to get or set the table index in word document. How can I achieve my attention to write value to specified table cell using the "Word Edit Cell" function?
    Thanks for reply!
    YangAfreet

    Hi yangafreet
    You do not need to get the table index for the word edit cell.vi from anywhere. LabVIEW will automatically index all the tables in the document. See the attatched vi for an example.
    Rich
    Attachments:
    Table Edit.vi ‏23 KB

  • Problem with the number format in the graph axis with Report Generation Toolkit.

    Hi!
    I'm trying to use the Report Generation Toolkit to plot some graphs in Excel.
    My first problem is that I don't know how to configure the number format in the Excel Set Graph Font.vi so that my numbers are correctly displayed in the graph's axis. The only given option is general (0,0) but this is not enough for me, my numbers can get really small so I need engineering notation or fraccional format.
    Second: I also insert a table with the graph source data, but the numbers are not correctly displayed either: for example: 
    0,75 is shown as: 
    0,750000
    but 1,25  is shown as: 
    1!250!000
    My guess is I am making to much or wrong string to number conversions or Excel is getting it wrong but I can't find my way...
    Can someone help me with this?
    Thanks,
    Isabel

    Here is my VI, it's just a trial so it can look messy...
    Thanks,
    Isabel
    Message Edited by Isa_pm on 01-22-2007 01:12 PM
    Attachments:
    Create report.vi ‏96 KB

  • How can i create multiple page report using excel report generation toolkit from excel template?

    i am having code which create report in excel.but it prints only single page. if content is more than size of template than insted of tacking new page it prints only single page.Please help me out.
    Anyone has material for learning activeX in labview? Please mail me on [email protected] 
    PBP (CLAD)
    Labview 6.1 - 2014
    KUDOS ARE WELCOMED.
    If your problem get solved then mark as solution.

    Hi thanks for reply.....
    PBP (CLAD)
    Labview 6.1 - 2014
    KUDOS ARE WELCOMED.
    If your problem get solved then mark as solution.

  • How can I add cursor attribute values or change the size?

    I am using the SetCursorAttribute and would like to create and add additional cursor attribute values insteasd of the current 24 that are available. In particular, I would like to number each cursor in my list to each cursor on a graph so it can be identified easily by the user. Making each cursor a different value from the available 24 Attribute Value's is not desired since they are not easily identified due to the size of the cursor. (it's hard to discern a square box to a square box with an X).
    OR
    Another possiblity could be to allow for modification of the current size of the Attribute Values, is this possible?

    Hi Dennis,
    Unfortunately there is currently no way to change the size of a graph cursor, or to beyond the 24 point styles you mentioned. However, there are many other ways to differentiate cursors beyond point style. You can use differing crosshair styles and colors. Additionally, you can use "PlotBitmap(...)" to plot a bitmap image to the control using relative X and Y coordinates. With a little creative programming, you can use this function to simulate a graph cursor.
    regards,
    Eric Meyer
    Applications Engineer
    National Instruments

  • Report -how changes the size of a columm?

    How can I change the size of a columm in a report?
    I´d like to fix the size of one columm even if the data in there is small size.
    []s

    Use
    display: block; width: 100px;or whatever width you want.
    Please search the forum before starting a new thread:
    http://forums.oracle.com/forums/search.jspa?threadID=&q=column+AND+%28width+OR+size%29&objID=f137&dateRange=all&userID=&numResults=15&rankBy=10001

  • Data Point Symbol in Line Graph  - can you change the size?

    I would like to change the Data Point Symbols in line graphs - if not the actual symbol it would be wonderful to be able to change the size of the symbols provided.
    At present, if there is a lot of data in the graph, the symbols are too big and crowd one another.
    I know that one can reduce the line size but that doesn't change the symbol size.
    Help please.

    If I understand your question, this from the Pages online help may give the answer:
    To mark line, area, and scatter charts with data point symbols:
    Select the entire chart. You can also select the chart series (the line or area shape) that you want to mark with data point symbols.
    Click Inspector in the toolbar, and then click the Chart Inspector button.
    Click Series (except for scatter charts).
    Choose a symbol from the Data Point Symbol pop-up menu.
    Choose one of the following options from the Symbol Fill pop-up menu:
    To fill the symbol with the same color as its outline, choose Use Stroke Color.
    To fill the symbol with a solid color, choose Color Fill, click the Fill color well, and pick a color.
    To fill the symbol with a gradient, choose Gradient Fill and use the gradient controls to set the colors and change the angle of the gradient.
    To fill the symbol with an image, choose Image Fill and select the image you want. You can also resize the image by choosing an option from the pop-up menu above the Choose button.
    To fill the symbol with a tinted image, choose Tinted Image Fill and select the image you want. Click the color well to the right of the Choose button to change the tint color. You can also resize the image by choosing an option from the pop-up menu above the Choose button.

  • How can I change the size of table control in table maintenance re-gen?

    Hello Experts,
    I hv created a maintenance view and after generated table maintenance view for it.
    now it adjusts the size of table control in table maintenance generation.
    I want to change the size (width) of table control and again re-generate the table maintenance.
    But when re-generation occurs, table control size is set to initial.
    why it is happening? and wt to do to solve this issue? any user exit?
    I need the changed size of table control even if its re-generated.
    Regards,
    R.Hanks

    Hello Ronny,
    Goto SM30, Enter your table name for which you have maintained your table maintainence generator .
    When the maintainence screen appears for your table name , Goto System->Status->Screen Program name.
    Copy that program name from there.
    Open that module program through SE80,this is the program name of your SM30 screen which appears when we enter our table name in SM30 transaction.
    In SE80,click the layout of the module program name you have entered there.
    Its layout will display you the table control(of SM30) present to enter your your enteries.
    In the change mode you can change its size , savee it and activate that program.
    Now goto to SM30 again and enter your table name, it will show you the changed size of the table control used to take the enteries.
    Note:This changed size is only for your table name and it will remain of its previous size for other table enteries.
    Hope it helps you.
    Thanks Mansi

  • Help in changing the size of a field length.

    hello,
    i need to change the size of a field in the table PAYR for the field CHECT.
    Present size is 13. I want to make it as 20. Is there any OSS notes for this. If yes, Please let me know how to implement that.
    Thanks
    Senthil

    I hope there will not be any note for this.
    Please follow the procedure.
    Go to the domain and Check the domain where it is used and meke sure that it will effect all the tables where it is embeded.
    If you want to change this leangth you have to take the OSS key for that hope you have service.sap login id right.
    There you have to  give the details of that domain object and go for the generate key.
    The domain details you have to provide while generating the key .
    these details we will call it as object directry enties.
    Take all those things and give while you are genereating the key.
    Hope you will do it.
    Regards,
    Madan.

  • How Can I Change the Size of My Home Page So That It Fills the Screen?

    I have a PowerBook G4. Up until a couple of weeks ago when I opened Safari the home page filled the screen. Something has happened and now it fills only a portion of the screen. I can move the page around, change the size slightly by using the green button next to the minimizing button, but nothing I do will enlarge it to fill the screen. I have gone to View and Preferences, but find nothing to resolve this. Please help!

    You're welcome Maureen. Glad I could help.
    Thanks for the and Aloha from Big Island.

  • How do I change the size of a windows partition on my MacBook?

    How do I change the size of a windows partition on my MacBook?

    CampTune $19 from Paragon-Software is your best bet.
    http://www.paragon-software.com/mac/

  • What is happening when I change the size of the image in the program sequence window?

    I noticed that I can change the image size of my exported file. I imported a 720 x 480 DV file into CS5.5. I went to my program sequence window and changed the settings to show the smallest image in that window. I then clicked on the image and used the handles that appear to make that small image large enough to nearly fill the screen. When I exported my final file and played the resulting WMV, the image on my screen was nearly twice as large as it would have been if I had not previously altered the image size in the program sequence window. I had to do this alteration for each clip in my timeline, or the unaltered ones would stay at the smaller size. The quality did not seem to be significantly impaired. I learned about this on a youtube video. The person who did the video claimed that this was a simple and quick way to upgrade standard video to HD. Of course this is not true. He was only changing the size of the resulting video. Does anyone know what is really happing when you do this procedure and why it changes the size of the exported  video?

    The size (resolution) of the exported video is not affected by anything you do while editing.  It is dependant solely on the resolution set in the export settings.
    Ideally you want to edit in an sequence that matches your media\, which will be the same size or larger than the required export.  In other words, the same or smaller is OK.  Making things bigger in post is not the best option.  If you need things bigger, shoot them bigger.

  • Changing the size of a JComboBox

    Greetings,
    I am trying to build a mechanism to perform zooming on a JPanel with an arbitrary collection of components (including nested JPanels). I've tried a number of things with little success. The following is my most promising contraption. It can zoom labels, textfields, checkboxes, and buttons. However, for some reason, the combo box refuses to accept a changes to its size. I'm not sure why this is the case. Its font changes size appropriately.
    Anyway, I'm running in JDK 1.4, and the following program lays out a palette of components. To change the size of the components, hit F1 to zoom in, and F2 to zoom out.
    import java.awt.Component;
    import java.awt.Container;
    import java.awt.Dimension;
    import java.awt.Font;
    import java.awt.KeyEventPostProcessor;
    import java.awt.KeyboardFocusManager;
    import java.awt.event.KeyEvent;
    import java.awt.geom.AffineTransform;
    import javax.swing.JButton;
    import javax.swing.JCheckBox;
    import javax.swing.JComboBox;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JTextField;
    public class Demo extends JPanel
        public class Zoomer
            private double m_zoom = 1;
            private JPanel m_panel;
            public Zoomer(JPanel panel)
                m_panel = panel;
            private AffineTransform getTransform()
                return AffineTransform.getScaleInstance(m_zoom, m_zoom);
            private Font transform(Font font)
                return font.deriveFont(getTransform());
            private Dimension transform(Dimension dimension)
                Dimension retval = new Dimension();
                retval.setSize(dimension.getWidth() * m_zoom, dimension.getHeight() * m_zoom);
                return retval;
            private void performZoom(Container container)
                Component[] components = container.getComponents();
                for(int i = 0; i < components.length; i++)
                    Component component = (Component)components;
    component.setFont(transform(component.getFont()));
    component.setSize(transform(component.getSize()));
    for(int i = 0; i < components.length; i++)
    Component component = components[i];
    if(component instanceof Container)
    performZoom((Container)component);
    public double getZoom()
    return m_zoom;
    public void setZoom(double zoom)
    if(zoom > 8.0 || zoom < 0.125) return;
    m_zoom = zoom;
    performZoom(m_panel);
    public void zoom(double factor)
    setZoom(getZoom() * factor);
    public Demo()
    JPanel panel = new JPanel();
    panel.add(buildPanel());
    panel.add(buildPanel());
    final Zoomer zoomer = new Zoomer(panel);
    add(panel);
    KeyboardFocusManager.getCurrentKeyboardFocusManager().addKeyEventPostProcessor(new KeyEventPostProcessor()
    public boolean postProcessKeyEvent(KeyEvent e)
    if(e.getID() != KeyEvent.KEY_PRESSED) return false;
    if(e.getKeyCode() == KeyEvent.VK_F1)
    zoomer.zoom(1.2);
    if(e.getKeyCode() == KeyEvent.VK_F2)
    zoomer.zoom(1/1.2);
    return false;
    private JPanel buildPanel()
    JPanel panel = new JPanel();
    panel.add(new JLabel("label: "));
    panel.add(new JTextField("Hello World"));
    panel.add(new JCheckBox("checkbox"));
    panel.add(new JComboBox(new String[] { "Bread", "Milk", "Butter" }));
    panel.add(new JButton("Hit Me!"));
    return panel;
    * Create the GUI and show it. For thread safety, this method should be
    * invoked from the event-dispatching thread.
    private static void createAndShowGUI()
    // Create and set up the window.
    JFrame frame = new JFrame("Demo");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    // Create and set up the content pane.
    Demo newContentPane = new Demo();
    newContentPane.setOpaque(true); // content panes must be opaque
    frame.setContentPane(newContentPane);
    // Display the window.
    frame.pack();
    frame.setVisible(true);
    public static void main(String[] args)
    // Schedule a job for the event-dispatching thread:
    // creating and showing this application's GUI.
    javax.swing.SwingUtilities.invokeLater(new Runnable()
    public void run()
    createAndShowGUI();

    component.setSize(transform(component.getSize()));First of all the above line is not needed. The LayoutManager will determine the bounds (size and location) of each component in the container based on the rules of the LayoutManager. The Flow Layout is the default layout manager for a panel and it simply uses the preferred size of the component as the size of the component.
    So what happens is that when you change the font of the component you are changing the preferred size of the component.
    So why doesn't the combo box work? Well I took a look at the preferred size calculation of the combo box (from the BasicComboBoxUI) and it actually caches the preferred size. The combo box uses a renderer, so the value is cached for performance one would assume. The method does recalculate the size when certain properties change. Note the isDisplaySizeDirty flag used in the code below:
             else if (propertyName.equals("prototypeDisplayValue")) {
                    isMinimumSizeDirty = true;
                    isDisplaySizeDirty = true;
                    comboBox.revalidate();
             else if (propertyName.equals("renderer")) {
                    isMinimumSizeDirty = true;
                    isDisplaySizeDirty = true;
                    comboBox.revalidate();
                }It also handles a Font property change as well:
                else if ( propertyName.equals( "font" ) ) {
                    listBox.setFont( comboBox.getFont() );
                    if ( editor != null ) {
                        editor.setFont( comboBox.getFont() );
                    isMinimumSizeDirty = true;
                    comboBox.validate();
                }but notice that the isDisplaySizeDirty flag is missing. This would seem to be a bug (but I don't know why two flags are required).
    Anyway, the following change to your code seems to work:
    // component.setSize(transform(component.getSize()));
    if (component instanceof JComponent)
         ((JComponent)component).updateUI();
    }

Maybe you are looking for

  • Can not add mp3 to library

    I just downloaded an mp3 song from Marié Digby's free area, and I couldn't for the life of me get it to import or add to my itunes library. I have played the track via VLC and it doesn't seem to have anything wrong with it. I added my entire Download

  • Temp space problem

    HI all, I receive an error while executing a procedure. ORA-01652: unable to extend temp segment by 128 in tablespace TEMP can any one please exlain what is the problem. thanks in advance baskar k

  • Mail passwords are not saved to the Keychain

    This problem seems to relate to the long standing Mail Password issue that has been frustrating many Tiger (and Panther) users. Firstly: Mail keeps asking for account passwords in an unpredictable way. Even if I "save these to the keychain" via 'allw

  • SNMP trap on IP sla

    Hi all, Does anyone know that, how can SNMP trap the information(such as jitter, number of packet loss, process number of RTR) from a router enabled IP SLA/RTR?

  • Reader X can not open second PDF

    Hi there Have this problem on a PC running XP Pro with SP3. Reader X can only open one Document. I have uninstalled the Reader and loaded it again but this problem still exist. any suggestions? thx