Printing Graph

Hi,
I'm using XML Publisher desktop version 5.5 Build 23. Oracle XML Publisher 5.6.3.
The Oracle Application Instance I used is in version 12.0.4.
I'm trying to display a Graph at the bottom of the tabular data.
I could the see the Graph output if I preview from the my local desktop.
Now if I run in Oracle Apps and use PDF as the output, the Graph is not displayed.
What I could see is only the tabular data. The area where the Graph is supposed to be printed is just blank.
I tried to use EXCEL as the output and now the concurrent program ends with a WARNING.
The error is:
------------- 1) PUBLISH -------------
Beginning post-processing of request 4585265 on node NESSR12 at 31-OCT-2008 16:37:47.
Post-processing of request 4585265 failed at 31-OCT-2008 16:37:47 with the error message:
One or more post-processing actions failed. Consult the OPP service log for details.
What I see from the log is:
[10/31/08 4:37:47 PM] [OPPServiceThread1] Post-processing request 4585265.
[10/31/08 4:37:47 PM] [1302949:RT4585265] Executing post-processing actions for request 4585265.
[10/31/08 4:37:47 PM] [1302949:RT4585265] Starting XML Publisher post-processing action.
[10/31/08 4:37:47 PM] [1302949:RT4585265]
Template code: XXGREGDT2
Template app: FND
Language: en
Territory: 00
Output type: EXCEL
[10/31/08 4:37:47 PM] [UNEXPECTED] [1302949:RT4585265] java.lang.StringIndexOutOfBoundsException: String index out of range: -1
     at java.lang.String.charAt(String.java:558)
     at oracle.apps.xdo.common.encoding.Base64Util.decode(Base64Util.java:54)
     at oracle.apps.xdo.template.fo.elements.FOInstreamForeignObject.end(FOInstreamForeignObject.java:71)
     at oracle.apps.xdo.template.fo.FOHandler.endElement(FOHandler.java:439)
     at oracle.apps.xdo.common.xml.XSLTMerger.endElement(XSLTMerger.java:69)
     at oracle.xml.parser.v2.XMLContentHandler.endElement(XMLContentHandler.java:210)
     at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1287)
     at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:328)
     at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:295)
     at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:201)
     at oracle.apps.xdo.template.fo.FOProcessingEngine.process(FOProcessingEngine.java:307)
     at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:1045)
     at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5916)
     at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3452)
     at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3541)
     at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:244)
     at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:172)
[10/31/08 4:37:47 PM] [1302949:RT4585265] Completed post-processing actions for request 4585265.
Anybody has any idea on this?
Has anybody tried printing graphs in R12?
TIA,
Greg
Edited by: user6147889 on Nov 3, 2008 7:59 PM

Hi Greg,
I am having the same isssue. In Pdf output, it is prinitng only table data with no graphs. But when I run in excel it is giving out the same error that you described. Can you let me know if you have the solution?
Thanks,
Srinath

