Forms 10g BI Graph Bean - Is there way of printing the graph ?

Hi All,
A simple "nice to have" requirement : after producing a graph on the Form using the BI Graph Bean, is there a way of printing it ?
Regards,
Steve

I've actually modified the Bean and solved the problem by writing the graph to a file which can then be printed. This code goes into the FormsGraph code at around Line 1128
             * Saves the graph as either a GIF or a PNG file
            if (_ID == pSaveGraph) {
                String sFileName = null;
                if (_object != null && (String)_object != "") {
                    sFileName = (String)_object;
                    File f = new File(sFileName);
                    if (f.canWrite()|| !f.exists()) {
                        FileOutputStream fo = new FileOutputStream(f);
                        if (sFileName.toLowerCase().endsWith("png")) {
                            m_graph.exportToPNG(fo);                           
                        } else if (sFileName.toLowerCase().endsWith("gif")) {
                            m_graph.exportToGIF(fo);
                        } else {
                           DebugMessage("SAVE_GRAPH: Not a GIF or PNG type file");                          
                        fo.close();
                        return true;
                    } else {
                        DebugMessage("SAVE_GRAPH: cannot write to " +
                                     sFileName);
                        return true;
                } else {
                    DebugMessage("SAVE_GRAPH: No Filename passed");
                    return true;
            }and then separately I've declared by new ID
     * Allows the graph to be saved
    protected static final ID pSaveGraph = ID.registerProperty("SAVE_GRAPH");So when calling the save graph add in the filename as the 4th parameter eg:
    set_custom_property(v_bean,1,'SAVE_GRAPH',v_file_name);       

Similar Messages

  • In Mail, is there a way to print the list of mail activity in a folder without actually printing each email?

    In Mail, is there a way to print the list of mail activity in a folder without actually printing each email?
    Thanks to all.

    Actually, I noticed in "More Like This" questions similar to mine.  One of the suggestions worked perfectly.
    Command Shift 4 turns the arrow into a target scope.  Use it to take a screen shot of the area you want printed.  Thanks to all.

  • Is there a way to print the check register with the Text field

    Hi,
    Is there a way to print the check register with the Text field and also each item's Text field?"
    When we enter a invoice we enter a generic text on the Basic Data tab then enter a "+" on each individual line item which in turns defaults to the generic text. Just wanted to know if the check register could draw in the individual line item detail where we can enter text that relates to just that line item. Sort of like the MIR7 draws in the detail for each item.
    Kindly help me in full fill the above requirement.
    Thanks
    Sunitha

    Hi,
    Can any one help me on this issue?
    Thanks
    Sunitha

  • I have used the "description" spot in iPhoto for in-depth additional information for photos of my ancestors. Now I am wanting to know if there is a way to print the photos along with the descriptions; either photo by photo, or maybe more than one per page

    I have used the "description" spot in iPhoto for in-depth additional information for photos of my ancestors. Now I am wanting to know if there is a way to print the photos along with the descriptions; either photo by photo, or maybe more than one per page, or possibly in some sort of booklet format. Thank you very much.

    You can make a Book and have a photo on one side and your text description on the other.

  • Is there any way to print  the data inside  the Notes field of MIR6 Report

    Hello Gurús.
    We need to include the data inside the Notes field in the report MIR6 - INVOICE OVERVIEW - report.
    Is there any way to print  the data inside (comments)  the Notes field as well in the Report  ?
    We found that the only way is to open the Notes and print it, but it takes time, any idea ?
    Rgds.
    MCM.

    There's nothing built-in that does that. If you only have text fields and they don't have any formatting or other property that would prevent it (e.g., Date, character limit), you can run a simple script to populate each field with the field name, and then print. A more complicated approach would be a script that adds text annotations near/over each field that shows the field name. This would just be for documentation purposes, but it's possible. Post again if you'd like help with the first. You'll probably have to pay someone for the second approach if you don't want to do it yourself.

  • Is there way to remove the bar you use to move a JFrame?

    Is there way to remove the bar you use to move a JFrame? I don't want it there for several reasons, if you want, I will give more detail.

    I have seen a couple of posts in this forum suggesting to use a JWindow. Well, I can't get a JWindow to work. Here is the sample program I used.
    a) Without doing anything type "aaa"
    b) use tab key and then enter "bbb"
    c) click on text field then enter "ccc"
    d) use tab key
    e) click on Dos window and use Ctrl-C to kill application
    1) What is wrong with the Focus Manager. No caret is displayed in the text field or no 'rectangle' around the button.
    2) Why is 'aaa' displayed on the Dos window when you kill the application?
    3) I have seen a JWindow used in the JDK1.3 SwingSet2 demo, but it is only used to contain an image. Is a JWindow not meant to be used with other components?
    Any comments would be appreciated.
    import java.awt.*;
    import javax.swing.*;
    public class TestWindow extends JWindow
         public TestWindow()
              Toolkit tk = Toolkit.getDefaultToolkit();
              Dimension d = tk.getScreenSize();
              int width = 200, height = 200;
              setBounds((d.width - width) / 2, (d.height - height) / 2, width, height);
              JPanel panel = new JPanel();
              setContentPane(panel);
              JTextField textField = new JTextField(10);
              panel.add( textField );
              JButton button = new JButton("One");
              panel.add( button );
         public static void main(String[] args)
              JWindow window = new TestWindow();
              window.setVisible(true);

  • I am trying to fit information in a text box. Is there way to move the information further up. There is a lot of wasted space on the top.

    I am trying to fit information in a text box. Is there way to move the information further up. There is a lot of wasted space on the top.

    Shane's psychic powers are amazing..... I would have asked 'what text box?'
    ...and so, yet another inquisition begins!
    The Mystic North

  • Is there a way to print the comments on the comments list

    Is there a way to print the comments on the comments list

    There is, but only in Acrobat. Click the Options button and select Create Comment Summary.
    If you're using Reader it's possible to output a similar summary to the console window, where you could copy it to another application, but that requires using a script.

  • Popup menus in Forms 10g and Java Bean

    Hi all.
    What class in Java corresponds with popup menus(not in menu module) ?
    I know that oracle.ewt.lwAWT.lwMenu.LWPopupMenu is corresponds with MenuBar's submenu. I can find Buttons, Text Fields, Menu and other components in my Form-Applet, but I don't know how to find popup menus in forms through Java Bean...

    Hello François,
    I have created a java bean that dynamically creates a popup by left-clicking on the bean.
              Set_Custom_Property( 'BLOCK.BEAN', 1, 'ADD_ITEM', 'Item' ) ;
              Set_Custom_Property( 'BLOCK.BEAN', 1, 'ADD_SEPARATOR', '' ) ;
              Set_Custom_Property( 'BLOCK.BEAN', 1, 'ADD_ITEM', 'Item one' ) ;     
              Set_Custom_Property( 'BLOCK.BEAN', 1, 'ADD_ITEM', 'Item two' ) ;
    My problem is the layout. I want to simulate a button. I can't put the bean transparent over a button and I can't simulate a button with the bean.
    How can I add the popup functionality to a button and not only to the bean? Or any other workaround?
    Regards Pedro.

  • What is the best way  to print the contents within a scrolling textbox in a fillable form?

    I have created a form using Acrobat 9 Pro which contains several text boxes that allow for unlimited text.  When printing out completed forms,  any text that requires scrolling will not print.  Is there any way to be able to print the contents of all text boxes regardless of length of content?

    Yes, when you set the font size to Auto, the font size shrinks to include all the entered text in the visible area. Otherwise the hidden the text is not displayed and you see observe a "+" sign. You might also want to consider the option to make your form flowable using Adobe LiveCycle Designer.
    ~Deepak

  • I cannot locate the Jump Menu under Insert/Form. I am looking for a way to replacve the Spry menu I used previously

    I need to modify my website and I used a Spry menu to direct users to specific pages. This is no longer supported with the 2014 version and thought a Jump Menu would work, but it is not on the insert/form menu as instructed in help files. Any ideas?

    Jump Menus still exist in CC, they're just created differently than they used to be. For some reason I can't figure out, they've been a bit buried...
    1. Click in Design View where you want the Select Menu to appear
    2. Go to Insert > Form > Select
    3. Click on the Select Menu created in Design View
    4. Click the + in the Behaviors Window and choose Jump Menu
    From there, you should get the familiar Jump Menu dialogue box.

  • Is there any way to print the smartorms in a specific format A3 or A4.

    In smartforms are there any settings for the printer to directly take the command as A4 format or A3 .
    The settings should be defualt so that the printer will print only in the given setting ..

    Hi Faran,
    In Smartforms you can change the page format in Form Attributes->Output Option. But the settings in the page or design will  change. So first you have to decide in which page format to take printout.
    Thanks,
    Sanjeeb.

  • Is there way to use the 11gR1 JRF as an osgi bundle in 11gR2?

    We've got a number of developers who want to use JDev 11gR2 for performance reasons, but we have to write software for 11gR1 Fusion Middleware. Is there a way to load the 11gR1 JRF and related dependencies as an osgi bundle? Or some other mechanism to accomplish the same? (Can I please have my cake and eat it too?)

    No, I don't really have any documentation on it or anything. I just know that nothing like that exists :)
    John

  • I live on a ship and have a slow connection. Is there way to get the content via CD?

    I live on a ship and have a slow internet connection. Is there a way to get the content via CD?

    You can still get it (DVD in this case) in some places -
    http://www.amazon.co.uk/Apple-MB795Z-A-Logic-Studio/dp/B002ISDD1K/ref=sr_1_3?ie= UTF8&qid=1340218920&sr=8-3

  • Is there a way to print the printer journal or log?

    I need to print the log or journal for my 7510 al in one printer. Is there a way of doing that for things greater than 30 days old?

    Hello,
    Are you trying to print out a printer error log?
    Trent
    Miles
    HP Employee

