activex

C# MVC Get full file path

北城以北 提交于 2019-12-13 00:49:01
问题 First of all I will state that I digged half of the Internet for this and everywhere I find:"No You cannot it is web browser security". I need this for Intranet webpage in ASP. NET MVC5 + C#. User should be allowed to select file or folder in some kind of dialog. Then when selected I would like to get back the path of slected item [also files or folders on network drives. But instead of mapped path like z:\... I prefer \\Server50\folder\folder2\file.ext] Then I want to send this path to SQL

Unable to add custom properties to an Excel Workbook

﹥>﹥吖頭↗ 提交于 2019-12-12 20:25:32
问题 Excel workbooks have a CustomDocumentProperties collection. This collection is of type DocumentProperties and has an Add method that I'm attempting to call from MATLAB. If I call the invoke method on the collection I see: >> workbook.CustomDocumentProperties.invoke Item = handle Item(handle, Variant, int32) Add = handle Add(handle, string, bool, int32, Variant(Optional)) I assume this means the Add method requires a string, boolean, int32 , and an optional variant, and this matches with the

Internet Explorer behavior as Mozilla Firefox or Chrome

岁酱吖の 提交于 2019-12-12 20:17:38
问题 Is there a solution to get Internet Explorer to behave as Firefox or Chrome? I am looking for a solution that would not use css hacks. I mean maybe some scripts to force change all behavior of IE. Thanks a lot! 回答1: You can have your users download and install Google Chrome Frame, then add this meta tag to your page head per the Chrome Frame developer guide: <meta http-equiv="X-UA-Compatible" content="chrome=1"> Of course, this requires user action. You can't control what browser your users

Error using WebBrowser control inside PowerBuilder app when select an item in <select> tag

ぐ巨炮叔叔 提交于 2019-12-12 19:17:36
问题 I'm using WebBrowser control in a window inside a PowerBuilder 11.5 application. Everything works fine on IE7 and IE8 but the application crashes in IE9 under Windows 7 when you select an item in a tag. In IE7 and IE8 I added my application to registry key FEATURE_USE_WINDOWEDSELECTCONTROL. In IE9 under Windows 7 64bits did the same and if the REG_DWORD value that corresponds to my application is 1, the application crashes. If the value is 0, the application does not crashes but item

Scripting.Filesystemobject filemove, writefile not working from javascript in IE browser (workarounds, doc?)

半腔热情 提交于 2019-12-12 17:32:52
问题 I know it's a huge security hole to use Scripting.Filesystemobject from javascript in the browser. I heard a rumor that MS is locking down this hole in the latest version of Office. This would be bad news for the enterprise web app I am working on, which has a few critical functions which depend on access to Scripting.Filesystem object, like writing out xml files or moving audio files. I have tried but failed to find any 'hard' documentation on this, and while my local dev box exhibits this

Bring spell check window to foreground with JavaScript/JScript in Windows 7

我们两清 提交于 2019-12-12 17:00:56
问题 I have some JScript code (converted from some old VBScript) that starts like this: var Word = new ActiveXObject("Word.Basic"); Word.FileNew(); // opens new Word document Word.Insert(IncorrectText); Word.ToolsSpelling(); // opens spell check behind IE The idea is to utilize the MS Word spell check for browser use, and it works well in XP, but the spell check box opens in the background in Windows 7 / IE 8 (this question tells me that the problem started in Vista and is probably an OS issue,

How to enable 'Insert Activex Control' in Visual Studio 2012 for a Win32 Dialog based application?

无人久伴 提交于 2019-12-12 15:23:53
问题 I am new to ActiveX Controls , though I have some basic background in COM/ATL programming. Steps The project is a simple Win32 project created using the Visual Studio 2012 wizard. I have selected all the default options. The dialog box is created using the resource editor dialog and then selecting new dialog option. Problem In my application I want to host the Internet Explorer (or some other) activex control in a dialog box. But the problem is that when I right click (as suggested by many

Creating an xls or csv file from a Javascript variable

萝らか妹 提交于 2019-12-12 14:55:09
问题 I have an app that uses Javascript to perform some calculations and then plot the data, but I'd like to add the option for the user to be able to actually download the data into a csv or xls file. Is there a way in Javascript (or some other method) to have the user press a button, then it will prompt them for the name of the file to save it as, and it will then create a comma-delimited or excel spreadsheet? Thanks! EDIT: Thanks for all the suggestions everyone. Wish I could mark you all as

Can i use Activex with silverlight4?

穿精又带淫゛_ 提交于 2019-12-12 14:12:30
问题 I need to use a ActiveX control in my silverlight application. After some research i found out a few ways in which a silverlight app can use ActiveX control Use ActiveX control in a webpage along with silverlight plugin and use javascript for interaction between silverlight and activex. Use a webbrowser control in silverlight 4 and load the webpage containing activex in webbrowser control. Is there any other way that can utilized to embed activex control in silverlight app. I read somewhere

where does msscript.ocx gets installed from

跟風遠走 提交于 2019-12-12 13:41:32
问题 I'm using msscript.ocx in my application which is an activex scripting host for windows. Although I want to be able to use the same for XP embedded(XPe) which's highly customizable. 1.I want to know whether on XPe, msscript.ocx can be optionally installed or not? 2.Where does it get installed from, IE? 3.Or is it a windows core component which gets installed during the XPe setup?(I know one can unregister it, but can it be an optional installation) Answering any or all of these questions will