Can you use ActiveX controls in PL/SQL?

I am trying to find a way to start email from within a database trigger. Someone told me I could use an ActiveX Control (custom made by a colleague). Although I have never worked with ActiveX or OLE, I know that it is possible to use them in Forms. Is is also possible to call an ActiveX in PL/SQL? How? And if it is impossible, could someone tell me another way to start email (the application is to be implemented in a Windows NT Network).
Lots of thanks for any answer or advice,
Joeri Folman
null

Joen,
I am not totally sure what you mean when you say 'start email', but you should check out the utl_smpt packages in the database. They can be used to send email messages from the database. I believe that you need to have an email server (like sendmail) running on the machine for these to work correctly.
Check out Oracle Built-In Packages by Steven Feuerstein. Steven also has a real good book on PL/SQL programming that you may find helpful.

Similar Messages

  • How can i use activeX Control in labview?

    how can i use activeX Control in labview?
    please describe me step by step.
    thanks.

    Well..that was quite helpful..but now I'm encountering certain problems. I've attached the VI I've made.
    I don't need sound at the moment so I dropped it. (Although I tried to play it..but all I could hear was a very annoying sound.) Secondly I don't want to display any date or time..so i dropped that property too.
    Now when I run this Vi...the webcam turns on, the screen of videocapx pops up..then the webcam light goes off..and another pop up appears saying..labview is not responding..and i have to close it reluctantly.
    I haven't placed the stop capture property in this vi. i checked it by placing it too..but that doesn't work.
    I would like to notify that my actual task is to acquire image and then compare it with another one already present on my pc. I want you to please help me out..solve my first query then I'll proceed with the latter part.
    Attachments:
    activexvideocaps.vi ‏20 KB

  • Could you use ActiveX controls to achieve the effect you like?

    For example, you can use Shockwave Flash Object controls to load or
    call some Flash motion pictures to achieve the effect you like!

    They may also run on opening the VI (ie: even before you have run the VI...)
    Copyright © 2004-2015 Christopher G. Relf. Some Rights Reserved. This posting is licensed under a Creative Commons Attribution 2.5 License.

  • Can you use a control reference for a graph with two channels of data?

    when i try to wire a 2-D array of data to the value property of a graph(strict control reference), it shows a conflict. The value data type only shows up as accepting a 1-D array input. I want to use control references to pass the chart data to my main vi. Will I have to change the waveform graph control reference into an array control reference to make this work?? This would require adding a while loop in the main vi to read the array data and update the graph data??

    > when i try to wire a 2-D array of data to the value property of a
    > graph(strict control reference), it shows a conflict. The value data
    > type only shows up as accepting a 1-D array input. I want to use
    > control references to pass the chart data to my main vi. Will I have
    > to change the waveform graph control reference into an array control
    > reference to make this work?? This would require adding a while loop
    > in the main vi to read the array data and update the graph data??
    I think the problem is that your waveform graph is set to take one type,
    a 1D array of doubles, and you are wiring a different type. While
    charts adapt to type when the data is wired to their terminal, they do
    not adapt to data wired to their value property. If you change the
    datatype of the graph from its terminal, then you should see the value
    property change type also and you are set.
    Greg McKaskle

  • Can you use the apple remote to control tv programs?

    Can you use the apple remote control like a tv remote to control tv programs & DVDs on the computer? Everything I've found about the Apple Remote talks about using it for products other than desktops. I watch some regular tv shows on my iMac & would like to be able to use a remote control.
    I have a built-in infrared receiver.
    Thanks!

    You should be able to control DVD playback now with the Apple Remote. You may be able to get a bit of functionality with web sites by using Remote Buddy by using it as a virtual mouse and keyboard:
    http://www.macupdate.com/app/mac/21872/remote-buddy
    but you're not going to get anything close to the sort of functionality you'd get with a remote and a TV.
    Regards.

  • HT1947 Can you use a mobile hotspot on your iPhone 4s to control the remote app?

    Can you use your Iphone 4s as a moblie hotspot to control Itunes via the remote app?

    The camera roll is not part of the sync process at all.
    You should be importing these photos to your computer regularly as you would with any digital camera.  Youc an organize them on your computer and sync the to the iphone if you wish.
    The photos sync from the computer to the iphone is one way.
    The iphone mirrors the selected content of the computer to which it is synced.

  • Is it possible to call a activeX control from PL/SQL...?

    Hi all,
    Is it possible to call a activeX control from PL/SQL...? If yes, please give me sample code or any link.
    Thanks,
    Pal

    The LoadLibrary() Win32 call is used to find the physical DLL and load it into memory. This API call first look in the current directory for the file, and then uses the PATH environmental variable to try and find the file.
    Thus you need to make sure PATH is properly set. A Win32 process runs in a 32bit VM (Virtual Machine). Been a very long time since I did Windows server side development, but as I recall this VM inherits the default o/s environment (unlike Unix where the parent process environment is inherited).
    You can set the environment using the Properties menu of the System desktop icon (or via Control Panel).
    However.. Oracle does not run as your user. Typically it is installed as the o/s user Oracle and this user owns all the Oracle processes (listener, instance, etc).
    So you will need to make sure that this user's environment is correctly configured... Further more than this, I'm out of my depth. Did a lot of Windows stuff back in the 90's, but for many years now I'm only using Unix/Linux professionally - with Windows being my console platform for playing games at home. :-)
    On the Linux/Unix side, I configure the environment variable via the Listener. E.g. Under the entry SID_LIST_LISTENER, I configure the external procedure handler as follows:
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME=/tjs-dev/app/oracle/product/10.2.0)
    (PROGRAM = extproc)
    (ENVS = "EXTPROC_DLLS=ANY")
    )No idea how this applies and works on the Windows side.

  • How to use database control to execute sql queries which change at run time

    Hi all,
    I need to execute sql queries using database controls , where the sql changes
    at run time
    based on some condition. For eg. based on the condition , I can add some where
    condition.
    Eg. sql = select id,name from emp where id = ?.
    based on some condition , I can add the following condition .
    and location = ?.
    Have anybody had this kind of situation.
    thanks,
    sathish

    From the perspective of the database control, you've got two options:
    1) use the sql: keyword to do parameter substitution. Your observation
    about {foo} style sbustitution is correct -- this is like using a
    PreparedStatement. To do substitution into the rest of the SQL
    statement, you can use the {sql: foo} substitution syntax which was
    undocumented in GA but is documented in SP2. Then, you can build up
    the filter clause String yourself in a JPF / JWS / etc and pass it into
    the DB control.
    For example:
    * @jc:sql statement="select * from product {sql: filter}"
    public Product[] getProducts(String filter) throws SQLException;
    This will substitute the String filter directly into the statement that
    is executed. The filter string could be null, "", "WHERE ID=12345", etc.
    2) you can use the DatabaseFilter object to build up a set of custom
    sorts and filters and pass that object into the DB control method.
    There have been other posts here about doing this, look for the subject
    "DatabaseFilter example".
    Hope that helps...
    Eddie
    Dan Hayes wrote:
    "Sathish Venkatesan" <[email protected]> wrote:
    Hi Maruthi,
    The parameter substituion , I guess is used like setting the values for
    prepared
    statements.
    What I'm trying to do , is change the sql at run time based on some condition.
    For example ,
    consider the following query :
    select col1,col2 from table t where t.col3 > 1
    At run time , based on some condition , I need to add one more and condition.
    i.e. select col1,col2 from table t where t.col3 > 1 and t.col4 < 10.
    This MAY not address your issue but if you are trying to add "optional" parameters
    you may try including ALL the possible parameters in the SQL but send in null
    for those params that you don't want to filter on in any particular case. Then,
    if you word your query
    as follows:
    select col1, col2 from table t where t.col3 > 1 and (t.col4 = {col4param} or
    {col4param} is null) and (t.col5 = {col5param} or {col5param} is null) ...
    you will get "dynamic" filters. In other words, col4 and col5 will only be
    filtered if you send in non-null parameters for those arguments.
    I have not tried this in a WL Workshop database control but I've used
    this strategy dozens of times in stored procedures or jdbc prepared statements.
    Good luck,
    Dan

  • Using activex control in forms 6i(OWC11.Spreadsheet.11 control)

    Hi all,
    I want to use activex control OWC11.Spreadsheet.11 in forms6i
    does any one used this component in form6i ?
    any help/suggestions would appreciated

    when u load activex (spreedsheet) the corresponting menu also u can see when u run through which also you can set the attribute values
    im also check the same it is working
    sorry i saw it on design time
    kansih
    Edited by: Kanish on Apr 28, 2009 2:54 AM

  • Using activex control in forms 6i

    hi all,
    I want to use activex control in my form. (e.g Spreadsheet.11) . how to set the cell property (value,colour,border etc..)
    i have created activex control in form and imported ole libraries, run time i am able to see the control .Ii want to set cell properties . any suggestion/help/code greatly appreciated

    when u load activex (spreedsheet) the corresponting menu also u can see when u run through which also you can set the attribute values
    im also check the same it is working
    sorry i saw it on design time
    kansih
    Edited by: Kanish on Apr 28, 2009 2:54 AM

  • Using ActiveX control

    I want to use ActiveX control in my form. I also want to know how i can create word or excel objects and use there functions.

    when u load activex (spreedsheet) the corresponting menu also u can see when u run through which also you can set the attribute values
    im also check the same it is working
    sorry i saw it on design time
    kansih
    Edited by: Kanish on Apr 28, 2009 2:54 AM

  • Using ActiveX controls in GUI application, which uses TestStand API

    When using ActiveX controls in TestStand Operator Interface GUI,
    CVI reports User Interface Library error no.-143:
    "ActiveX control Error" on attempt to load panel, which contains ActiveX controls.
    The same code, which takes care of user interface, but not references
    TestStand ActiveX API (i.e. not creates TS Engine), works properly.
    What's wrong?

    Hello again Misha,
    Sorry about my previous answer, I overlooked the fact that you were saying this error was caused by placing ActiveX controls in your Operator Interface (OI) GUI (as my example shows I thought the problem was with GUIs displayed from step code modules).
    Nevertheless, the problem is still being caused by the same issue, and is solved in a similar fashion. The source for the CVI OI initializes the TestStand engine before it loads/displays the UI panels. The calls to initialize the engine seem to be CoInitializing the main GUI thread as multithreaded apartment (MTA) mode whereas you will need it to be single threaded apartment (STA) mode in order for the ActiveX control container to work properly. The TestStand engine is compatible with either modes, but only one can be in place at a given time. If we CoInitialize the OI's main GUI thread as STA this will solve the problem (the subsequent attempts of setting it to MTA will fail, but again this is ok since the engine is compatible with STA).
    In order to perform this functionality you will need to put a call to CoInitializeEx in the main function of the CVI OI source (this will also require that you #include the "windows.h" file at the top of the source also). Here is what the main function in your main.c file for the CVI OI will look like once you have done this:
    int main(int argc, char **argv)
    int retval = -1;
    sArgc = argc;
    sArgv = argv;
    if(InitCVIRTE(0, argv, 0) == 0) /* Initialize CVI libraries */
    goto Done; /* out of memory */
    // Intialize main GUI thread as STA to prevent other attempt to make it
    // MTA, which will not allow ActiveX controls to be used.
    CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
    /* initialize the test engine */
    if(!InitEngine())
    goto Done;
    if(!InitErrorDialogStrings())
    goto Done;
    if(!InStandaloneExecutable() && !DisplayRunningInEnvironmentWarning())
    goto Done; // get out now
    if(!ProcessPreLoginCmdlineArgs())
    goto Done;
    if(!CfgFile_Load())
    goto Done;
    if(!CfgFile_RestoreOptionSettings())
    goto Done;
    if(LoadGUIPanels() < 0)
    goto Done;
    if(!InitFileQuickList())
    goto Done;
    /* set initial gui state */
    if(!InitGUI())
    goto Done;
    RunUserInterface();
    retval = 0; /* normal exist status */
    Done:
    /* cleanup */
    SeqFileList_DeleteAllSequenceFileRecords();
    ExeList_DeleteAllRecords();
    IconList_DeleteIconList();
    SaveAndCleanupFileQuickList();
    CfgFile_SaveOptionSettings();
    CfgFile_WriteAndCleanupForExit();
    AdaptList_DeleteAdapterList();
    DestroyToolMenus();
    CloseEngine();
    FreeErrorDialogStrings();
    return retval;
    Note: Remember to #include "windows.h" at the very top of the main.c file and to include ole32.lib in your project file list in order to link in the definition for CoInitializeEx.
    Jason F.
    Applications Engineer
    National Instruments
    www.ni.com/ask

  • How does labVIEW use ActiveX controls?

    How does labVIEW use activeX controls?
    I recently wrote an activeX control in VB and noticed that it would not work if the control was set so that its properties could not be set in ambient mode. This may suggest that labVIEW uses some activeX controls only in ambient mode.
    Is this the case or are there more complexities?

    Dan,
    Which version of LabVIEW do you have?
    As per the KnowledgeBase bellow, in versions of LabVIEW prior to 5.1 you would get errors accessing the ambient properties.
    ActiveX Controls in LabVIEW 5.0.1 Containers Cannot Access Ambient Property
    Do your controls use the Ambient.UserMode to determine when the control is being used in a development environment? When embedding ActiveX controls into a container on the front panel, by default, the ActiveX control generates and responds to events, i.e. it is running, even when LabVIEW is in edit mode.
    Right-click an ActiveX container and select Advanced»Design Mode from the shortcut menu to display the container
    in design mode while you edit the VI. In design mode, events are not generated and event procedures do not run. The default mode is run mode, where you interact with the object as a user would.
    Information can be found in the LabVIEW help files
    Zvezdana S.

  • Unable to print crystal report over web using ActiveX Control

    Post Author: jimmyp
    CA Forum: General
    We have a problem with printing crystal report over web using ActiveX Control.  When clicking print button, it only shows a blank dialog web crystal viewer page without any error.  The page just simply hangs.  We installed the PrintControl DLL and enable all the security setting for ActiveX Control for IE.  It still does not print.  Does anyone know why?  
    Environment.
    Bundle Crystal Report v10
    Asp.net 2.0
    IE 6.0 or higher.
    Appreciate for your help.
    Jimmy

    Post Author: Ian Kulmatycki
    CA Forum: General
    A team member here found this, I haven't read it, I'm not sure if our problems are related to this, but hopefully it helps someone:
    -ian
    When Secure Sockets Layer (SSL) is enabled, using the ActiveX control to print reports from a Crystal 10 DHTML viewer results in the following error message:
    "A communication error occurred, printing will be stopped."
    How can this error message be resolved?
    Resolution
    This is a known issue with Crystal Reports 10 and Crystal Enterprise 10 viewers and has been tracked. The Track ID is ADAPT00282199.
    This error occurs due to the receiving application performing a case-sensitive check for the HTTPS request header value "ON". When a sender application sends the value as "on" in lower case, the error occurs. The update below changes the receiving application to be case-insensitive.
    Hot Fixes or Service Packs address this issue as indicated below. With the updates, this issue is resolved.
    Unless indicated otherwise, Weekly Hot Fix updates from our FTP site have only been tested with English versions of products.
    For Crystal Reports 10 and Crystal Enterprise 10, the update for this issue is included in the Crystal 10 Viewers Weekly Hot Fix (WHF). This is available in English only at the following location:
    ftp://ftp.crystaldecisions.com/outgoing/EHF/viewers10win_en.zip
    This issue is addressed in the following components (and later versions):
    PageObjectModel.dll, version 10.0.5.785, dated 8/25/2004
    ReportRenderer.dll, version 10.0.5.785, dated 8/25/2004
    WebReporting.dll, version 10.0.5.785, dated 8/25/2004

  • Can you use multiple plugins on one piece of media?

    can you use multiple plugins on one piece of media?
    ...so for example have one plugin for a UI control bar, another for tracking, and another for advertising?
    If this is possible how? What types of plugin would each plugin be and what sort of media element would be required?
    Or is this not the correct approach? If not what would the correct approach be?
    Thanks in advance for support.

    I have got this plugin to set it's proxiedElement.
    To do so, I needed to follow David_RealEyes advice too.
    But I still can not acheive what I set out to find out, all I was trying to do was trace the current time of the videoElement, to begin to understand how plugins work. Can anyone advise please? Thanks in advance for support.
    I thought to acheive this I would just need to add  a listener for like this:
    dispatcher.addEventListener(TimeEvent.CURRENT_TIME_CHANGE,  onTimeChange);
    Then write the function like this:      
    private function onTimeChange(e:TimeEvent):void
                 trace('**********onTimeChange: '+ e.time)
    ...But this doesn't work.
    What am I doing wrong?
    Here's the class now for the TraceListenerProxyElement
    package
        import org.osmf.elements.*;
        import org.osmf.events.*;
        import org.osmf.media.*;
        import org.osmf.metadata.*;
        import org.osmf.traits.*;
        public class TraceListenerProxyElement extends ProxyElement
            public function TraceListenerProxyElement(wrappedElement:MediaElement)
                trace('TraceListenerProxyElement')
                super(wrappedElement);
            // Overrides
            override public function set proxiedElement(value:MediaElement):void
                trace('override set proxy')
                trace('value: ' + value)
                if(value)
                   super.proxiedElement = value;
                   trace('proxied element set')
                   enableListeners()
                super.proxiedElement = value;
                trace('proxied el: ' + proxiedElement)
            private function enableListeners():void
                trace('enableListeners')
                dispatcher = new TraitEventDispatcher();
                dispatcher.media = proxiedElement;
                dispatcher.addEventListener(AudioEvent.MUTED_CHANGE, processMutedChange);
                dispatcher.addEventListener(AudioEvent.PAN_CHANGE, processPanChange);
                dispatcher.addEventListener(AudioEvent.VOLUME_CHANGE, processVolumeChange);
                dispatcher.addEventListener(BufferEvent.BUFFER_TIME_CHANGE, processBufferTimeChange);
                dispatcher.addEventListener(BufferEvent.BUFFERING_CHANGE, processBufferingChange);
                dispatcher.addEventListener(DisplayObjectEvent.DISPLAY_OBJECT_CHANGE, processDisplayObjectChange);
                dispatcher.addEventListener(DisplayObjectEvent.MEDIA_SIZE_CHANGE, processMediaSizeChange);
                dispatcher.addEventListener(DRMEvent.DRM_STATE_CHANGE, processDRMStateChange);
                dispatcher.addEventListener(DynamicStreamEvent.AUTO_SWITCH_CHANGE, processAutoSwitchChange);
                dispatcher.addEventListener(DynamicStreamEvent.NUM_DYNAMIC_STREAMS_CHANGE, processNumDynamicStreamsChange);
                dispatcher.addEventListener(DynamicStreamEvent.SWITCHING_CHANGE, processSwitchingChange);
                dispatcher.addEventListener(LoadEvent.BYTES_TOTAL_CHANGE, processBytesTotalChange);
                dispatcher.addEventListener(LoadEvent.LOAD_STATE_CHANGE, processLoadStateChange); 
                dispatcher.addEventListener(PlayEvent.CAN_PAUSE_CHANGE, processCanPauseChange);
                dispatcher.addEventListener(PlayEvent.PLAY_STATE_CHANGE, processPlayStateChange);
                dispatcher.addEventListener(SeekEvent.SEEKING_CHANGE, processSeekingChange);
                dispatcher.addEventListener(TimeEvent.COMPLETE, processComplete);
                dispatcher.addEventListener(TimeEvent.DURATION_CHANGE, processDurationChange);
                dispatcher.addEventListener(TimeEvent.CURRENT_TIME_CHANGE, onTimeChange);
                proxiedElement.addEventListener(MediaElementEvent.TRAIT_ADD, processTraitAdd);
                proxiedElement.addEventListener(MediaElementEvent.TRAIT_REMOVE, processTraitRemove);
            private function onTimeChange(e:TimeEvent):void
                trace('**********onTimeChange: '+ e.time)
            private function processAutoSwitchChange(event:DynamicStreamEvent):void
                trace("autoSwitchChange", event.autoSwitch);
            private function processBufferingChange(event:BufferEvent):void
                trace("bufferingChange", event.buffering);
            private function processBufferTimeChange(event:BufferEvent):void
                trace("bufferTimeChange", event.bufferTime);
            private function processComplete(event:TimeEvent):void
                trace("complete");
            private function processCanPauseChange(event:PlayEvent):void
                trace("canPauseChange", event.canPause);
            private function processDisplayObjectChange(event:DisplayObjectEvent):void
                trace("displayObjectChange");
            private function processDurationChange(event:TimeEvent):void
                trace("durationChange", event.time);
            private function processLoadStateChange(event:LoadEvent):void
                trace("loadStateChange", event.loadState);
            private function processBytesTotalChange(event:LoadEvent):void
                trace("bytesTotalChange", event.bytes);
            private function processMediaSizeChange(event:DisplayObjectEvent):void
                trace("mediaSizeChange", event.newWidth, event.newHeight);
            private function processMutedChange(event:AudioEvent):void
                trace("mutedChange", event.muted);
            private function processNumDynamicStreamsChange(event:DynamicStreamEvent):void
                trace("numDynamicStreamsChange");
            private function processPanChange(event:AudioEvent):void
                trace("panChange", event.pan);
            private function processPlayStateChange(event:PlayEvent):void
                trace("playStateChange", event.playState);
            private function processSeekingChange(event:SeekEvent):void
                trace("seekingChange", event.seeking, event.time);
            private function processSwitchingChange(event:DynamicStreamEvent):void
                trace("switchingChange", event.switching);
            private function processVolumeChange(event:AudioEvent):void
                trace("volumeChange", event.volume);
            private function processDRMStateChange(event:DRMEvent):void
                trace("drmStateChange", event.drmState);
            private function processTraitAdd(event:MediaElementEvent):void
                trace("Trait Add: " + event.traitType);
            private function processTraitRemove(event:MediaElementEvent):void
                trace("Trait Remove: " + event.traitType);
            private var dispatcher:TraitEventDispatcher;

Maybe you are looking for

  • How can I use Spark and Mx Components in a NativeWindow?

    Hi, First of all, please, excuse my english... I'll try to express in the best way I can... I'm working in a AIR application, with Flash, Flex Builder y Action Script 3. I'm creating a new interface, and the main class extends from NativeWindow. The

  • After waking my comp. why does it restart

    it doesnt realy restart but the displays shut off and the power clicks and the drives spin like a restart, whats going on? this is when i have put the comp to sleep and then the next day or later that day i go to use it.

  • Syncing photos to iPad

    Having updated iTunes on my PC I can no longer sync  my iPad2. Message " A required iTunes component  is not installed. Please reinstall iTunes (-42404)" Reinstalling has not changed the position. iTunes will play music but it will not move photos fr

  • Ipad connection with vga projector

    i need to connect the ipad with retina display to vga projector. I had the accesories from apple. The projector does not find the ipad.

  • User Defined Module Processing

    Could some one send me the User Defined Module Processing Step By Step guide to [email protected] Thanks for your help.