activex

Userform VBA InkPicture input into sheet (specific cell) as image user signature

丶灬走出姿态 提交于 2019-12-24 20:32:07
问题 I'm new to InkPicture but I like to use it for user to put signature into the form. I can't seem to save the signature (inkpicture) to the spreadsheet it just inputs it as 0 into the cell I specify. With UserForm1.InkPicture1.Picture = InkPicture1.Picture End With lrDep = Sheets("Deploy").Range("A" & Rows.Count).End(xlUp).Row Sheets("Deploy").Cells(lrDep + 1, "A").Value = TBox1.Text Sheets("Deploy").Cells(lrDep + 1, "B").Value = TBox2.Text Sheets("Deploy").Cells(lrDep + 1, "C").Value = TBox3

Cannot call RICHTEXT.RichtextCtrl from SQL Server 2008 (on Windows 2008 Server x64)

主宰稳场 提交于 2019-12-24 20:13:52
问题 I want to use the fallowing function in my SQL-Server: CREATE FUNCTION RTF2TXT(@in varchar(8000)) RETURNS varchar(8000) AS BEGIN DECLARE @object int DECLARE @hr int DECLARE @out varchar(8000) -- Create an object that points to the SQL Server EXEC @hr = sp_OACreate 'RICHTEXT.RichtextCtrl', @object OUT EXEC @hr = sp_OASetProperty @object, 'TextRTF', @in EXEC @hr = sp_OAGetProperty @object, 'Text', @out OUT EXEC @hr = sp_OADestroy @object RETURN @out END GO The Problem is, that I always get NULL

How can I read data from COM object (an activex server) in MATLAB?

筅森魡賤 提交于 2019-12-24 20:13:44
问题 I am trying to connect a simulator to the MATLAB. The simulator program exposes a COM object interface. I have connected to the COM object by the following command and can perform most of it methods: h=actxserver(ProgID) But some of its methods need passing of a Variant* type as output. Here is the signature of one of the methods indicated by "invoke" method: ReadOutputImage=Variant(Pointer) ReadOutputImage(handle, int32, int32, `ImageDataTypeConstants, Variant(Pointer))` I have called this

AxShockwaveFlashObjects again

泪湿孤枕 提交于 2019-12-24 17:33:52
问题 I was cheating from a sample program to integrate with Flash. I able to add a reference to ShockwaveFlashObjects.dll to my windows app, but What is 1- AXShockwaveFlashObjects. 2- How to add a reference to it, or I have to create it using some tool? Thanks 回答1: I'm not a Flash expert but I was researching something similar and I might have some information to help you... AxShockwaveFlashObjects is a COM library to allow you to integrate Flash content into your COM (or .NET) application. I'm

AxShockwaveFlashObjects again

我的梦境 提交于 2019-12-24 17:32:39
问题 I was cheating from a sample program to integrate with Flash. I able to add a reference to ShockwaveFlashObjects.dll to my windows app, but What is 1- AXShockwaveFlashObjects. 2- How to add a reference to it, or I have to create it using some tool? Thanks 回答1: I'm not a Flash expert but I was researching something similar and I might have some information to help you... AxShockwaveFlashObjects is a COM library to allow you to integrate Flash content into your COM (or .NET) application. I'm

How to customize date format when creating excel cells through javascript (activexobject)?

三世轮回 提交于 2019-12-24 16:40:51
问题 I'm trying to convert an HTML table to Excel in Javascript using new ActiveXObject("Excel.application") . Bascially I loop through table cells and insert the value to the corresponding cell in excel: //for each table cell oSheet.Cells(x,y).value = cell.innerText; The problem is that when the cell is in date format of 'dd-mm-yyyy' (e.g. 10-09-2008), excel would read as 'mm-dd-yyyy' (i.e. 09 Oct 2008). I tried to specify NumberFormat like: oSheet.Cells(x,y).NumberFormat = 'dd-mm-yyyy'; But, it

How to customize date format when creating excel cells through javascript (activexobject)?

送分小仙女□ 提交于 2019-12-24 16:40:13
问题 I'm trying to convert an HTML table to Excel in Javascript using new ActiveXObject("Excel.application") . Bascially I loop through table cells and insert the value to the corresponding cell in excel: //for each table cell oSheet.Cells(x,y).value = cell.innerText; The problem is that when the cell is in date format of 'dd-mm-yyyy' (e.g. 10-09-2008), excel would read as 'mm-dd-yyyy' (i.e. 09 Oct 2008). I tried to specify NumberFormat like: oSheet.Cells(x,y).NumberFormat = 'dd-mm-yyyy'; But, it

How to execute an executable from Linux with javascript

送分小仙女□ 提交于 2019-12-24 16:01:29
问题 I'm making an application for D-bus in javascript. I need to call an executable from the javascript code and I know that it's possible to do it in Windows like this var activeXObj = new ActiveXObject("Shell.Application"); activeXObj.ShellExecute("C:\\WINDOWS\\NOTEPAD.EXE", "", "", "open", "1"); But...how to do the same in Linux?? Thanks a lot P.S: Is not for a browser =) 回答1: Install node.js (depending on your distro, sudo apt-get install nodejs ) and use the ChildProcess module to execute

Alternative to XRM Javascript calling webservice using ActiveX

眉间皱痕 提交于 2019-12-24 12:39:57
问题 I have a problem on CRM javascript when calling a webservice from browsers other than IE. See my code below for the web service call implementation. function RetrieveMultipleEntity(targetEntity, conditionAttributeName, conditionAttributeValue, targetId, targetAttribute) { // Prepare variables to retrieve the contacts. var authenticationHeader = GenerateAuthenticationHeader(); // Prepare the SOAP message. // var xml = (the SOAP message) var xHReq = new ActiveXObject("Msxml2.XMLHTTP"); xHReq

avoid ActiveX to save a file

戏子无情 提交于 2019-12-24 10:38:55
问题 There is a function that returns an array from a table: GetFilteredData: function() /*==================================================== - returns an array containing filtered data: [rowindex,[value1,value2,value3...]] =====================================================*/ { var row = this.tbl.rows; var filteredData = []; for(var i=0; i<this.validRowsIndex.length; i++) { var rowData, cellData; rowData = [this.validRowsIndex[i],[]]; var cells = tf_Tag(row[this.validRowsIndex[i]],'td'); for