OLE Automation and executing a click event

Hi,
Is it possible to have a LiveCycle form click event execute from OLE Automation?
Thanks in advance

There's a couple of ways you can handle this, depending on what level of flexibility and complication you want. One way is to use dynamic events. You can then edit the events handled by your specific event case. There's a couple of examples that ship with LabVIEW that show you how to use dynamic events. A second way is to create a boolean control/indicator called "init", and then outside your event structure set the value using the "Value (signaling)" property. Then, edit your event case to also execute when the boolean's value changes.

Similar Messages

  • OLE Automation and Photoshop Elements 7

    Hi,
    I was trying to control Photoshop Elements 7 by OLE Automation:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using ps = PhotoshopTypeLibrary;
    namespace PhotohopTest
        class Program
            static void Main(string[] args)
                ps.PhotoshopElementsApplicationClass app = new ps.PhotoshopElementsApplicationClass();
                Console.WriteLine("Appname: "+app.FullName);
                try
                    ps.IAutoPSDoc NewDoc = app.Open("C:\\Unbenannt-1.psd");
                catch (Exception ex)
                    Console.WriteLine("Error: "+ex.Message);
                    Console.ReadLine();
    But I get the error message that the COM interface ins't conected.
    Can anyone help me?

    Hi.
    The TypeLibary is in the Photoshop Elements directory e.g.:
    C:\Programme\Adobe\Photoshop Elements 7.0\TypeLibrary.tlb
    It's not registered, but you can manually register it with the "regtlib.exe" of .NET
    I hope that helps

  • Differentiate Next and Previous link click events in Table Region

    Hello,
    Is there a way to find out whether "Next" link or the "Previous" link was clicked in a Table region when the user tries to navigate to a different range set?
    Both "Next" and "Previous" links raise the event "goto". I need to manipulate the range start and range size of another VO. i.e., if Next was clicked I would want to increase the range start of another VO and If "Pevious" was clicked, I would want to decrease this range start.
    Thanks
    Raja

    Yes, this is clearly explained in dev guide, see Event Handling in table section in dev guide.
    --Mukul                                                                                                                                                                                                                           

  • Creation of  diagram with the given data as input and to enable click event

    Is it possible to create an image from a dynamic input. For example if a relationship exists between
    A->B ,A->C ,A->D , B->E,B->F .
    Then the initial diagram should display a node leaf diagram with A as root and B,C,D as leaf. When u click on B again different image should pop up displaying B as root and E,F as leaf.
    Maybe Maps,SVG maybe useful, i am not sure of the implementation.

    Call this fuction module DATE_COMPUTE_DAY and then use this to convert to the day: DAY_NAMES_GET.
    If I were you I'd store the day of week returned from DATE_COMPUTE_DAY in your cube in a new infoobject.  Then bring in the text for the infoobject from table T246.
    Regards,
    Troy

  • OLE Automation for Acrobat Reader

    Hello guys
    I have been reading some lines about OLE Automation for Acrobat READER and Full Acrobat.
    So far I have seen most saying that Reader is not fully compliant with OLE. I really have zero experience with Adobe and before I buy a full acrobat license, I want to make sure of the following:
    What I need to do is the next 4 simple calls:
    Connect to Acrobat
    Open a pdf file in invisible mode
    Perform "Select All"
    Copy Selection to clipboard
    After that, I will importclipboard to my datawindow and I will be done for my programming task.
    Have you had similar experiences about Acrobat OLE for PDF ?
    some references are in help.adobe.com/livedocs/acrobat_sdk/10/Acrobat10_HTMLHelp
    Thanks so much in advance for any hint.
    Regards

    Hello again
    Chris, thanks so much for your very quick response.
    At a first glance, the PDF Toolkit looks good and with a good price too, but I did not see if I can call functionality from PowerBuilder code without opening a user interface. Are you familiar with this ?
    Stuart, very nice approach for my need, but I apologize for not explaining clearly what I want.
    I just want to process the content of some lines in the file to find specific strings.
    As you may see, if you open the file with Adobe Reader or Adobe Acrobat and go to the edit menu, by clicking "Select All" and "Copy" you will get the text ready for pasting.
    I want to automate this process to prevent the users from opening the Adobe application.
    I'm now testing with the functions provided by Adobe documentation to perform OLE Automation and ALMOST gave me what I need with the following code:
    Documentation is found in
    http://help.adobe.com/livedocs/acrobat_sdk/10/Acrobat10_HTMLHelp/wwhelp/wwhimpl/js/html/wwhelp.htm?&accessible=true 
    // Start Code
    boolean lb
    oleobject luo_app, luo_file
    luo_app = create oleobject
    luo_app.connecttonewobject('AcroExch.app')
    luo_file = create oleobject
    luo_file.connecttonewobject('AcroExch.AvDoc')
    luo_file.open('c:\some_file.pdf')
    // Next three lines are for visual debugging and confirming that file is opening well during testing of code :=)
    luo_file.show()
    luo_file.bringtofront()
    luo_file.setviewmode(1)
    // Next two lines return FALSE, meaning they did not execute because the words "Select All" (or "SelectAll") and "Copy" are not the right words linked to the
    // menu items
    lb = luo_app.menuitemexecute('Select All')    // Neither "SelectAll"
    lb = luo_app.menuitemexecute('Copy')
    // End of code
    Everything works fine except the two lines. The Adobe application is open and the file shown, but when calling "Select All" and "Copy" in the function menuitemexecute, Adobe does not interpret these phrases.
    Just to confirm that menuitemexecute has the right syntax, I tested a call for luo_app.menuitemexecute("find") and this command is well interpreted by Adobe, which immediately opens the find window at the right corner of the file
    I hope not to be too dense with this explanation ( but maybe I was )     :=)
    Thanks for your feedback

  • Click event on SWFLoader

    Hello,
    In my FLEX application i have a SWFLoader where i load some wsf files that are located in others places in the web. Some of the swf files loaded contain an hyperlink associated and, when the swf file is clicked, a new web page is opened.
    So, i need to count the number of clicks made in the SWFLoader but, in the case when the swf file has an hyperlink associated, the click event is not fired. What can i do to detect if a click was made in the SWFLoader?
    Thanks in advance for your help.

    Hi carlos_sousa4,
    Check the below code loading the Flash SWF in to Flex application.. and handling a click event on the Flash SWF Button in the Flex app..
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    layout="vertical"
    backgroundAlpha="0"
    backgroundColor="#FFFFFF">
    <mx:Script>
      <![CDATA[
       import mx.controls.Button;
       import mx.controls.Alert;
       private var loadedSWFMainTimeline:*;
       public function onSWFLoadComplete():void {
        Alert.show("onSWFLoadComplete");
        //loadedSWFMainTimeline gets you a reference to the Flash SWF MainTimeline
        loadedSWFMainTimeline = swfLoader.content;
        if(loadedSWFMainTimeline)
         var _button:SimpleButton = loadedSWFMainTimeline.button_btn as SimpleButton;
         _button.addEventListener(MouseEvent.CLICK,onMCButtonClick);
       public function onMCButtonClick(event:MouseEvent):void {
        if(loadedSWFMainTimeline)
         Alert.show("HELLO SWF LINK CLICKED");
      ]]>
    </mx:Script>
    <mx:SWFLoader id="swfLoader" source="assets/flashswf.swf" complete="onSWFLoadComplete();"/>
    </mx:Application>
    Note : In the above code  button_btn is the Flash button instance of the SWF file and the corresponding type in the Flex will be SimpleButton...In your post you said that you are using a HyperLink so may be you should flash.text.TextField datatype instead of SimpleButton.
    Try to debug by putting a break point at onSWFLoadComplete function and watch the loadedSWFMainTimeline varibale you will come to know the exact type and the other parameters in the SWF file.
    If this post answers your question or helps, please kindly mark it as such.
    Thanks,
    Bhasker Chari

  • Sharepoint 2010 Custom Visual Webpart button click event firing on page refresh

    I have developed a Visual Webpart to create a list in SP using vs2010 and  the button click event I have written the list create method. If I click the button list is created successfully.  And I refresh the page again list is creating(Again button
    click event is triggering).please help me to solve the issue.
     protected void Button1_Click(object sender,
    EventArgs e)
                SPWeb web
    = SPContext.Current.Web;
                //SPList list=web.Lists["Auto"];
                SPList list
    = web.Lists[DropDownList2.SelectedItem.Text];
                if
    (string.IsNullOrEmpty(TextBox1.Text)
    || string.IsNullOrEmpty(DropDownList1.Text))
    Label4.Text =
    "Fields Are Empty";
                else
    if (DropDownList1.SelectedItem.Text
    == "Single line of Text")
                    list.Fields.Add(TextBox1.Text,
    SPFieldType.Text,
    true);
    SPView viewname = list.Views["All Items"];
                    viewname.ViewFields.Add(TextBox1.Text);
    //viewname.Update();
                    list.Update();
    Label4.Text =
    "Field Created Successfully";
    TextBox1.Text =
    string.Empty;
    // Label4.Text = string.Empty;

    Hi,
    This is because the request is sent to the server when you refresh the page.
    A workaround for this is that we can “provide a refresh link that redirects to the same page (or if you have some action causing the refresh programmatically, you could just
    redirect to the page after that, with Response.Redirect)
    so that page is requested by the browser (with GET method, default with hyperlinks)”.
    More information:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/45648b39-1229-405c-ac9e-60eb82905982/click-event-getting-fired-on-page-refresh
    Or we can use the Session to save a value which used as a flag for us to check whether it is a page refresh and perform accordingly.
    http://www.codeproject.com/Articles/28099/Refresh-Page-Issue-in-ASP-Net
    http://www.codeproject.com/Articles/10240/Detecting-Page-Refresh
    Thanks
    Patrick Liang
    TechNet Community Support

  • Js ctrlKey or metaKey don't work in OS X in click event

    When checking for ctrlKey and metaKey in click event, I always get false. Photoshop CC 2014

    I'm sorry, but I shouldn't have to go back to 10.5.8 to get features of my app to work. All other apps work fine using Rosetta. But, not droplets in PS, even when I'm running it under Rosetta. Apple has made updates to 10.6 to address problems with Adobe products, namely issues with saving, printing etc. Surely they didn't do this without some collaboration with Adobe? Am I going to have to wait for CS5 before droplets and other such features work in 10.6? I'd gladly take the issue up with Apple, but they'd tell me that it isn't their product and to contact Adobe, which is more or less the case here. Unless Adobe has CS5 coming out in the next couple of months isn't it reasonable to suggest that Adobe work with Apple to correct some of these issues? Perhaps Adobe could discover why droplets don't work in Rosetta, which would essentially be the same as reverting back to 10.5.8 for the specific app. I understand very well how updates of any kind can cause issues. But a lack of effort to remedy these issues by either party involved is simply not fair. "Oh well" just isn't acceptable anymore. If Adobe or Apple made a noticeable effort and still failed to correct the issues, then fine. Some things can't be fixed. However, I suspect that in this case the issues have been given little attention.

  • Click Event Script Stopped Working. Please Help!

    I must have forgotten a step in making an email button that will pull the data from a form field into the subject line of an email and let me create the body of an email.
    I am taking a Button and adding a Click event of:
    var Mailto = "[email protected]";
    var BetreffSubject = Legal_Name.rawValue;
    var NachrichtMessage = "This is line 1.\r\rConfidentiality Notice!\rThis is the start of the third line ";
    var Mail = "mailto:" + Mailto + "?Subject=Site Report for " + BetreffSubject + "&Body=" + NachrichtMessage ;
    event.target.submitForm({
    cURL: Mail,
    bEmpty: true,
    cSubmitAs: "PDF"
    When I click on the button, nothing happens.  what am I doing wrong?

    Hi RudyLou36,
    Please download the file from https://workspaces.acrobat.com/?d=0n*uLjnmLGX8VlHRCW5n7A and check the click event of "Control email through script" button.
    Regards,
    Ratnesh

  • Click event on sub page menu makes my master page menu go away..???

    I've populated a menu using xml retrieved from a stored procedure and all is working great, except when I select an item from the sub menu and call a click event and it makes my main menu on my site.master go away and shifts the current aspx page up.
    <asp:Menu ID="mnu_catproj" runat="server" BackColor="#B5C7DE" DynamicEnableDefaultPopOutImage="False" DynamicHorizontalOffset="2"
    DynamicPopOutImageTextFormatString="" Style="position: relative;" Font-Bold="True" Font-Italic="False" Font-Names="Verdana" Font-Size="X-Small"
    ForeColor="White" Orientation="Horizontal" StaticEnableDefaultPopOutImage="False" StaticSubMenuIndent="10px" >
    <DataBindings>
    <asp:MenuItemBinding DataMember="Category" TextField="#InnerText" ValueField="#Value" />
    <asp:MenuItemBinding DataMember="Project" TextField="#InnerText" />
    </DataBindings>
    <DynamicHoverStyle BackColor="#CC9900" ForeColor="#0000CC" />
    <DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
    <DynamicMenuStyle BackColor="#B5C7DE" />
    <DynamicSelectedStyle BackColor="#507CD1" />
    <StaticHoverStyle BackColor="#284E98" ForeColor="White" />
    <StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
    <StaticSelectedStyle BackColor="#507CD1" />
    </asp:Menu>
    Protected Sub mnu_catproj_MenuItemClick(sender As Object, e As MenuEventArgs) Handles mnu_catproj.MenuItemClick
    lblCategory.Text = mnu_catproj.SelectedItem.Parent.Text.ToString()
    lblProject.Text = mnu_catproj.SelectedItem.Text()
    btnMD_submit.Enabled = True
    End Sub
    I know the click event is calling the subroutine but the Master Page menu goes away
    <asp:Menu ID="MainMenu" runat="server" DataSourceID="XmlDataSource1" Font-Names="Verdana" ForeColor="#333399" ScrollDownImageUrl="/Images/menuSeparator.gif" StaticPopOutImageUrl="/Images/menuSeparator.gif" Orientation="Horizontal" DynamicPopOutImageUrl="~/Images/triangle-16.gif" ItemWrap="True" CssClass="menuStyle" Height="27px">
    <DataBindings>
    <asp:MenuItemBinding DataMember="Menu" Depth="0" TextField="text" Selectable="False" />
    <asp:MenuItemBinding DataMember="SubMenu" Depth="1" NavigateUrlField="url" TextField="text" ValueField="url" />
    <asp:MenuItemBinding DataMember="SubMenu" Depth="2" NavigateUrlField="url" TextField="text" ValueField="url" SelectableField="url" />
    <asp:MenuItemBinding DataMember="SubMenu1" NavigateUrlField="url" TextField="text" ValueField="text" ToolTipField="#Value" TargetField="target" />
    </DataBindings>
    <DynamicHoverStyle BackColor="#003399" Font-Size="X-Small" ForeColor="White" Font-Bold="False" />
    <DynamicMenuItemStyle HorizontalPadding="10px" VerticalPadding="5px" BackColor="#E5E5E5" BorderColor="#999999" BorderStyle="Solid" BorderWidth="0.01em" Font-Size="X-Small" ForeColor="Black" />
    <DynamicMenuStyle BackColor="#E5E5E5" />
    <DynamicSelectedStyle BackColor="#507CD1" Font-Size="X-Small" />
    <StaticHoverStyle BackColor="#FF9900" ForeColor="White" Font-Bold="False" />
    <StaticMenuItemStyle HorizontalPadding="15px" VerticalPadding="4px" />
    <StaticMenuStyle CssClass="menuStyle" />
    <StaticSelectedStyle BackColor="#FFCC66" />
    </asp:Menu>
    finally: this works fine in Firefox browser but not in IE or Chrome

    Hi DeanO78O,
    This forum is to discuss problems of Windows Forms. Your question is not related to the topic of this forum.
    You could  post it in the dedicated ASP.Net Forum
    http://forums.asp.net for more efficient responses, where you can contact ASP.NET experts.
    Best regards,
    Youjun Tang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to listen for actionContent button click event in View

    Hello,
    Doing this:
    FlexGlobals.topLevelApplication.addEventListener('actionContentClick',showOptions);
    Results in calling showOptions() as many times as the view was showed. The handler sticks and each time I enter a view in the creationComplete hander for it I add the same listener over and over again.
    How should this be done?
    1. FlexGlobals.topLevelApplication is the right object to listen to?
    2. I can remove the listener on view deactivate, but I am not sure if that will be called each time the view goes away.
    3. Can I check if an object already has a listener and which is it?
    Thank you.

    Thank you, Tom.
    I was complicating things for myself by exposing methods in the main MXML file to add and remove and listen to click events on a button placed in the actionContent, instead of declaring it in MXML for each and adding a listener to it. Views had different actionContent buttons or rather icons for them.
    In regards to hasEvenListener, can I also get the method(s) attached to that? Probably not though.

  • B1DE Right Click Event

    Hi all,
    I am working with B1DE and the Right click Event doesn't fire at all?
    anybody knows why?

    Yes you are correct. This is a bug and it will be fixed
    in the next release of B1DE planned to appear on SDN this month.

  • How can i disable a submit button and execute submit_action method on click

    Good Day,
    On my page I have a submit button that execute the submit_action method of the page backing bean that submit data captured on the page into a database and activate another class that send mail at the same time on a click of the submit button,the mail process takes a while before returning back to the page.I was able to disable the submit button to prevent the user from keep click while the process is running but the issue is on clicking the submit button it only disable the submit button without executing the submit_action method of the page backing bean.How can i disable the submit button and execute submit_method of the backing bean at the same time.
    Thanks in advance.

    I tried this out on one of my pages to see if it works.
    First, I added the following JavaScript to my submit button's onClick event:
    this.disabled=true; return true;When I clicked the submit button, it was disabled but the form was not submitted.
    I deleted the JavaScript from the onClick event and added the following JavaScript to the form's onSubmit event:
    var button = document.getElementById("form1:submitButton"); button.disabled=true; return true;When I click the submit button, it was disabled and the form was submitted but the button's action method was not called.
    The next thing I tried was to change the onSubmit event code:
    var button = document.getElementById("form1:submitButton"); setTimeout("button.disabled=true", 500); return true;This seemed to work. The difference was that I added a 1/2 second delay before disabling the button.
    See if that works for you. If not then I'm fresh out of ideas.

  • OLE objects and OO methods - Error using OLE automation

    Hi,
    I'm developing an class to read/write excel sheets and i'm getting an error on the OLE method that is:
    on this instruction
    call method of l_obj_excel 'WORKBOOKS' = l_workb_col.
    i got a dump that give me the following error UC_OBJECTS_NOT_CONVERTIBLE
    The strange is that i've got the same code running on reports and it works fine only when passing it to a oo method i get that dump.
    Thzs in advanced to all
    Best regards
    Jaime

    hi check this..
    Report ZMULTICOLOR_TEST no standard page heading.
    this report demonstrates how to send some ABAP data to an
    EXCEL sheet using OLE automation.
    include ole2incl.
    handles for OLE objects
    data: h_excel type ole2_object,        " Excel object
          h_mapl type ole2_object,         " list of workbooks
          h_map type ole2_object,          " workbook
          h_zl type ole2_object,           " cell
          h_f type ole2_object,            " font
          h_c type ole2_object.            " color
    DATA: FILENAME LIKE RLGRAP-FILENAME.
    tables: spfli.
    data  h type i.
    table of flights
    data: it_spfli like spfli occurs 10 with header line.
    *&   Event START-OF-SELECTION
    start-of-selection.
    read flights
      select * from spfli into table it_spfli.
    display header
      uline (61).
      write: /     sy-vline no-gap,
              (3)  'Flg'(001) color col_heading no-gap, sy-vline no-gap,
              (4)  'Nr'(002) color col_heading no-gap, sy-vline no-gap,
              (20) 'Von'(003) color col_heading no-gap, sy-vline no-gap,
              (20) 'Nach'(004) color col_heading no-gap, sy-vline no-gap,
              (8)  'Zeit'(005) color col_heading no-gap, sy-vline no-gap.
      uline /(61).
    display flights
      loop at it_spfli.
        write: / sy-vline no-gap,
                 it_spfli-carrid color col_key no-gap, sy-vline no-gap,
                 it_spfli-connid color col_normal no-gap, sy-vline no-gap,
                 it_spfli-cityfrom color col_normal no-gap, sy-vline no-gap,
                 it_spfli-cityto color col_normal no-gap, sy-vline no-gap,
                 it_spfli-deptime color col_normal no-gap, sy-vline no-gap.
      endloop.
      uline /(61).
    tell user what is going on
      call function 'SAPGUI_PROGRESS_INDICATOR'
         exporting
              PERCENTAGE = 0
               text       = text-007
           exceptions
                others     = 1.
    start Excel
      create object h_excel 'EXCEL.APPLICATION'.
    PERFORM ERR_HDL.
      set property of h_excel  'Visible' = 1.
    CALL METHOD OF H_EXCEL 'FILESAVEAS' EXPORTING #1 = 'c:\kis_excel.xls'  .
    PERFORM ERR_HDL.
    tell user what is going on
      call function 'SAPGUI_PROGRESS_INDICATOR'
         exporting
              PERCENTAGE = 0
               text       = text-008
           exceptions
                others     = 1.
    get list of workbooks, initially empty
      call method of h_excel 'Workbooks' = h_mapl.
      perform err_hdl.
    add a new workbook
      call method of h_mapl 'Add' = h_map.
      perform err_hdl.
    tell user what is going on
      call function 'SAPGUI_PROGRESS_INDICATOR'
         exporting
              PERCENTAGE = 0
               text       = text-009
           exceptions
                others     = 1.
    output column headings to active Excel sheet
      perform fill_cell using 1 1 1 200 'Carrier id'(001).
      perform fill_cell using 1 2 1 200 'Connection id'(002).
      perform fill_cell using 1 3 1 200 'City from'(003).
      perform fill_cell using 1 4 1 200 'City to'(004).
      perform fill_cell using 1 5 1 200 'Dep. Time'(005).
      loop at it_spfli.
    copy flights to active EXCEL sheet
        h = sy-tabix + 1.
        if it_spfli-carrid cs 'AA'.
          perform fill_cell using h 1 0 000255000 it_spfli-carrid.
        elseif it_spfli-carrid cs 'AZ'.
          perform fill_cell using h 1 0 168000000 it_spfli-carrid.
        elseif it_spfli-carrid cs 'JL'.
          perform fill_cell using h 1 0 168168000 it_spfli-carrid.
        elseif it_spfli-carrid cs 'LH'.
          perform fill_cell using h 1 0 111111111 it_spfli-carrid.
        elseif it_spfli-carrid cs 'SQ'.
          perform fill_cell using h 1 0 100100100 it_spfli-carrid.
        else.
          perform fill_cell using h 1 0 000145000 it_spfli-carrid.
        endif.
        if it_spfli-connid lt 400.
          perform fill_cell using h 2 0 255000255 it_spfli-connid.
        elseif it_spfli-connid lt 800.
          perform fill_cell using h 2 0 077099088 it_spfli-connid.
        else.
          perform fill_cell using h 2 0 246156138 it_spfli-connid.
        endif.
        if it_spfli-cityfrom cp 'S*'.
          perform fill_cell using h 3 0 155155155 it_spfli-cityfrom.
        elseif it_spfli-cityfrom cp 'N*'.
          perform fill_cell using h 3 0 189111222 it_spfli-cityfrom.
        else.
          perform fill_cell using h 3 0 111230222 it_spfli-cityfrom.
        endif.
        if it_spfli-cityto cp 'S*'.
          perform fill_cell using h 4 0 200200200 it_spfli-cityto.
        elseif it_spfli-cityto cp 'N*'.
          perform fill_cell using h 4 0 000111222 it_spfli-cityto.
        else.
          perform fill_cell using h 4 0 130230230 it_spfli-cityto.
        endif.
        if it_spfli-deptime lt '020000'.
          perform fill_cell using h 5 0 145145145 it_spfli-deptime.
        elseif it_spfli-deptime lt '120000' .
          perform fill_cell using h 5 0 015215205 it_spfli-deptime.
        elseif it_spfli-deptime lt '180000' .
          perform fill_cell using h 5 0 000215205 it_spfli-deptime.
        else.
          perform fill_cell using h 5 0 115115105 it_spfli-deptime.
        endif.
      endloop.
    EXCEL FILENAME
      CONCATENATE SY-REPID '_' SY-DATUM6(2) '_' SY-DATUM4(2) '_'
                  SY-DATUM(4) '_' SY-UZEIT '.XLS' INTO FILENAME.
      CALL METHOD OF H_MAP 'SAVEAS' EXPORTING #1 = FILENAME.
      free object h_excel.
      perform err_hdl.
          FORM FILL_CELL                                                *
          sets cell at coordinates i,j to value val boldtype bold       *
    form fill_cell using i j bold col val.
      call method of h_excel 'Cells' = h_zl
        exporting
          #1 = i
          #2 = j.
      perform err_hdl.
      set property of h_zl 'Value' = val .
      perform err_hdl.
      get property of h_zl 'Font' = h_f.
      perform err_hdl.
      set property of h_f 'Bold' = bold .
      perform err_hdl.
      set property of h_f 'Color' = col.
      perform err_hdl.
    endform.                    "FILL_CELL
    *&      Form  ERR_HDL
          outputs OLE error if any                                       *
    -->  p1        text
    <--  p2        text
    form err_hdl.
      if sy-subrc <> 0.
        write: / 'OLE-Automation Error:'(010), sy-subrc.
        stop.
      endif.
    endform.                    " ERR_HDL
    regards,
    venkat

  • How to detect only single click and not double-click mouse events in Swing?

    Hi,
    In my application, I want to implement a functionality only for single click. But problem is on double click, first i can see a single click and then double click.
    i.e e.getCount() return 1 and then 2 for double click. I want to avoid this situation.
    Shouldn't it be just one event with a clickCount of 2? or any alternative solution?
    Please let me know how can i stop this.
    Thanks in advance..
    Cheers
    Somasekhar
    Edited by: SomasekharPatil on Mar 13, 2009 3:36 PM

    Maybe something like the below example:
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseListener;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.SwingUtilities;
    import javax.swing.Timer;
    public class SingleClickOnly {
        public static void main(String[] args) {
         SwingUtilities.invokeLater(new Runnable() {
             @Override
             public void run() {
              new SingleClickOnly().createGUI();
        public void createGUI() {
         JFrame frame = new JFrame();
         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         JLabel label = new JLabel("Only acts on a single click");
         label.addMouseListener(createListener());
         frame.add(label);
         frame.pack();
         frame.setLocationRelativeTo(null);
         frame.setVisible(true);
        public MouseListener createListener() {
         return new MouseAdapter() {
             private int clickCount = 0;
             private final Timer timer = new Timer(1000, new ActionListener() {
              @Override
              public void actionPerformed(ActionEvent e) {
                  if (clickCount == 1) {
                   System.out
                        .println("Executing action on click count 1 only");
              timer.setRepeats(false);
             @Override
             public void mouseClicked(MouseEvent event) {
              clickCount = event.getClickCount();
              System.out.println("Clicked: " + clickCount);
              if (clickCount == 1) {
                  if (timer.isRunning()) {
                   timer.stop();
                  timer.start();
    }Piet

Maybe you are looking for

  • Remote Desktop Connection with single Ethernet cable

    Hi, I'd like to be able to use Microsoft's Remote Desktop Connection app to connect to one of my XP machines with my PowerBook. I can do this when everything is running on my home LAN, but I'd like to be able to connect with just a single Ethernet ca

  • Create logical file path and read it in main program

    Hello Experts, My requirement is, I have to read files from application server. File path/ Directory is different in different system (systid). i have to read all files starting with (xyz*) from mentioned directory. This path i must define in logical

  • ITunes 10.5 wont open after agreeing license agreement

    I have had this problem for A MONTH. It has gotten me really mad and dissapointed with Apple. Ive done ALL solutions ive found on the forums and it still wont work, not even safe mode helps it. I have flushed my DNS resetted the hosts file EVERYTHING

  • How to go back to previous page

    I have two JSP pages first.jsp and second.jsp the user starts at first.jsp and clicks the submit button which then takes the user to second.jsp where the users information is saved in a database. I want to know how to go back to first.jsp from second

  • Adding field comments manually (in help)

    We have many forms on which help is not associated with their comments in Oracle database (like some forms have when generated through wizzard). How to retrieve those values after form is designed? THX