Maybe you are looking for

  • Envy 100 d410a cannot print w/ win8 but ok w/ win7 or mac

    envy 100 d410a prints on mac, 2 win7 64 bit, installs on win8 touchsmart 64bit but cannot print, bonjour cannot locate it 1 mac 2 win7 64bit  but cannot print with win8 64bit touchsmart. Drivers installs fine and find/creates the printer in the devic

  • How to use a fixed port for remote assistance in windows 8.1 behind a nat router freebox?

    Hello, Before to use remote assistance in windows 8.1, i need to configure my nat router freebox. But remote assistance ( msra.exe ) use a dynamique port and never the same. How to use a fixed port for remote assistance ini windows 8.1 ? And why i ca

  • How to change billing date

    My billing date is currently set it to the 7th of every month and it's annoying since everything else comes out on the 1st. How can I change it? I've looked all over the My Account section and can't find anything that'll change my billing date...

  • Keynote: change numbers in chart to french??

    Does anyone know how to change the numbers in a chart to french? So decimals points become commas? If i input commas into the Chart Data Editor it does not ready them.

  • Software won't update on old phone

    Trying to use my old iphone as an i-touch but having trouble syncing the apps that I want because they require a newer software version.  Each time I try to update the software, the phone freezes up.  I am concerned about putting my current sim card