activex

web打印的几种实现方法(转载)

我与影子孤独终老i 提交于 2020-02-29 06:32:10
web打印的几种实现方法(转载) web打印,web打印控件的三种实现方法 做管理系统的时候,打印一直是个棘手的问题,做B/S的系统这个问题就更加突出了!下面举出三种常用的web打印处理方式 1、利用word或者excel来实现web打印(如果不修改ie设置,可以在web服务器端生成xls文件,然后通过 xlBook = xls.Workbooks.Open(remotePath) 获取对象打印 ) 实现过程:先将需要打印的数据导入到word或者excel中,再利用word或者excel的打印功能来实现web打印。 下面以excel为例实现如何打印的过程 将网页中数据导入excel中的方法有很多,这里先介绍一种,利用ActiveX控件的方式,即 Excel.Application, 这个控件是MS为excel提供的编程接口,在很多种编程语言种都可以通过该接口来操纵excel表格。 下面用javascript脚本来实现一个简单的例子。 < script language="javascript"> function ExcelPrint(){ var excelApp;//存放Excel对象 var excelBook;//存放Excel工件簿文件 var excelSheet;//存放Excel活动工作表 try{ excelApp = new ActiveXObject(

Are the Office Web Components broken and dead?

自作多情 提交于 2020-02-23 07:58:21
问题 According to this article on Wikipedia®: "The Pivot Table and Spreadsheet web components do not function on Windows 7." Is this going to be fixed? 回答1: After personally testing the OWC on Windows 7, it does appear broken. 回答2: I totally disagree. I can use OWC in a WEBPAGE quite easily. It works flawlessly on Windows 7. On the other hand, I can't use OWC inside of an Access form because I use Office 2010 64-bit. 来源: https://stackoverflow.com/questions/4402493/are-the-office-web-components

what is the technical difference b/w xmlHttpRequest object and activeX Object of ajax [closed]

陌路散爱 提交于 2020-02-21 07:14:55
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 8 years ago . Please give me answer of this question as early as possible 回答1: ActiveX in general is a Windows feature. Old versions of IE supported the ability to use ActiveX controls inside the browser. However no other

陈伟视频总结第四篇

徘徊边缘 提交于 2020-02-07 06:59:39
控件 Active组件 Lib DLL Com Activx   代码组件 ActiveX DLL ActiveX EXE    控件 内部控件是用户随意使用的 ActiveX控件是需要版权的 如果用ActiveX控件研发别的控件,微软只授权了内部控件   控件添加到窗体之后立刻给控件命名,尽量描述清楚   控件值 所有控件都有一个属性,只需引用控件名而无需使用属性名就可利用这个属性来存储或获取数值,称此属性为控件的值,这是控件的最重要或最常用属性。 控件数组     把同类的控件放在一起可动态加载控件!!! 运行时加载控件数组   有些隐形控件是不可见的,但是控件是代码可运行的 输入焦点的含义 可以用鼠标键盘输入 有的可以有输入焦点,有的没有输入焦点】 定位属性 单位 事件:单击、双击   TextBox属性: Multiline Locked: IMEmode ScrollBars:滚动条 Passwordchar:输入的文本是*号表示,.text= “”输入的还是什么   事件 Change:不只是用户可以更改,也可以代码,避免change事件循环使用   Picturebox属性 Align:是否对齐 Autosize:图片框是否改变大小,图片框不能改变图片的大小 Picture: Image:改变图片大小 LoadPicture()运行时加载图片   Default

Passing integer by reference in python

柔情痞子 提交于 2020-02-04 10:29:13
问题 I'm attempting to use PyQt to talk to an ActiveX COM object in Python. This method works in Python: myobj.dynamicCall('SetAbsMovePos(int, double)', [0, 10]) However, I can't send arguments by reference. From the docs, the method I wish to call is: int GetNumHWUnits (int lHWType, int& plNumUnits) and the basic example code is: QVariantList params = ... int result = object->dynamicCall("GetNumHWUnits(int, int&)", params).toInt(); I presume the equivalent code in Python, using ctypes, should be:

Previewing documents (Word, Excel, PDF, text file, etc) within C# WinForms?

吃可爱长大的小学妹 提交于 2020-02-04 01:06:53
问题 I am developing a C# WinForms application, and I would like to be able to "preview" various document types within it. That is, when a user selects a filename from a list, it shows below, within the same form, a preview of the selected file. It's a lot like they way Outlook allows you to preview a selected message without double-clicking. Is there any way to take just a filename and create a control dynamically within my WinForms application that shows the contents of that file? 回答1: If you

Previewing documents (Word, Excel, PDF, text file, etc) within C# WinForms?

社会主义新天地 提交于 2020-02-04 01:06:32
问题 I am developing a C# WinForms application, and I would like to be able to "preview" various document types within it. That is, when a user selects a filename from a list, it shows below, within the same form, a preview of the selected file. It's a lot like they way Outlook allows you to preview a selected message without double-clicking. Is there any way to take just a filename and create a control dynamically within my WinForms application that shows the contents of that file? 回答1: If you

Looking for example projects and “how to create” VB6 Active X EXE's

僤鯓⒐⒋嵵緔 提交于 2020-02-03 10:00:08
问题 I'm learning how to create an VB6 Active X EXE. (I need to add the ability for a number of VB6 apps to "phone home" to a server and I'd like centralize this but don't want to do it with a DLL because I'd like to only need Firewall permission for one program (the "phone home ActiveX EXE). I've found a few tutorials but I'm looking for a downloadable project to "play around with". 回答1: A tutorial and a project: the VB6 documentation has a good tutorial Creating an ActiveX EXE Component. A more

Looking for example projects and “how to create” VB6 Active X EXE's

两盒软妹~` 提交于 2020-02-03 10:00:06
问题 I'm learning how to create an VB6 Active X EXE. (I need to add the ability for a number of VB6 apps to "phone home" to a server and I'd like centralize this but don't want to do it with a DLL because I'd like to only need Firewall permission for one program (the "phone home ActiveX EXE). I've found a few tutorials but I'm looking for a downloadable project to "play around with". 回答1: A tutorial and a project: the VB6 documentation has a good tutorial Creating an ActiveX EXE Component. A more

Solving error MSB8011: Failed to register output

元气小坏坏 提交于 2020-01-31 03:39:10
问题 A strange error: error MSB8011: Failed to register output. Please try enabling Per-user Redirection or register the component from a command prompt with elevated permissions. C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 744 I got this error when trying to use OpenSceneGraph (OSG) in an ActiveX control. A Google search showed all kinds of solutions which didn't really solve the problem or locate the exact cause of the error, so I'd like to put the solution in one