Skip to Content

Using windows active-x controls ?

Is it possible to use an active-x control (server side ocx file) in BSP pages. In a similar way that they are used in asp

i.e implement something like

<%

set Posi = Server.CreateObject("WINPOSX.WinPOSXCtrl.1")

Posi.ClearData()

%>

or make use of such components via ABAP code ?

I'm looking into porting as MS asp web into bsp and this particular control is used to authenticate credit card transactions.

Any feedback on this is much appreciated.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Apr 29, 2004 at 02:19 PM

    In javascript yes (WAS is javascript friendly)

    per example :

    <script language="JavaScript">

    fExcel = function()

    {

    var xls = new ActiveXObject("Excel.Application");

    xls.visible = true;

    var newBook = xls.Workbooks.Add;

    newBook.Worksheets.Add;

    newBook.Worksheets(1).Activate;

    xls.ActiveWorkBook.ActiveSheet.PageSetup.Orientation = 2;

    xls.ActiveWorkBook.ActiveSheet.PageSetup.PaperSize = 5;

    newBook.Worksheets(1).Cells(1,1).value="<%=hildetext%>";

    newBook.Worksheets(1).Cells(2,1).value="First Column, Second Cell";

    newBook.Worksheets(1).Cells(1,2).value="Second Column, First Cell";

    newBook.Worksheets(1).Cells(2,2).value="Second Column, Second Cell";

    newBook.Worksheets(1).Name="My First WorkSheet";

    }

    </script>

    </head>

    <body>

    <form name="MyForm" id="MyForm">

    <button onClick="fExcel();">Excel</button>

    </form>

    </body>

    Add comment
    10|10000 characters needed characters exceeded

    • Ok I did not think of that possibility,

      However my problem is that I have to run this Active-X server side. I belive this wil run on the client machine.

      I'm currently looking into ways to implement this as a rfc-server app using librfc32.dll

  • avatar image
    Former Member
    May 03, 2004 at 02:50 PM

    I thinks that run an Active-X server side is alway a bad solution... So investigate an other way 😉

    Add comment
    10|10000 characters needed characters exceeded