Similar Messages

  • Printing graph plot only no background graph

    Hi
    I can able to print total graph ok.
    But i want to print graph plot only no backgroung.
    how can i do it.
    Regards,
    hari

    Check the attached example (created in LabVIEW 9.0f3).
    I am not allergic to Kudos, in fact I love Kudos.
     Make your LabVIEW experience more CONVENIENT.
    Attachments:
    Example.vi ‏13 KB

  • Printing graph and other text in the same page

    Hi,
    I am aware that for providing graphs in ABAP report we have a FM which is called via a pushbutton in the output screen generally.
    Is there any way I can do away with the pushbutton and print the graph and other text in the same page at one go ? I think Smartforms will not allow graph printing.......any other method to achive this ?
    The user wants to print the graph and other text in the same page.
    Regards,
    Sandip.

    Hi ! no it is not related to smartforms
    search for custom container on google you idea about custom container.
    following code is for displaying alv on selection screen which is created using custom container
    and docking container.
    I hope you will get some idea about how to use custom container for your problem
    DATA DECLARATIONS
    DATA: CONT_DOCKING TYPE REF TO CL_GUI_DOCKING_CONTAINER,
    GRID TYPE REF TO CL_GUI_ALV_GRID,
    CUST_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
    IT_FIELDCAT TYPE LVC_T_FCAT,
    GS_LAYOUT TYPE LVC_S_LAYO.
    *ITAB TYPE TABLE OF SBOOK.
    *& SELECTION SCREEN PARAMETERS
    *PARAMETERS:P_TEST TYPE I .
    *& AT SELECTION SCREEN OUTPUT
    AT SELECTION-SCREEN OUTPUT.
    IF EBELN[] IS NOT INITIAL.
    CREATE OBJECT CONT_DOCKING
    EXPORTING
    REPID = SY-REPID
    DYNNR = SY-DYNNR
    SIDE = CONT_DOCKING->DOCK_AT_BOTTOM
    EXTENSION = 100.
    IF CUST_CONTAINER IS INITIAL.
    *----Create the alv with docking container
    PERFORM CREATE_AND_INIT_ALV .
    ENDIF.
    ENDIF.
    *& Form BUILD_FIELDCAT
    FORM BUILD_FIELDCAT .
    DATA WA_FIELDCAT TYPE LVC_S_FCAT.
    WA_FIELDCAT-FIELDNAME = 'EBELN'.
    WA_FIELDCAT-REPTEXT = 'Airline Code'.
    APPEND WA_FIELDCAT TO IT_FIELDCAT.
    WA_FIELDCAT-FIELDNAME = 'EBELP'.
    WA_FIELDCAT-REPTEXT = 'Flight Connection Number'.
    APPEND WA_FIELDCAT TO IT_FIELDCAT.
    *WA_FIELDCAT-FIELDNAME = 'WUNIT'.
    *WA_FIELDCAT-REPTEXT = 'Weight Unit'.
    *APPEND WA_FIELDCAT TO IT_FIELDCAT.
    *LOOP AT IT_FIELDCAT INTO WA_FIELDCAT.
    *IF WA_FIELDCAT-FIELDNAME EQ 'WUNIT'.
    *WA_FIELDCAT-EDIT = 'X'.
    *WA_FIELDCAT-DRDN_HNDL = '1'.
    *WA_FIELDCAT-CHECKTABLE = '!'.
    *MODIFY IT_FIELDCAT FROM WA_FIELDCAT.
    *ENDIF.
    *ENDLOOP.
    ENDFORM. "build_fieldcat
    *& Form CREATE_AND_INIT_ALV
    FORM CREATE_AND_INIT_ALV .
    CREATE OBJECT GRID
    EXPORTING I_PARENT = CONT_DOCKING.
    *--perform build field catalog for alv display
    PERFORM BUILD_FIELDCAT .
    *--fill the drop down list values
    PERFORM fill_dropdown_table .
    *----fill final output table
    SELECT * FROM EKPO
    INTO CORRESPONDING FIELDS OF TABLE ITAB WHERE EBELN IN EBELN.
    *UP TO 10 ROWS.
    *---display alv
    CALL METHOD GRID->SET_TABLE_FOR_FIRST_DISPLAY
    CHANGING
    IT_FIELDCATALOG = IT_FIELDCAT
    IT_OUTTAB = ITAB[].
    *---Set editable cells to ready for input initially
    CALL METHOD GRID->SET_READY_FOR_INPUT
    EXPORTING
    I_READY_FOR_INPUT = 1.
    ENDFORM. "create_and_init_alv
    *& Form set_drdn_table
    FORM fill_dropdown_table.
    DATA: LT_DROPDOWN TYPE LVC_T_DROP,
    LS_DROPDOWN TYPE LVC_S_DROP.
    LS_DROPDOWN-HANDLE = '1'.
    LS_DROPDOWN-VALUE = 'KG'.
    APPEND LS_DROPDOWN TO LT_DROPDOWN.
    LS_DROPDOWN-HANDLE = '1'.
    LS_DROPDOWN-VALUE = 'G'.
    APPEND LS_DROPDOWN TO LT_DROPDOWN.
    LS_DROPDOWN-HANDLE = '1'.
    LS_DROPDOWN-VALUE = 'B'.
    APPEND LS_DROPDOWN TO LT_DROPDOWN.
    LS_DROPDOWN-HANDLE = '1'.
    LS_DROPDOWN-VALUE = 'T'.
    APPEND LS_DROPDOWN TO LT_DROPDOWN.
    CALL METHOD GRID->SET_DROP_DOWN_TABLE
    EXPORTING
    IT_DROP_DOWN = LT_DROPDOWN.
    ENDFORM. "set_drdn_table

  • Problem with printing graph larger than screen size in labview6 (plots are shopped).

    I have attached with my message the report I try to print. It is a Labview 6 vi.
    I had no problem with Labview 5. But with Labview 6, the plots are shopped (all the rest of the report is correct). What is printed is not what I see.
    The graph is intentionnaly built very large, then rescale to fit page, in order to improve the print quality of the plots. I repeat it, it worked fine with Labview 5.
    Thanks if you can help.
    Lionel.
    Attachments:
    Print_of_large_scale_graph.vi ‏284 KB

    Hi Lionel,
    I experienced a similar problem days ago: re-compiling a vi from LV 5.1 to LV 6.0.2 its front panel could not be printed anymore; no error, just a blank sheet.( The mass compile procedure did not reported any error).
    The only way to get out from this headache was to re-build the vi in LV 6.0.2, I simply selected all its diagram and copied it in a new vi, saved it and I got print-outs!
    Try it.
    Good luck,
    Alberto

  • Does LabVIEW have facilities for printing graphs for reports?

    Hello,
    I was wondering if LabVIEW has facilities to print nicely formatted hardcopy printouts of graphs or chart data on a vi? Thanks.

    Check "Report Generation VIs and Functions" in LabVIEW help.

  • Printing Graph in container

    Hi ABAP Gurus..
    I have a report which has two containers. The first one has an ALV and the second has a graph. The ALV has a PF status with a print button. Id like to add a new button which says 'PRINT' and on click, it has to print the contents of both the containers (the contents of the alv and the graph). How can i do that. I am more concerned abt printing the graph. Pls help!!!

    Hi ABAP Gurus..
    I have a report which has two containers. The first one has an ALV and the second has a graph. The ALV has a PF status with a print button. Id like to add a new button which says 'PRINT' and on click, it has to print the contents of both the containers (the contents of the alv and the graph). How can i do that. I am more concerned abt printing the graph. Pls help!!!

  • Print graph as image

    Hi all,
    Is it possible to print chart as an image. If yes then appreciate a sample
    code.
    I tried but not succeed with below code. Here myImg represents my graph.
    var printJob:FlexPrintJob = new FlexPrintJob(); if (printJob.start()) { var chartPrintViewObj:chartPrintView = new chartPrintView(); Application.application.addChild(chartPrintViewObj); var jpgSource:BitmapData = new BitmapData (myImg.width, myImg.height); var myImage:Bitmap = new Bitmap(jpgSource); //Set the print view properties.myPrintContainer chartPrintViewObj.width=printJob.pageWidth; chartPrintViewObj.height=printJob.pageHeight; chartPrintViewObj.printChartContainer.addChild(myImage); printJob.addObject(chartPrintViewObj); Application.application.removeChild(chartPrintViewObj);
    Thanks and warm regards,
    Varun

    Hi,
    your question is not clear. I don't understand what you want.
    Print - is a function to call printing... it's call print window in browser and user select printer and so on. If you want to have a quality like image, you can set property printAsBitmap for FlexPrintJob. And it's all.
    If you want to get a picture - it's not printing. It's a Snapshot!
    http://livedocs.adobe.com/flex/3/langref/mx/graphics/ImageSnapshot.html
    But if you want to save it as a Jpeg on client from web application... It's not an easy way, but it's possible in FF and in FB 10 and more

  • One clik to print graph proxy

    Hi
    I want to print a chart after click button. After I click this button then is creating a chart in a new box and I see printer parameters to print this but the legend on the chart is on the right not bellow like is definied. In normal view I see a legend bellow chart, only when print then it is on the right.
    Procedure after click button "Print" (Procedure for button "View" is the same except method ~print)
          IF GU_dialogboxPrint IS INITIAL.
            create object GU_dialogboxPrint
              exporting
                repid    = REPID
                dynnr    = DYNNR
                lifetime = 2
                caption  = ''
                top      = 1
                left     = 1
                width    = 420
                height   = 120
              exceptions others = 1.
            if sy-subrc <> 0.
              call method GU_dialogboxPrint->free.
              clear GU_dialogboxPrint.
            endif.
            RETVAL = CL_GFW=>OK.
            IF FIRSTCALL IS INITIAL.
              CREATE OBJECT DC_INST.
              DC_MANAGE = DC_INST.
              CALL METHOD DC_MANAGE->INIT IMPORTING ID = MY_ID_AT_DC
                                                    RETVAL = RETVAL.
              IF RETVAL <> CL_GFW=>OK.
                CALL METHOD CL_GFW=>SHOW_MSG EXPORTING MSGNO = RETVAL.
                CLEAR DC_INST.
                CLEAR DC_MANAGE.
              ELSE.
                PERFORM FILL_DC CHANGING RETVAL.
                IF RETVAL <> CL_GFW=>OK.
                  CALL METHOD CL_GFW=>SHOW_MSG EXPORTING MSGNO = RETVAL.
                ELSE.
                CREATE OBJECT CUSTOM_CONTAINER
                  EXPORTING
                    CONTAINER_NAME = 'CONTAINER_GRAPH2'.
                CREATE OBJECT GP_INST.
                CALL METHOD GP_INST->IF_GRAPHIC_PROXY~INIT
                         EXPORTING parent  = GU_dialogboxPrint
                                   DC      = DC_INST
                                   PROD_ID = CL_GUI_GP_PRES=>CO_PROD_CHART
                                   FORCE_PROD   = GFW_TRUE
                                   EVTCODE_LIST = EVTCODE_LIST
                         IMPORTING RETVAL  = RETVAL.
          CALL METHOD gp_inst->if_graphic_proxy~print.
    Edited by: Kosmo on Feb 18, 2010 7:21 PM

    Not solved. I think that it must be container first on view screen and next printing is good.

  • How to print cproject Graph?

    hello frnds,
    i want to print graph in the cproject. here print button is given but from there i can only print the details of project. i m not able to print graph. will anybody tell me that is there any badi given to print that or not? if yes then which badi? plz reply as soon as possible. i have to urgently complete this. i also want to find out that how the details are printed. smartform is used there but which badi is called to print it? plz tell me.
    Thank you very much.
    waiting for ur reply.

    Hi Hetal,
    within cPro 3.1 the GANNT Chart can be printed out only with sorry, MS Project
    But with cPro 4.0 there exists a really cool solution to print, zoom etc the Chart.
    Regards
    Björn

  • 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

  • Cursor printing on xy graph

    I am using Labview version 6.1 in Windows 2000. I have an XY graph that has active cursors used to select an interval of data for analysis from a raw data set. I pass the necessary parameters of this graph including scale settings, labels, the data set and cursor postions to a VI that prints the graph out in a printer freindly format. I cannot get the cursor postions to show up correctly on the printed graph, they remain where I place them when editing the VI.
    The cursor postions are coming in correctly as are the other parameters. One thing, this graph is printed landscape.
    Any suggestions?

    So what is the question about... I have to use XY graph in my program. It is used in Loop while cycle. It shows the statistic of a variable. I am using cursors in this graph to check the actual value of a variable in different period of time. But there are 7 variables and it is extremely hard for user to check each value independently. So I tried to make them moving on the X axis (TIME) together using the property node (cursors reading the position (only X axis, Y axis status lock to plot) of the major cursor and follow it... Everything looks great? But it did not work when I am trying to move the major cursor manually on graph... It works only when I am using the cursor movement buttons... But they work very slowly when there is a lot of data in graph.
    I want to find out is it possible to make seven coursers mouthing together By the X axe and be Locked each at its plot by Y axe manually (Using mouse moving on a graph). Is it possible? If it is than how to do it?

  • Print a graph

    I have a front panel with a waveform graph on it and would like to add a push
    button "print graph".
    Is there a way to print out of a waveform graph?
    I found the "print panel" vi and "append front panel image to report" vi, but
    they both make a hardcopy of the entire front panel.
    I hoped to find something like "print indicator" or "append indicator image to
    report".
    Peter Nyffeler mailto:[email protected]
    Tel P 01 363 62 42, Tel G 01 632 43 60, Fax G 01 632 10 21

    Peter,
    Here is a small piece of code that prints an image of the graph. It uses the report tools, basically creates a new report, adds the control image (using a control reference, prits the report to the default priter and closes the report. To create the control reference just right-click in the control and select Create>>Reference. You can find this VIs in the Report palette.
    Hope this helps.
    Regards,
    Juan Carlos
    N.I.
    Attachments:
    Print_Control_IMAGE.bmp ‏245 KB

  • Print a graph when used different resolutions

    Hello,
    my LV programm
    (using V8.5.1) must run on computers with different resolutions (1024x768,
    1280x1024...), so I used the option
    "new scaling of all frontpanel elements after changing the windows size" (free translating   )
    (German: "Alle Elemente des Frontpanels bei Änderung der Fenstergröße neu skalieren")
    in my VI.
    This works fine but now I have some trouble with the printout of a graph.
    Depending of the selected resolution of the computer, the graph will be printed complete or only partial, then the lower part of the graph is missing.
    To print out the graph I used the VI  "Append Control Image to Report.vi"
    Can anybody help me?
    Gruß
    jan91

    Hello Jan,
     you are right - when printing the report in landscape orientation, images will be cropped if higher than the paper size.This issue has already been reported to our LabVIEW R&D team (#36511) and should be solved in a forthcoming update of the report generation toolkit. In my opinion, the issue is linked to the problem that the image will not fill out the report page completely to the right margin (#36926), another nuisance you might also have encountered.
    I have created a workaround for the problem,  which you should find attached to this post. As you change the graphs background color for printing, I added another property to resize the graph to the maximum printable size (evaluated here in trial&error, depending on your printer, the maximum size might change a bit), and another one to restore the original size when the report is done. To reduce the "blink time" of the graph, I placed the restoring property node directly after the control image has been attached to the report, so that during printer initialization, the original layout is already visible again.
    Hopefully, this is acceptable for you, until these issues have been fixed.
    Best regards,
    Sebastian 
    Attachments:
    print graph (modified).vi ‏44 KB

  • Perl won't load GD::Graph::pie in Apache, but does with terminal.

    It took me forever to get GD to work at all. Now I'm totally stuck. I hope someone can help me. If I run my cgi file from terminal using "perl /Library/WebServer/CGI-Executables/GraphTest.cgi" it prints the "jpeg". If I run it from apache using "http://localhost/cgi-bin/GraphTest.cgi", I get an error saying "Can't locate GD/Graph/pie.pm" along with the typical PATH settings and such. Why can perl run the script without issue, but using web sharing/apache perl can't find the perl module? I assume this is an apache issue?
    More details:
    *I finally got GD installed using port
    *Every time I attempted to install GD and it failed, I erased the HDD and reinstalled OSX. So, this is a very fresh install.
    *This is Snow Leopard, not Snow Leopard Server
    *If I add the following two lines and run, "sudo perl /Library/WebServer/CGI-Executables/GraphTest.cgi" it will create the graph in my profile directory:
    open(GRAPH,">graph5.jpg") || die "Cannot open graph5.jpg: $!\n";
    print GRAPH $graph->gd->jpeg(100);
    *The cgi file:
    #!/usr/bin/perl -w
    use strict;
    use GD::Graph::pie;
    use Text::CSV_XS;
    my @data;
    my $csv = new Text::CSV_XS;
    open(FILE,"/Library/WebServer/data/testmetrics.csv") || die "Cannot open testmetrics.csv: $!\n";
    while (my $line = <FILE>) {
    $csv->parse($line);
    my @col = $csv->fields;
    push(@data,\@col);
    my $graph = new GD::Graph::pie(300, 300);
    $graph->set(
    title => 'Revenue by Category for 2001',
    label => 'Category',
    axislabelclr => 'black',
    '3d' => 1,
    start_angle => 90,
    suppress_angle => 5,
    ) or warn $graph->error;
    $graph->plot(\@data) or die $graph->error;
    print $graph->gd->jpeg(100);

    Charles Minow wrote:
    Hi--
    Welcome to the Apple Discussions.
    I see some problems with your script, though they wouldn't be a problem with GD::Graph::pie. I'm not sure yet what that problem is.
    This script works on my computer:
    #!/usr/bin/perl
    use strict;
    use GD::Graph::pie;
    use CGI qw(:standard);
    my @data = (
    ["1st","2nd","3rd","4th","5th","6th"],
    [ 4, 2, 3, 4, 13, 3.5]
    my $my_graph = new GD::Graph::pie( 250, 200 );
    #$my_graph = new GD::Graph::pie( );
    $my_graph->set(
    title => 'A Pie Chart',
    label => 'Label',
    axislabelclr => 'black',
    pie_height => 36,
    l_margin => 15,
    r_margin => 15,
    start_angle => 235,
    transparent => 0,
    $my_graph->plot(@data);
    print header('Content-type' => 'image/jpeg');
    binmode STDOUT;
    print $my_graph->gd->jpeg(100);
    Note that I included the CGI module, and printed a header with the content type before sending the graphic.
    If that script doesn't work on your computer, I'd be interested in seeing the output of this script (run by Apache, of course):
    #!/usr/bin/perl
    use strict;
    use CGI qw(:standard);
    print header();
    print qq(Perl version (Apache): ) . $] . qq(
    my $info = qx(perl -V);
    print qq(<pre>$info</pre>
    foreach my $key (sort keys %ENV) {
    print qq($key = $ENV{$key}
    I'd also be curious to see the results of "perl -V" vs. "/usr/bin/perl -V" run from the command line. Perhaps you are somehow using two different Perls...
    charlie
    Charles Minow wrote:
    Hi--
    Welcome to the Apple Discussions.
    I see some problems with your script, though they wouldn't be a problem with GD::Graph::pie. I'm not sure yet what that problem is.
    This script works on my computer:
    #!/usr/bin/perl
    use strict;
    use GD::Graph::pie;
    use CGI qw(:standard);
    my @data = (
    ["1st","2nd","3rd","4th","5th","6th"],
    [ 4, 2, 3, 4, 13, 3.5]
    my $my_graph = new GD::Graph::pie( 250, 200 );
    #$my_graph = new GD::Graph::pie( );
    $my_graph->set(
    title => 'A Pie Chart',
    label => 'Label',
    axislabelclr => 'black',
    pie_height => 36,
    l_margin => 15,
    r_margin => 15,
    start_angle => 235,
    transparent => 0,
    $my_graph->plot(@data);
    print header('Content-type' => 'image/jpeg');
    binmode STDOUT;
    print $my_graph->gd->jpeg(100);
    Note that I included the CGI module, and printed a header with the content type before sending the graphic.
    If that script doesn't work on your computer, I'd be interested in seeing the output of this script (run by Apache, of course):
    #!/usr/bin/perl
    use strict;
    use CGI qw(:standard);
    print header();
    print qq(Perl version (Apache): ) . $] . qq(
    my $info = qx(perl -V);
    print qq(<pre>$info</pre>
    foreach my $key (sort keys %ENV) {
    print qq($key = $ENV{$key}
    I'd also be curious to see the results of "perl -V" vs. "/usr/bin/perl -V" run from the command line. Perhaps you are somehow using two different Perls...
    charlie
    Hi Charles,
    Thank you much for the reply. I changed my script to exactly what you requested. I got the same old...
    "[Wed Jan 06 23:02:15 2010] [error] [client ::1] Can't locate GD/Graph/pie.pm in @INC (@INC contains: /Library/Perl/Updates/5.10.0 /System/Library/Perl/5.10.0/darwin-thread-multi-2level /System/Library/Perl/5.10.0 /Library/Perl/5.10.0/darwin-thread-multi-2level /Library/Perl/5.10.0 /Network/Library/Perl/5.10.0/darwin-thread-multi-2level /Network/Library/Perl/5.10.0 /Network/Library/Perl /System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2level /System/Library/Perl/Extras/5.10.0 .) at /Library/WebServer/CGI-Executables/GraphTest.cgi line 4.
    [Wed Jan 06 23:02:15 2010] [error] [client ::1] BEGIN failed--compilation aborted at /Library/WebServer/CGI-Executables/GraphTest.cgi line 4.
    [Wed Jan 06 23:02:15 2010] [error] [client ::1] Premature end of script headers: GraphTest.cgi"
    The output of your other script is:
    "Perl version (Apache): 5.010000
    Summary of my perl5 (revision 5 version 10 subversion 0) configuration:
    Platform:
    osname=darwin, osvers=10.0, archname=darwin-thread-multi-2level
    uname='darwin neige.apple.com 10.0 darwin kernel version 10.0.0d8: tue may 5 19:29:59 pdt 2009; root:xnu-1437.2~2release_i386 i386 '
    config_args='-ds -e -Dprefix=/usr -Dccflags=-g -pipe -Dldflags= -Dman3ext=3pm -Duseithreads -Duseshrplib -Dincversionlist=none -Dcc=gcc-4.2'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=define, usemultiplicity=define
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
    Compiler:
    cc='gcc-4.2', ccflags ='-arch x86_64 -arch i386 -arch ppc -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -I/usr/local/include',
    optimize='-Os',
    cppflags='-g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -I/usr/local/include'
    ccversion='', gccversion='4.2.1 (Apple Inc. build 5646)', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Offt='offt', lseeksize=8
    alignbytes=8, prototype=define
    Linker and Libraries:
    ld='gcc-4.2 -mmacosx-version-min=10.6', ldflags ='-arch x86_64 -arch i386 -arch ppc -L/usr/local/lib'
    libpth=/usr/local/lib /usr/lib
    libs=-ldbm -ldl -lm -lutil -lc
    perllibs=-ldl -lm -lutil -lc
    libc=/usr/lib/libc.dylib, so=dylib, useshrplib=true, libperl=libperl.dylib
    gnulibc_version=''
    Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags='-arch x86_64 -arch i386 -arch ppc -bundle -undefined dynamic_lookup -L/usr/local/lib'
    Characteristics of this binary (from libperl):
    Compile-time options: MULTIPLICITY PERLDONT_CREATEGVSV
    PERLIMPLICITCONTEXT PERLMALLOCWRAP USE64_BITALL
    USE64_BITINT USE_ITHREADS USELARGEFILES
    USE_PERLIO USEREENTRANTAPI
    Locally applied patches:
    /Library/Perl/Updates/ comes before system perl directories
    installprivlib and installarchlib points to the Updates directory
    Built under darwin
    Compiled at Jun 24 2009 00:35:27
    @INC:
    /Library/Perl/Updates/5.10.0
    /System/Library/Perl/5.10.0/darwin-thread-multi-2level
    /System/Library/Perl/5.10.0
    /Library/Perl/5.10.0/darwin-thread-multi-2level
    /Library/Perl/5.10.0
    /Network/Library/Perl/5.10.0/darwin-thread-multi-2level
    /Network/Library/Perl/5.10.0
    /Network/Library/Perl
    /System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2level
    /System/Library/Perl/Extras/5.10.0
    DOCUMENT_ROOT = /Library/WebServer/Documents
    GATEWAY_INTERFACE = CGI/1.1
    HTTP_ACCEPT = application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/pn g,/;q=0.5
    HTTPACCEPTENCODING = gzip, deflate
    HTTPACCEPTLANGUAGE = en-us
    HTTP_CONNECTION = keep-alive
    HTTP_HOST = localhost
    HTTPUSERAGENT = Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6; en-us) AppleWebKit/531.9 (KHTML, like Gecko) Version/4.0.3 Safari/531.9
    PATH = /usr/bin:/bin:/usr/sbin:/sbin
    QUERY_STRING =
    REMOTE_ADDR = ::1
    REMOTE_PORT = 49513
    REQUEST_METHOD = GET
    REQUEST_URI = /cgi-bin/GraphTest2.cgi
    SCRIPT_FILENAME = /Library/WebServer/CGI-Executables/GraphTest2.cgi
    SCRIPT_NAME = /cgi-bin/GraphTest2.cgi
    SERVER_ADDR = ::1
    SERVER_ADMIN = [email protected]
    SERVER_NAME = localhost
    SERVER_PORT = 80
    SERVER_PROTOCOL = HTTP/1.1
    SERVER_SIGNATURE =
    SERVER_SOFTWARE = Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8k DAV/2
    VERSIONERPERL_PREFER_32BIT = no
    VERSIONERPERLVERSION = 5.10.0
    _CF_USER_TEXTENCODING = 0x46:0:0"
    Your other request of "perl -V" outputs:
    "Summary of my perl5 (revision 5 version 8 subversion 9) configuration:
    Platform:
    osname=darwin, osvers=10.0.0, archname=darwin-2level
    uname='darwin itca-display-9235.local 10.0.0 darwin kernel version 10.0.0: fri jul 31 22:47:34 pdt 2009; root:xnu-1456.1.25~1release_i386 i386 '
    config_args='-des -D prefix=/opt/local -D scriptdir=/opt/local/bin -D cppflags=-I/opt/local/include -D ldflags=-L/opt/local/lib -D vendorprefix=/opt/local -D man1ext=1pm -D man3ext=3pm -D cc=/usr/bin/gcc-4.2 -D ld=/usr/bin/gcc-4.2 -D man1dir=/opt/local/share/man/man1p -D man3dir=/opt/local/share/man/man3p -D siteman1dir=/opt/local/share/man/man1 -D siteman3dir=/opt/local/share/man/man3 -D vendorman1dir=/opt/local/share/man/man1 -D vendorman3dir=/opt/local/share/man/man3 -D incversionlist=5.8.8 5.8.8/darwin-2level -U i_bind -U i_gdbm -U i_db'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=define use64bitall=define uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
    Compiler:
    cc='/usr/bin/gcc-4.2', ccflags ='-fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -pipe -I/opt/local/include',
    optimize='-O3',
    cppflags='-I/opt/local/include -no-cpp-precomp -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -pipe -I/opt/local/include'
    ccversion='', gccversion='4.2.1 (Apple Inc. build 5646)', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Offt='offt', lseeksize=8
    alignbytes=8, prototype=define
    Linker and Libraries:
    ld='env MACOSXDEPLOYMENTTARGET=10.3 /usr/bin/gcc-4.2', ldflags ='-L/opt/local/lib'
    libpth=/opt/local/lib /usr/lib
    libs=-ldbm -ldl -lm -lutil -lc
    perllibs=-ldl -lm -lutil -lc
    libc=/usr/lib/libc.dylib, so=dylib, useshrplib=false, libperl=libperl.a
    gnulibc_version=''
    Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags='-L/opt/local/lib -bundle -undefined dynamic_lookup'
    Characteristics of this binary (from libperl):
    Compile-time options: PERLMALLOCWRAP USE64_BITALL USE64_BITINT
    USEFASTSTDIO USELARGEFILES USE_PERLIO
    Built under darwin
    Compiled at Jan 6 2010 17:16:53
    @INC:
    /opt/local/lib/perl5/site_perl/5.8.9/darwin-2level
    /opt/local/lib/perl5/site_perl/5.8.9
    /opt/local/lib/perl5/site_perl
    /opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level
    /opt/local/lib/perl5/vendor_perl/5.8.9
    /opt/local/lib/perl5/vendor_perl
    /opt/local/lib/perl5/5.8.9/darwin-2level
    /opt/local/lib/perl5/5.8.9
    And finally, "/usr/bin/perl -V" outputs
    "Summary of my perl5 (revision 5 version 10 subversion 0) configuration:
    Platform:
    osname=darwin, osvers=10.0, archname=darwin-thread-multi-2level
    uname='darwin neige.apple.com 10.0 darwin kernel version 10.0.0d8: tue may 5 19:29:59 pdt 2009; root:xnu-1437.2~2release_i386 i386 '
    config_args='-ds -e -Dprefix=/usr -Dccflags=-g -pipe -Dldflags= -Dman3ext=3pm -Duseithreads -Duseshrplib -Dincversionlist=none -Dcc=gcc-4.2'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=define, usemultiplicity=define
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
    Compiler:
    cc='gcc-4.2', ccflags ='-arch x86_64 -arch i386 -arch ppc -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -I/usr/local/include',
    optimize='-Os',
    cppflags='-g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -I/usr/local/include'
    ccversion='', gccversion='4.2.1 (Apple Inc. build 5646)', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Offt='offt', lseeksize=8
    alignbytes=8, prototype=define
    Linker and Libraries:
    ld='gcc-4.2 -mmacosx-version-min=10.6', ldflags ='-arch x86_64 -arch i386 -arch ppc -L/usr/local/lib'
    libpth=/usr/local/lib /usr/lib
    libs=-ldbm -ldl -lm -lutil -lc
    perllibs=-ldl -lm -lutil -lc
    libc=/usr/lib/libc.dylib, so=dylib, useshrplib=true, libperl=libperl.dylib
    gnulibc_version=''
    Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags='-arch x86_64 -arch i386 -arch ppc -bundle -undefined dynamic_lookup -L/usr/local/lib'
    Characteristics of this binary (from libperl):
    Compile-time options: MULTIPLICITY PERLDONT_CREATEGVSV
    PERLIMPLICITCONTEXT PERLMALLOCWRAP USE64_BITALL
    USE64_BITINT USE_ITHREADS USELARGEFILES
    USE_PERLIO USEREENTRANTAPI
    Locally applied patches:
    /Library/Perl/Updates/<version> comes before system perl directories
    installprivlib and installarchlib points to the Updates directory
    Built under darwin
    Compiled at Jun 24 2009 00:35:27
    @INC:
    /Library/Perl/Updates/5.10.0
    /System/Library/Perl/5.10.0/darwin-thread-multi-2level
    /System/Library/Perl/5.10.0
    /Library/Perl/5.10.0/darwin-thread-multi-2level
    /Library/Perl/5.10.0
    /Network/Library/Perl/5.10.0/darwin-thread-multi-2level
    /Network/Library/Perl/5.10.0
    /Network/Library/Perl
    /System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2level
    /System/Library/Perl/Extras/5.10.0
    So, I guess you were right. I'm running two different perls. The first one looks like it was installed by port along with GD. Is it possible to get the default perl to run GD?

  • I want to print the front panel without all the header stuff while the vi is running

    I want to print the vi front panel without all the header information that Labview puts at the top. I want to do all this while the vi is running by pushing a button.

    One option is to use the the 'Print VI to Printer' method. Beware that invoking this method repeatedly with complex front panels has caused me graphics problems in my VI's display that persist until the development environment or the built .exe app is exited and re-entered.
    See: http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=5065000000080000005F5A0000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0&USEARCHCONTEXT_QUESTION_0=spaz+print&USEARCHCONTEXT_QUESTION_S=0
    NI has confirmed this to be a bug in 6.0x and 6.1 and has indicated that it will be fixed in the next version.
    I was forced to fall back on the Append Front Panel Image to Report.vi in the report toolkit. Which does not produce printed graphs of as high as quality as the Print VI to
    printer method.

Maybe you are looking for

  • 1 Mac, 2 users, how to share music/apps

    Want to be able to use one music library and sync separate playlists. Not sure how to set up iMac. Also would limestone able to have apps on both phones and sync independently. Possible?

  • After reset can't use as iPod without sim

    I upgraded to a 3g iPhone a while ago and have been using my original iPhone as an iPod without a sim card. I was planning to lend my old iPhone to a friend and thought that I would reset it before giving it to him - so I "reset all data" , which too

  • How do i get my wifes contacts off my phone

    i finally got an i phone we have a imac at home and my wife has an 3gs. so we set her up with icloud using my apple id. now i have an i phone and using my id i get all here contacts. i deleted her backups from the cloud but is still cant keep them fr

  • I am not able to edit contacts - I phone 4, no edit button appears anymore

    I am trying to edit contacts, I can not - no edit button appears on my contact can anyone help

  • I am new to iMac.  Camera memory card

    I am new to my iMac.  I inserted my camera memory card and successfully uploaded my photos, but when I take the card out of the computer I get an error message that atells me I should eject it properly.  How do I do this?