Can't create object types in forms 10

Hello,
I am trying to use object types in forms 10.
I have already created successfully two object types and also corresponding object views.
With one object type A everything works fine in form. But with the other object type B it doesn't.
I am calling the constructor of object B and after the constructor finshed, forms says that there is a numeric or value error.
Well, by nbow I have reduced attributes from object B so that they are identical to object A (which works). But still get the same error or if I use a different constructor I get NULL as a return value. I tested the constructors with test script in the database directly and viola - the constructor are working fine.
Only if I use the constructors in forms environment they fail.
Any ideas why this might happen?
Thank you
Matthias
Well, I fear to use the object types in my next project cause if I run into trouble if the object types are so easy with less code, what else might happen if they are filled up with much more code?

Hello again,
I have tried again and still get the exception.
Now I provide the code. Perhaps someone can see, why this exceptioon occurs.
In the database I coded the following:
create or replace type GenericObject as object
-- Attributes
iVersion VARCHAR2(8),
-- Member functions and procedures
MEMBER FUNCTION toString(SELF IN OUT NOCOPY GenericObject) RETURN VARCHAR2,
FINAL MEMBER FUNCTION toString001(SELF IN OUT NOCOPY GenericObject) RETURN VARCHAR2,
NOT INSTANTIABLE MEMBER PROCEDURE log(pLogger IN OUT MyLogger)
) NOT INSTANTIABLE NOT FINAL
create or replace type body GenericObject is
-- Member procedures and functions
MEMBER FUNCTION toString(SELF IN OUT NOCOPY GenericObject) RETURN VARCHAR2 IS
BEGIN
RETURN SELF.toString001();
END;
FINAL MEMBER FUNCTION toString001(SELF IN OUT NOCOPY GenericObject) RETURN VARCHAR2 IS
BEGIN
RETURN 'GenericObject(' || SELF.iVersion || ')';
END;
end;
create or replace type MyTestA UNDER GenericObject
-- Attributes
iPk VARCHAR2(16),
iName VARCHAR2(100),
iDCN NUMBER,
-- constructor
CONSTRUCTOR FUNCTION MyTestA(pName VARCHAR2, pDummy INTEGER) RETURN SELF AS RESULT,
CONSTRUCTOR FUNCTION MyTestA(pPk VARCHAR2) RETURN SELF AS RESULT,
STATIC FUNCTION mycreate(pName VARCHAR2) RETURN MyTestA,
-- Member functions and procedures
OVERRIDING MEMBER FUNCTION toString(SELF IN OUT NOCOPY MyTestA) RETURN VARCHAR2,
FINAL MEMBER FUNCTION toString002(SELF IN OUT NOCOPY MyTestA) RETURN VARCHAR2,
OVERRIDING MEMBER PROCEDURE log(SELF IN OUT NOCOPY MyTestA, pLogger IN OUT MyLogger)
) NOT FINAL
create or replace type body MyTestA is
-- constructors
CONSTRUCTOR FUNCTION MyTestA(pName VARCHAR2, pDummy INTEGER) RETURN SELF AS RESULT IS
BEGIN
SELF.iVersion := '1.1';
SELF.iPk := 1;
SELF.iName := pName;
SELF.iDCN := 1;
RETURN;
END;
CONSTRUCTOR FUNCTION MyTestA(pPk VARCHAR2) RETURN SELF AS RESULT IS
BEGIN
SELECT VALUE(o) INTO SELF FROM v_testa o WHERE o.ipk = pPk;
RETURN;
END;
STATIC FUNCTION mycreate(pName VARCHAR2) RETURN MyTestA IS
BEGIN
RETURN MyTestA(pName, 1);
END;
-- Member procedures and functions
OVERRIDING MEMBER FUNCTION toString(SELF IN OUT NOCOPY MyTestA) RETURN VARCHAR2 IS
BEGIN
RETURN toString002();
END;
FINAL MEMBER FUNCTION toString002(SELF IN OUT NOCOPY MyTestA) RETURN VARCHAR2 IS
lvText VARCHAR2(1000);
BEGIN
lvText := SELF.toString001();
RETURN 'MyTestA(' || iPk || ', ' || iName || ', ' || 'lvHersteller.toString()' || ', ' || lvText || ')';
END;
OVERRIDING MEMBER PROCEDURE log(SELF IN OUT NOCOPY MyTestA, pLogger IN OUT MyLogger) IS
BEGIN
pLogger.log(toString());
END;
end;
CREATE OR REPLACE VIEW v_testa OF MyTesta
WITH OBJECT IDENTIFIER (iPk) AS
SELECT
'1.0' iVersion
,g.pk iPk, g.NAME iName, g.ora_rowscn iDCN FROM o_geraete g
DROP TABLE o_geraete;
CREATE TABLE
o_geraete
pk VARCHAR2(16)
, name VARCHAR2(100)
, hersteller_FK VARCHAR2(16)
, zaehlernummer VARCHAR2(20)
, dummy VARCHAR2(10)
INSERT INTO o_geraete
VALUES(
'100', 'Stromzähler', '1', 'AB-56', 'dumb'
INSERT INTO o_geraete
VALUES(
'200', 'Wasserzähler', '2', 'WS-09', 'dumb'
In forms I created a form from the view and coded into the on-insert-trigger:
declare
     lvtest mytesta;
begin
     message('1');
     lvtest := new mytesta(:blk_testa.iname, 1);
     message('2');
     message('3' || lvtest.tostring());
exception
     when others then
          message('Exception: ' || sqlerrm);
end;
And in that forms block I got the exception.
Perhaps someone has ANY idea...
Thanx a lot
Matthias
Message was edited by:
user522343
Message was edited by:
user522343

Similar Messages

  • Creating object type u0093no objectu0094

    We have created No objcet table SBO will create only code and name fields but create document table SBO will create DocEntry and also the Extra fields that will help  to link to other documents.
    Above things  that  we have clear idea
    Could u tell me  creating object type “no object”  can we insert the data……..??
    Or its compulsory  to using  UDO?

    using  .srf   is it possible  ???   i have sending u code 
    error form bad datasource.. form Unique id 'MPPeriod',item unique id ' cmbppt'
    but we check  all unique id   that is correct
    Public Class payperiod
        Private WithEvents SBO_Application As SAPbouiCOM.Application
        Dim AddStarted As Boolean
        Dim RedFlag As Boolean
        Private oform As SAPbouiCOM.Form
        Private oCodetext As SAPbouiCOM.EditText
        Private noteedittext As SAPbouiCOM.EditText
        Private daystext As SAPbouiCOM.EditText
        Private worktext As SAPbouiCOM.EditText
        Private starD As SAPbouiCOM.EditText
        Private endD As SAPbouiCOM.EditText
        Private Sub SetApplication()
            AddStarted = False
            RedFlag = False
            '// Use an SboGuiApi object to establish connection
            '// with the SAP Business One application and return an
            '// initialized application object
            Dim SboGuiApi As SAPbouiCOM.SboGuiApi
            Dim sConnectionString As String
            SboGuiApi = New SAPbouiCOM.SboGuiApi
            '// by following the steps specified above, the following
            '// statement should be sufficient for either development or run mode
            sConnectionString = Environment.GetCommandLineArgs.GetValue(1)
            '// connect to a running SBO Application
            SboGuiApi.Connect(sConnectionString)
            '// get an initialized application object
            SBO_Application = SboGuiApi.GetApplication()
        End Sub
        Public Sub New()
            MyBase.New()
            SetApplication()
            addmenuitems()
        End Sub
        Private Sub DrawForm()
            Dim oitem As SAPbouiCOM.Item
            Dim oCombopptype As SAPbouiCOM.ComboBox
            Try
                LoadFromXML("PayPeriodMaster.srf")
            Catch ex As Exception
                MessageBox.Show(ex.Message)
            End Try
            oform = SBO_Application.Forms.Item("MPPeriod")
                       '''''''''combo for pay type
            oitem = oform.Items.Item("cmbppt")
            oCombopptype = oitem.Specific
            oCombopptype.ValidValues.Add(CStr(3), "Employee")
            ' oCombopptype.ValidValues.Add(CStr(SAPbouiCOM.BoStatusBarMessageType.smt_Success), "Labour")
            oCombopptype.ValidValues.Add(CStr(4), "Labour")
            ''''''' combo for code
            oitem = oform.Items.Item("txtcode")
            oCodetext = oitem.Specific
            '''''''' startdate
            oitem = oform.Items.Item("txtSDate")
            starD = oitem.Specific
            ''''''''''end date
            oitem = oform.Items.Item("txtEDate")
            endD = oitem.Specific
            ''''''''''days in period
            oitem = oform.Items.Item("txtDPrd")
            daystext = oitem.Specific
            '''''''''''' working days
            oitem = oform.Items.Item("txtWDays")
            worktext = oitem.Specific
            ''''''' notes''''''''''''
            oitem = oform.Items.Item("txtNotes")
            noteedittext = oitem.Specific
        End Sub
        Private Sub addmenuitems()
            Dim oMenus As SAPbouiCOM.Menus    ' the menus collection
            Dim oMenuitem As SAPbouiCOM.MenuItem ' the new item
            'get the  menus collection from the application
            oMenus = SBO_Application.Menus
            Dim ocreationPackage As SAPbouiCOM.MenuCreationParams
            ocreationPackage = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_MenuCreationParams)
            oMenuitem = SBO_Application.Menus.Item("2048") 'sales menu id
            oMenus = oMenuitem.SubMenus
            ocreationPackage.Type = SAPbouiCOM.BoMenuType.mt_STRING
            ocreationPackage.UniqueID = "mnu1"
            ocreationPackage.String = "Payperiod"
            ocreationPackage.Enabled = True
            ocreationPackage.Position = 15
            Try
                ' if the menu already exist thus code will fail
                oMenus.AddEx(ocreationPackage)
            Catch ex As Exception ' menu already exist
                MessageBox.Show("menu already exist")
            End Try
        End Sub
        Private Sub SBO_Application_MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.MenuEvent
            If (pVal.MenuUID = "mnu1") And (pVal.BeforeAction = False) Then
                Try
                    Dim f As SAPbouiCOM.Form
                    f = SBO_Application.Forms.Item("MPPeriod")
                    f.Select()
                Catch ex As Exception
                    DrawForm()
                End Try
            End If
        End Sub
        Private Sub SBO_Application_StatusBarEvent(ByVal Text As String, ByVal MessageType As SAPbouiCOM.BoStatusBarMessageType) Handles SBO_Application.StatusBarEvent
            If MessageType = SAPbouiCOM.BoStatusBarMessageType.smt_Error And AddStarted = True Then
                RedFlag = True
            End If
        End Sub
        Private Sub LoadFromXML(ByRef FileName As String)
            Dim oXmlDoc As Xml.XmlDocument
            oXmlDoc = New Xml.XmlDocument
            '// load the content of the XML File
            Dim sPath As String
            sPath = IO.Directory.GetParent(Application.StartupPath).ToString
            oXmlDoc.Load(sPath & "\" & FileName)
            '// load the form to the SBO application in one batch
            SBO_Application.LoadBatchActions(oXmlDoc.InnerXml)
        End Sub
        Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
            Dim oDocRec As SAPbobsCOM.Recordset
            Dim f As SAPbouiCOM.Form
            Dim s As String
            ' Events of the Blanket Agreement form
            If (FormUID = "MPPeriod") Then
                If (pVal.Before_Action = True) Then
                    If pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED And pVal.ItemUID = "1" Then
                        Dim objRecser As SAPbobsCOM.Recordset
                        objRecser = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                        ' SBO_Application.MessageBox("hi")
                        ' objRecser.DoQuery("INSERT INTO [@MastPayPeriod]( Code,Name,U_PayPeriodTypeCode, U_PayPeriodCode, U_StartDate, U_EndDate, U_DaysInPeriod, U_WorkingDays, U_Notes) VALUES (1,1,'" & oform.Items.Item("cmbppt").Specific.Value & "','" & oform.Items.Item("txtCode").Specific.Value & "',& '"oform.Items.Item("cmbSDate").Specific.Value & "','"& oform.Items.Item("cmbEDate").Specific.Value & "','" & oform.Items.Item("txtDPrd").Specific.Value & "','" & oform.Items.Item("txtWDays").Specific.Value & "','" & oform.Items.Item("txtNotes").Specific.Value & "')")
                        objRecser.DoQuery("INSERT INTO [@MastPayPeriod](Code,Name,U_PayPeriodTypeCode, U_PayPeriodCode, U_StartDate, U_EndDate, U_DaysInPeriod, U_WorkingDays, U_Notes) VALUES (1,1,'" & oform.Items.Item("cmbppt").Specific.Value & "','" & oform.Items.Item("cmbCode").Specific.Value & "','" & oform.Items.Item("txtSDate").Specific.Value & "','" & oform.Items.Item("txtEDate").Specific.Value & "','" & oform.Items.Item("txtDPrd").Specific.Value & "','" & oform.Items.Item("txtWDays").Specific.Value & "','" & oform.Items.Item("txtNotes").Specific.Value & "')")
                    End If
                End If
                If (pVal.Before_Action = False) Then
                    If (pVal.ItemUID = "2") And (pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED) Then
                    End If
                End If
            End If
        End Sub
        'Private Sub SaveAsXML(ByRef Form As SAPbouiCOM.Form)
        '    Dim oXmlDoc As Xml.XmlDocument
        '    Dim sXmlString As String
        '    oXmlDoc = New Xml.XmlDocument
        '    // get the form as an XML string
        '    sXmlString = Form.GetAsXML
        '    // load the form's XML string to the XML document object
        '    oXmlDoc.LoadXml(sXmlString)
        '    Dim sPath As String
        '    sPath = IO.Directory.GetParent(Application.StartupPath).ToString
        '    // save the XML Document
        '    oXmlDoc.Save((sPath & "\PayPeriodMaster.xml"))
        'End Sub
    End Class

  • Create "Object" Type based on columns of a table

    Hi Experts
    is it possible to create an Object Type based on columns of a table?
    for example the syntax for creation of type is
    CREATE OR REPLACE TYPE temp_t
    AS OBJECT (ID number, code number)
    can we create a type that is based on columns of an existing table? so that we donot have to write down all the column names in each type as i have to create types based on 100 and above tables :-s
    Please help me out here!
    Best Regards

    You cannot do that Zia, check below code:
    SQL> create or replace type temp_t as object(object_name all_objects.object_name%TYPE);
      2  /
    Warning: Type created with compilation errors.
    SQL> sho err
    Errors for TYPE TEMP_T:
    LINE/COL ERROR
    0/0      PL/SQL: Compilation unit analysis terminated
    1/35     PLS-00201: identifier 'ALL_OBJECTS.OBJECT_NAME' must be declared

  • ActiveX Component Can't Create Object

    Hi Frds,
    Getting this error when making a chances in change query global defination Error : Runtime Error '457': This key is Already is already assosiated with an element of this collection..When i was clik on then again i m getting message like Runtime Error ''429': ActiveX Component Can't Create Object.
    What is the excat prblem can any one let me know...
    Thanks,
    ALi

    Hi,
    For Runtime Error '457'-Pls Check SAP Note - 517232
    ForRuntime Error '429' You can refer SAP Note: 542933
    Pls chk this link also;
    https://websmp207.sap-ag.de/~form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=542933&_NLANG=E
    Hope this helps
    Regards
    CSM Reddy

  • Can we create objects with interface

    can we create objects with interface,if yes then where we implement the
    methods,can we type cast any object with inerface kind of object,if yes what kind
    of objects we can type cast

    can we create objects with interface,if yes then where we implement the
    methods
    Objects are created with classes, not interfaces, which are abstract.
    can we type cast any object with inerface kind of object,if yes what kind
    of objects we can type cast
    Objects may be cast to interfaces, but only if an object's class or one of its superclasses actually implements the interface.

  • Internetexplorer.application activex component can't create object

    I am getting the infamous 429 error with a new image of Windows 2003 Server.
    I am sure this is an issue with the Windows 2003 Server image, so I have to figure out a work around to get this  to work.  No updates to the image are possible.  I have been searching for a solution for a couple of days and nothing I have
    tried has worked so any assistance you can provide is most welcome.
    This script works just fine on my Windows 7 machine and used to work just fine on the previous image of Windows 2003 Server I had which is no longer available:
    Err.Number: 429
    Err.Description: "ActiveX component can't create object"
    Here is the code:
    On Error Resume Next
    Set fsoObj = CreateObject("Scripting.FileSystemObject")
    Dim objIE
    Err.Clear
    Set objIE = CreateObject( "InternetExplorer.Application" )
    If ( Err.Number <> 0 ) Then
       WScript.Echo "Number (" & Err.Number & ")" & vbCrLf _
                  & "Description [" & Err.Description & "]"
       WScript.Quit
    End If
    objIE.Navigate "about:blank"
    objIE.Width          = 200
    objIE.Height         = 300
    Do Until objIE.ReadyState = 4
       WScript.Sleep 200
    Loop
    Do While objIE.Busy
       WScript.Sleep 200
    Loop
    bodyStr = javaScriptStr & "<table align='center'><tr><td align='center' colspan='2'>Click Run or Cancel</td></tr>" _
            & "<tr align='center'>" & vbCrLf _
            & "<td colspan='2'>" & vbCrLf _
            & "<input type='submit' value=' Run ' " & "OnClick='VBScript:OK.Value=1'>" & vbCrLf _
            & " &nbsp; &nbsp; " & vbCrLf _
            & "<input type='submit' value=' Cancel ' " & "OnClick='VBScript:CANCEL.Value=1'>" & vbCrLf _
            & "</td></tr>" & vbCrLf _
            & "</table>" & vbCrLf _
            & "<input type='hidden' id='CANCEL' name='CANCEL' value='0'>" & vbCrLf _
            & "<input type='hidden' id='OK' name='OK' value='0'>"
    objIE.Document.Body.InnerHTML = bodyStr
    objIE.Visible = True
    Do While ( ( objIE.Document.All.CANCEL.Value = 0 ) AND ( objIE.Document.All.OK.Value = 0 ) )
       WScript.Sleep 200
       If Err Then ' user clicked red X (or alt-F4) to close IE window
          objIE.Quit
          Set objIE = Nothing
          logFile.WriteLine Now & " - aborting input!"
       End if
    Loop
    objIE.Quit

    I tested this cleaned up version on WS2003.  It works exactly the same way as it does on Windows 8 and Windows 7.
    Set objIE = CreateObject( "InternetExplorer.Application" )
    objIE.Navigate "about:blank"
    objIE.Width = 200
    objIE.Height = 300
    Do While objIE.Busy
    WScript.Sleep 200
    Loop
    bodyStr = javaScriptStr & "<table align='center'><tr><td align='center' colspan='2'>Click Run or Cancel</td></tr>" _
    & "<tr align='center'>" & vbCrLf _
    & "<td colspan='2'>" & vbCrLf _
    & "<input type='submit' value=' Run ' " & "OnClick='VBScript:OK.Value=1'>" & vbCrLf _
    & " &nbsp; &nbsp; " & vbCrLf _
    & "<input type='submit' value=' Cancel ' " & "OnClick='VBScript:CANCEL.Value=1'>" & vbCrLf _
    & "</td></tr>" & vbCrLf _
    & "</table>" & vbCrLf _
    & "<input type='hidden' id='CANCEL' name='CANCEL' value='0'>" & vbCrLf _
    & "<input type='hidden' id='OK' name='OK' value='0'>"
    objIE.Document.Body.InnerHTML = bodyStr
    objIE.Visible = True
    On Error Resume Next
    Do While ( ( objIE.Document.All.CANCEL.Value = 0 ) AND ( objIE.Document.All.OK.Value = 0 ) )
    If Err Then ' user clicked red X (or alt-F4) to close IE window
    WScript.Echo Now & " - aborting input!"
    WScript.Quit
    End if
    WScript.Sleep 200
    Loop
    WScript.Echo Now & " - EXITING!"
    objIE.Quit
    ¯\_(ツ)_/¯

  • FAILURE (Err):429: CreateObject(Microsoft.BDD.Utility) - ActiveX component can't create object

    working with MDT 2013 & ADK 8.1,
    Windows 8.1 x64 deployment fails in section "State Restore" (Deployment Type: NEWCOMPUTER).
    RUN: regsvr32.exe /s "C:\Users\ADMINI~1\AppData\Local\Temp\Tools\x64\Micrsoft.BDD.Utility.dll"
    "FAILURE (Err):429: CreateObject(Microsoft.BDD.Utility) - ActiveX component can't create object"
    go to "%programdata%\microsoft\windows\start menu\programs\startup" and perform the "Litetouch.lnk" with elevated rights (right click run as administrator), the ts will continue and apply the OS without any error message.
    join to workgroup instead to domain and the installation will perform without any error...
    any help is appreciated.
    thx a lot.
    The error was AD policy related.
    I moved the device to an AD Folder (no policy), deployed the windoows 8 again and moved the box back to the correct ou in TS section PostInstall - Custom Tasks using a ps script.
    I did not figure out which policy.
    Update: moved from W8.1 EVALUATION to offical release solved my problem!

    Which policies are causing this? Do you have anything that limits/modifies the local administrator account? Or restricts the loading of ActiveX?
    Keith Garner - keithga.wordpress.com

  • MDT 2013: ZTI ERROR - Unhandled error returned by ZTIWindowsUpdate: ActiveX component can't create object (429)

    Hi,
    I try to capture a custom image but at the end of the process, I get the following error (see attached image):
    ZTI ERROR - Unhandled error returned by ZTIWindowsUpdate: ActiveX component can't create object (429)
    Could someone help me to solve this please?

    Hi everybody,
    I'm getting this message time to time and I don't know why. I have the ZTIWindowsUpdate.log who says:
    <![LOG[Ready to Opt-In to Microsoft Update: WUA Version: 7.6.7601.18804]LOG]!><time="15:35:07.000+000" date="04-14-2015" component="ZTIWindowsUpdate" context="" type="1" thread="" file="ZTIWindowsUpdate">
    <![LOG[ZTI ERROR - Unhandled error returned by ZTIWindowsUpdate: ActiveX component can't create object (429)]LOG]!><time="15:35:37.000+000" date="04-14-2015" component="ZTIWindowsUpdate" context="" type="3"
    thread="" file="ZTIWindowsUpdate">
    <![LOG[Event 41002 sent: ZTI ERROR - Unhandled error returned by ZTIWindowsUpdate: ActiveX component can't create object (429)]LOG]!><time="15:35:38.000+000" date="04-14-2015" component="ZTIWindowsUpdate" context=""
    type="1" thread="" file="ZTIWindowsUpdate">
    Do we have an explanation for this issue? Or, do you know how to fix that?

  • ActiveX component can't create object: 'MSSOAP.SoapClient30'

    Dear All,
         After updated the portal form 6.0 to 7.0 ,when I bit the web page entry ,the error:"ActiveX component 'scan't create object: 'MSSOAP.SoapClient30' " appear.But in version 6.0 ,it's fine.
    What could be the problem? How to resolve this.
    Regards,
    Richard Lee

    If you want it 
    to continue working after you log off you have to change the COM+ properties 
    of the package to run as a specific user. 
    I recently installed the Evaluation edition of BizTalk Server, but am 
    finding 
    that I need to reinstall the software every time I log off(I am using the 
    same 
    logon throughout). 
    The problem I think is that BizTalk cannot start the XLANG Scheduler COM+ 
    component - If I try to start it manually (in Component Services) I get 
    "Catalog 
    Error: Error Code 80080005 - Server Execution Failed" 
    more info: http://www.programd.com/118_4e0323a255219dd1_1.htm
    If I try to run the XLANG Schedule created in the Tutorial, via 
    ExecuteTutorial.exe, the error message is "...ActiveX Component can't create 
    object. Error: 429 (0x1AD)" 
    BizTalk is unable to run any XLANG Schedule, I also have a Schedule setup 
    which 
    is activated via a File Receive Function. This fails also. 
    The System Log reports the following error every minute (at least!): 
    "The server{bla bla bla}did not register with DCOM within the required 
    timeout" 
    The only solution I have found is to reinstall & even this is not successful 
    every time. 
    Has anyone else seen this problem? Any suggestions? 

  • ActiveX component can't create object:'Photoshop.Application'

    I am running Photoshop CS5.1 on a Windows 7 64-bit system. (Part of CS5.5 Master Collection installation)
    All I am trying to do is run the sample .vbs scripts that come with Photoshop.
    When I double click on any of the sample scripts, the Photoshosp window comes to the front and then after about 10 seconds I get the error:
    ActiveX component can't create object:'Photoshop.Application'
    This happens if I have Photoshop 64-bit or 32-bit running.
    This happens on two different computers running Windows 7.
    I couldn't find any solutions in a Google search.
    Any ideas?
    Thanks in advance.

    I got it working after I installed the x32 bit version of PS on my Windows 7 (64-bit) machine.
    I also selected "Run as Administator" when I launch PS once, and then rebooted. they was necessary to get permission for the type libraries it seems.
    http://screencast.com/t/4bw8XdKu

  • Automation server can't create object when calling a jsp from a button

    Hello,
    I have created the following jsp that allow me to execute an external program that is located on the client side:
    <script language="JavaScript" type="text/javascript">
    <!--
    function execAppli(app)
    var wshShell = new ActiveXObject("WScript.Shell");
    wshShell.Run(app+".exe", 1, true);
    -->
    </script>
    If I call this jsp in a simple html page is works correctly when i call it from a button in apex (3.0) I got the error message Automation server can't create object.
    Any idea ?
    Thanks,
    Claude-Alain

    Hi Claude,
    Just be sure that you really (like really) trust your endusers, because I can see some huge opportunities for exploiting that JavaScript routine you've shown. If you're not taking steps to prevent cross site scripting (search this forum or Google for details on what that is), then it's not beyond the bounds of possibility for someone to do something 'nasty' which would do horrible things to your end users if your executing a program on their client machines without any warning or validation of what that program actually does.
    Sometimes it's best to work backwards from the point of view of....what if you walk into work one morning and find that 400 end users machines have had their hard-drives wiped because the script arbitrarily executes whatever command you pass to it? Then you can perhaps see that what sometimes looks like a good idea might not be such a good idea after all ;)

  • Automation server can't create object SapROTWr.SapROTWrapper Wrapper

    Hi,
    I am trying to create Activex object SapROTWr.SapROTWrapper Wrapper from HTML page, but it returns the error "automation server can't create object"
    it work fine in IE6 with windows XP and SAP GUI 640
    but the error is thrown with windows 7 + IE 8 + SAP GUI 720.
    please help on this.
    Regards
    Ramakrishna Reddy
    Edited by: Ramakrishna Reddy on Nov 5, 2010 12:32 PM

    Hi,
    ActiveX control may not be registered on your machine. It may have been
    removed/cleaned from your machine, but one of its other components in the
    form of an IE Addon is still installed on your machine.
    Try running IE8 in no-Addons mode. Start>(All) Programs>Accessories>System
    Tools>Internet Explorer (no-Addons)
    Regards
    Nagaraju

  • Crystal Report Addon Error : ActiveX Component Can't Create Object

    Hello Experts,
    We are facing an problem when we start the Crystal Report Addon .The error message getting
    displayed is  "CR_Crypto ActiveX Component Can't Create Object".This issue is happening only on the
    server its working fine on the client. We had even unistalled and re-installed the addon in the server but
    still it throws the error when we start the addon.
    Please help us to resolve this issue
    Thanks,
    Vishwanath

    Dear Friend,
                 I had described the problem to our technical support team, and they replied as follows u2013
    They solved the Script related error by several stages.
    They checked the machine for any mal-ware existence by the tool provided by Microsoft (MS Mal-ware remover).
    Then they tried by installing the following patches from Microsoft u2013
    http://support.microsoft.com/kb/949140
    Windows Script 5.7 for Windows XP
    http://www.microsoft.com/downloads/details.aspx?familyid=887fce82-e3f5-4289-a5e3-6cbb818623aa&displaylang=en
    Windows Script 5.6 for Windows Server 2003
    http://www.microsoft.com/downloads/details.aspx?FamilyId=C717D943-7E4B-4622-86EB-95A22B832CAA&displaylang=en
    Windows Script 5.6 for Windows XP and Windows 2000
    The internal matter to this problem was about the following DLL and its version u2013
    C:\WINDOWS\system32
    vbscript.dll
    5.5.0.8820
    Desired
    5.6.0.8820
    Check, if the information helps you.

  • Can I create a fillable pdf form and then export it for client use on my web site?

    Can I create a fillable pdf form and then export it for client use on my web site?  I need clients to be able to fill in the (registration) form on my site then submit it via email.

    [discussion moved to Creating, Editing & Exporting PDFs forum]

  • How can I create a long employment form without making the form widget drag?

    How can I create a long employment form without making the form widget drag?

    Sorry Sachin, I mean that I created a simple form on the page from the widget and started adding fields to it. The more fields I add the slower the delay becomes in creating a new field. Even when I try to select and drag or move an item, there's a huge delay and sometimes the program feezes,  loose what i've done and have ot restart.
    I'm doing an enployment form that has more than 20 fields, at least, and I need to be able to build the fields in separate categories, like Education, Past Employment, etc... quickly without delay issues.
    I can probably send you a snap shot of what I'm talking about if I cna post it or attach it here..?
    ~Andy

Maybe you are looking for

  • Update Error on Adobe Update... CS4 no longer works

    Recently I downloaded the latest adobe update... and now it seems like CS4 is falling apart, mainly photoshop...here are the current problems I am faceing Program |Problem Photoshop Extended CS4| unable to open or create new files due to an error |th

  • Recording Music on Sound blaster Audigy/e

    Any musicians/recorders have advice on getting good recordings using the audigy? Settings, or programs that work well with it, etc. RIght now I'm using acid music. I play mainly bass guitar, but I can't hear the full tone of the instrument as I did o

  • Need Table Control in Selection Screen

    I have a selection screen with some fields. Now, below these fields, I need a table control in which i will have input parameter along with some check boxes so that i can enter data and use the same while executing the report. paste the code for the

  • Restoring my G5 with leopard?

    Hello. My G5 has been running terribly lately and I think I would like to restore it back to factory settings (for the THIRD time in 4 years). The computer came with 10.2 or 10.3, I can't remember which, but I installed leopard on it about 6 months a

  • You cannot import pictures into iPhoto from a CD in latest Mountain Lion OS.

    it says it imports and I see the images but it never copies the images to the master location in the iphoto library.  You need to have the CD in the drive in order to view pictures otherwise it will ask you to locate the picture.  The work around I c