How to print a componentworks graph in Labview?

Can anyone give me an example of how to print a CWGraph3D object in labview please?

Try this one out. I just modified the example found here
http://venus.ni.com/stage/we/niepd_web_display.DISPLAY_EPD4?p_guid=C4380ADE4A6960DBE034080020E74861&p_node=%20DZ52085&p_submitted=N&p_rank=&p_answer=&p_source=Internal
Attachments:
Print_ActiveX.vi ‏17 KB

Similar Messages

  • How to print a 3D Graph with Labview 5.1?

    I would like know if i can print a 3D Graph with Labview 5.1.

    From NI knowledgebase: "LabVIEW 5.1 includes a 3D Graph control in the Full and Professional Development Systems. Visit the LabVIEW Product page for more information on ordering or upgrading to LabVIEW 5.1. The LabVIEW 5.1 Base package includes a demo version of the 3D Graph control."
    Hope this helps

  • How to print a pdf file from Labview

    Hi,
    Does anyone know how to print a pdf file form Labview. I need to be able to point on the pdf file and to print it.
    Activex examples doesnt seem to be working it always displays an error, on every PC that I tryed to run it.
    {"code 3005" ,,,"Automation Open: Object specified is not creatable in Display PDF in Dialog.vi"}.
    Thank you for your help.
    Regards,
    Jenia.

    You can use the "System Exec.vi". The command line should have the following structure:
    "<Path to AcroRd32.exe>" /t "<Path to document>" "Printer name"
    For example"
    "C:\Program Files\Adobe\Acrobat 5.0\Reader\AcroRd32.exe" /t "C:\myreport.pdf" "Tektronix Phaser 300i"
    Regards;
    Enrique
    www.vartortech.com

  • How to copy the XY graph on labview front panel and insert into Excel using labview

    Hi all,
    The XY graph display on LV front panel after test. How can I copy this XY graph and insert into excel file?
    Thank you very much for your help.
    Khanh

    KPRO wrote:
    Hi,
    I refer to insert it into excel since report is in excel format, but if it's too hard to do so I can save it in another format.
    Either way, will labview support this? Anyway, thank you very much for your quick reply.
    Khanh
    You are already using the Report Generation Toolkit?  There is the "Append Control Image to Report.vi" that would make this easy.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How to Print the Excel Sheet From Labview??

    Hii Every body,,
     Actually i am logging my data to Excel Template..... Now in my front panel i will select that excel file and give  print... Now automatically the datas in the excel sheet have to get printed with out opening the excel sheel... how to do?? can any 1 suggest me??

    I think you can get many/most of your answers here in the Excel Board thread in Breakpoint forum.
    - Partha
    LabVIEW - Wires that catch bugs!

  • How can I save a graph in labview ?

    Hi
    1-I want to save a graph when I press save botton in front panel!
      Do  get image and export image method have this feature or not?
    2-How can i autozoom graph when it is stopped?
    tnx 
    Solved!
    Go to Solution.

    muks wrote:
    You can use a save button and put the save inside a case.I have already shown you how to save as image then.
     yessss.thnx  a lot  

  • How to print a PDF document from Labview?

    I am looking to create a paper copy of a PDF document.  Note: I do NOT want to create a PDF document.
    In other words I want to print a PDF document from Lab View or Visual Basic or C#.  The application is used in a production environment so I want a clean solution.
    The requirements are:
    1) Be able to specify the output printer.
    2) Set the quantity to print.
    3) Specify the file to print.
    4) Function returns when printing is complete
    5) Silent operation, that means no popup boxes.
    Any help is appreciated.

    http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/prnmngr.mspx?mfr=true
    http://forums.ni.com/ni/board/message?board.id=170&message.id=183895&requireLogin=False
    you might be able to use system exec to print files.

  • Printing a ALV Graph outut

    hi all,
    can anyone let me know how to print alv line graph .
    wat i want is print option in zcopy of pgm GFW_PROG_PRES_SHOW_MULT.
    regards
    Avik Nayak

    On Thu, 11 May 2000 17:39:54 GMT, Steve Drake
    wrote:
    >Hello everyone. I have LabView printing an XY graph but it always
    >wants to print in Portrait mode. I set the defaults of the printer to
    >LandScape mode and still go a Portrait printout. Is there anyway
    >to force LabView to print in LandScape mode? This will help the graph
    >be more readable.
    >
    Hi, well after some playing around and touching things that I though
    shouldn't make a difference I got it to print in Landscape mode. On
    the VI's front panel menu File-Print I switched that to LandScape mode
    and what do you know it printed the graph out in LandScape mode.
    Now I want to manipulate the fonts on the graph. I have messed with
    the cursors and I can put x axis lines
    on the chart with a time value
    but the text I'm putting up is small so I need a bigger font and I
    need to get the text out of the graph itself.
    Is there anyway to print the cursor titles vertical instead of
    horizontal to the x axis. Thought I would ask anyway.
    Thanks to anyone who already knew how to do this.
    Regards,
    Steve Drake

  • How to print a graph in LV7.0

    I have a waveform graph,how to print it?
    thanks a lot!

    there are a couple of ways to do this ... if you want the entire panel you can do it manually by ctrl-p (windows at least)... you can also use the VI Server method get image along with the Open Vi Reference.vi and Print VI to printer method to print the whole panel programatically...
    you can also use Append Control Image to report.VI in conjunction with the print report.vi to print your control...
    Dan

  • How to Send Multiple Plot XY Graph from LabVIEW to Microsoft Excel

    The link below describes exactly what I would like to do, however the link to the solution/work around does not work.
    Has anyone got an alternative solution?
    http://digital.ni.com/public.nsf/allkb/CFD30D5E9C01AB5386256CFB0082AF3E

    Please check the link again as it seems to be working fine now.
    How to Send Multiple Plot XY Graphs from LabVIEW to Microsoft Excel:
    http://digital.ni.com/public.nsf/allkb/CFD30D5E9C01AB5386256CFB0082AF3E
    The standard Excel Insert Graph.vi cannot insert multiple XY Graphs to Microsoft Excel, so you will need to use the Report Generation Toolkit for Microsoft Office.  You will find a link to an example program at the bottom of the page.  I have also attached it below.
    Attachments:
    example.zip ‏35 KB

  • How do I print the displayed graph? I am using Measurement Studio for Visual Basic.

    a

    It is true that calling the PrintForm method is the easiest way to print your graph. However, if you wish to print only the graph, and not the rest of your form, there is a way to do this also.
    The CWGraph control, and some other CW controls, supports the ControlImage method which returns a Windows metafile containing an image of the graph. You can then send this image to your printer using environment-specific printer commands.
    In Visual Basic, use the Printer.PaintPicture command to send the metafile, and top and left coordinates to the printer. Then call Printer.EndDoc to flush the job to the printer:
    Printer.PaintPicture CWGraph1.ControlImage, 0, 0
    Printer.EndDoc
    In the above code, the second and third parameters specify the position of the image o
    n the page; you can also enlarge or shrink the image by specifying width and height. You may want to take a look at the Visual Basic PaintPicture function help for more details on this function.
    J.R. Allen

  • How to print a plot with two colors Without using two plots

    Hello everybody,
    Escuse my English (poor Frenchies....)
    I'm working with VB6 and I will need to print a plot with two colors (Some values greater than a trigger for example, ...)
    I was looking for some help to discover if that thing is possible without using another plot, this is what I'm already doing, and it do not satisfy me (and my boss....)..
    Thank for your Help.
    Julien

    Hi Julien,
    I have found on the different link to make that you want.
    This first link is on National Instrument site, the first is general, and second provided information about : How Can I Programmatically Print Out a ComponentWorks Graph Object?.
    http://digital.ni.com/public.nsf/websearch/81D87CB2A5BF6C11862569E4008240FE?OpenDocument
    http://digital.ni.com/public.nsf/websearch/dc3430165bc916c586256317006f8cc9
    Links below are on the web, and explain how do you can print a graph on Visual Basic. (the first is French link  )
    http://khany.developpez.com/tutoriel/mschart/
    http://www.programmersheaven.com/zone1/cat378/18546.htm
    Regards,
    Message Edité par Christophe S. le 12-27-2005 01:51 PM
    Christophe S.
    FSE East of France І Certified LabVIEW Associate Developer І National Instruments France

  • How to print an html report?

    In a Test UUT's execution, the process model generates and saves a html report. How can add steps to the process model to print the report each time? I'm thinking maybe somehow using an ActiveX call to open IE and then print (1 step or 2?), but I'm a newbie to ActiveX and don't know what server/class/method to use.
    ==============================================
    David Kaufman
    LabVIEW Certified Developer
    ==============================================

    Using Microsoft Word could be a good solution if you actually have it installed in the computer. In some cases, you may not want to have that application installed in the production floor for any reason (licenses, memory space...).
    I am attaching an example that shows how to print the report automatically after testing a UUT using ActiveX to communicate with Internet Explorer. It is more likely that any machine would have this application installed since it occupies a lot less memory space and it ships with any Windows OS. Furthermore, there are just 3 steps that do the trick!
    The attached zip file contains a modified sequential model. The entry points ("Single Step" and “Test UUTs”) have one new step that calls the "Print Report" sequence (also added to the sequential model). This new sequence has ActiveX steps that call two methods of the “Internet Explorer (IwebBrowser2)”object class exported by the “Microsoft Internet Controls” automation server. These two methods are:
    1) Navigate. Allows you to select the html file to load.
    2) ExecWB with the first parameter (cmdid) set to "OLECMDID_PRINT" (prints the loaded file) and the second parameter (cmdexecopt) set to OLECMDEXECOPT_DONTPROMPTUSER" (don’t show the print dialog).
    (For more information about these methods, please refer to the MSDN Library)
    The example will print the report after each UUT is tested. The "Print Report" step is set to run just if the Report Generation is not disabled (see its preconditions).
    This is what you need to do to run the example:
    1) Copy the contents of the zip file to: \Components\User\Models\TestStandModels
    2) Make sure that the “User Components Directoty” is checked in the Search Directories.
    3) Run any sequence using Single Pass or Test UUTs.
    WARNING: There is a known issue when using the printing capabilities of the Internet Explorer. This is what is explained in the MSDN library:
    "... Internet Explorer prints in the background. This means that the print processing is actually completed asynchronously in a separate thread.Upon return from ExecWB, the print processing may continue for several seconds or even up to a minute or two based on various factors such as the size of the content and how busy your system is currently. The problem is that if you start a print job and then destroy the WebBrowser or close your application before the background thread finishes processing, the thread will abandon its work and the page may not be completely printed..."
    There are 2 approaches to work around this problem:
    1) Use a delay before destroying the WebBrowser reference (which is done in the cleanup step group of the "Print Report" sequence in the example). This is the approached used in the example. The third step in the “Print Report” sequence is a Wait step. The step is currently set to wait for 3 seconds which has worked for me for almost any report sizes.
    2)In Internet Explorer 5 you can work around this problem by sinking the OnAfterPrint event. If you have started a print job, then you should wait to release the WebBrowser until after this event has been received. If you choose this approach you could use the ActiveX events capabilities of Labview or Visual Basic to create a small program detecting this event. There's a simple sample code provided in the MSDN library for VB.
    Enjoy!
    Attachments:
    SequentialModel.seq ‏169 KB

  • Printing a Line Graph in SAP

    Hi Experts,
    Can anybody tell me how to print line graph in SAP. I do not want use ALV print function for graph generation.
    Here I am attaching you sample program for your reference. Name of the program is GFW_PROG_PRES_SHOW_MULT.
    Thanks in Advance.
    Regards,
    Shaik.

    Hi Meera,
    you can use FM "GRAPH_MATRIX_3D' to print graphs. See if this works out good for your.
    Simple code to use this would be as follows.
    DATA: BEGIN OF itab_data OCCURS 0,
    dataname(15),
    quantity1 TYPE i,
    quantity2 TYPE i,
    quantity3 TYPE i,
    END OF itab_data,
    BEGIN OF itab_options OCCURS 0,
    option(20),
    END OF itab_options.
    itab_data-dataname = 'Electricity'.
    itab_data-quantity1 = 55.
    itab_data-quantity2 = 62.
    itab_data-quantity3 = 59.
    APPEND itab_data.
    itab_data-dataname = 'Gas'.
    itab_data-quantity1 = 35.
    itab_data-quantity2 = 52.
    itab_data-quantity3 = 44.
    APPEND itab_data.
    itab_data-dataname = 'Water'.
    itab_data-quantity1 = 18.
    itab_data-quantity2 = 22.
    itab_data-quantity3 = 19.
    APPEND itab_data.
    CALL FUNCTION 'GRAPH_MATRIX_3D'
    EXPORTING
    col1 = 'Jan'
    col2 = 'Feb'
    col3 = 'Mar'
    titl = 'Gráfico Teste - Carlos'
    TABLES
    data = itab_data
    opts = itab_options
    EXCEPTIONS
    OTHERS = 1.
    Hope this helps.
    Thanks
    Sumit

  • Printing a waveform graph

    Hi does anyone knows how to print just the wave form graph wit some sort of
    printVI?
    Thanks in advance,
    Best Regards,
    Thijs Boeree

    You can use the print.vi located in the Application Control Pallete. If you want JUST the graph then you create a VI with just the graph on its' front panel then put the print VI on the diagram with the current VI's name into it. Make sure you set entire panel to (F) this will limit the printing to only the visible area of the VI, preferably the graph...
    Michael Aivaliotis
    VI Shots LLC
    Attachments:
    Application_Control_Pallette.bmp ‏50 KB

Maybe you are looking for