activex

PosPrinter.PrintBarCode, PosPrinter.PrintBitmap is not working while PrintNormal is working

走远了吗. 提交于 2019-12-12 05:43:57
问题 I have created an ActiveX control which contains all the methods to handle a printer (Star TSP100) such as instantiating, Opening printer etc. The ActiveX is being registered in the com. When i am using printers methods through javascript, all methods are working fine except PrintBarCode and PrintBitmap method and throwing an error. For bitmap i have used :- printer.PrintBitmap(PrinterStation.Receipt, path, percentWidth * lineWidth / 100, PosPrinter.PrinterBitmapCenter); and for barcode :-

Accessing Local file from a browser?

99封情书 提交于 2019-12-12 05:28:44
问题 Hi I want to access a local file of my system from the browser? Is there anyway through which it can be achieved as there are lot of security checks invloved? or any other work arround using ActiveX or Java Applet???? Please help me out.. 回答1: To access a local file through your browser, you can use a signed Java Applet. Through JFileChooser you can ask the user for a file, and if the applet is signed and you have configured properly the security of your applet, this will work. Here is the

R markdown html document not properly show in Internet Explorer

不想你离开。 提交于 2019-12-12 05:16:42
问题 I create a rmarkdown html document and following is my code: --- title: "PA" output: html_document: css: custom.css theme: journal toc: true toc_float: collapsed: false smooth_scroll: false toc_depth: 4 --- <style> .list-group-item.active, .list-group-item.active:focus, .list-group-item.active:hover { background-color: blue; } </style> <style type="text/css"> #TOC { color: purple; } .toc-content { padding-left: 30px; padding-right: 40px; } h1 { /* Header 1 */ color: DarkBlue; } </style> <div

Marshalling unmanaged code in silverlight

China☆狼群 提交于 2019-12-12 04:58:26
问题 I've got this small web application I've built. It's got an activex control returning unmanaged code through javascript into a silverlight application. In silverlight I perform a marshaling operation on the returned value. When I only perform the simple operation of GetSize() I get struck with a stupefing error. This brings me to my question: Is it possible to perform a marhsalling operation in silverlight, if so how? 回答1: Silverlight's security model and sandbox do not allow "transparent"

ActiveX control of Word. Select text and images

核能气质少年 提交于 2019-12-12 04:48:04
问题 This is what I have done so far: word = actxserver('Word.Application'); document = word.documents.Open('C:\Documents and Settings\kz7213\Desktop\Test.docx'); selection = word.Selection; selection.TypeText('Big Finale'); selection.Style='Heading 1'; selection.TypeParagraph; FIG1 = figure('Visible','off'); plot([1 2 3 4 5],[4 1 3 5 7]); print -dmeta selection.Paste; selection.Style='Heading 1'; selection.InsertCaption('Figure','Test figure 1'); %Not working selection.Style='CaptionStyle';

Javascript: how to append data to a file

廉价感情. 提交于 2019-12-12 04:07:23
问题 how can i append data to a file using javascript? i tried to use this code, but i got an error: var fso = new ActiveXObject("Scripting.FileSystemOject"); var filepath = fso.GetFile("member.txt"); var fileObject = fso.OpenTextFile(filepath, 8); file.WriteLine(id + "|" + pass); fileObject.close(); the error is on var fso = new ActiveXObject("Scripting.FileSystemOject"); , written: Error: Automation server can't create object is there any other way to append the file using javascript or the way

Insert new row in data table VBA Excel2010 ActiveX

ぃ、小莉子 提交于 2019-12-12 03:28:50
问题 I want to insert a row in my data table. When I try it manually (select row, insert new row) it works just fine, but when I try to add it into my macro, which is inside an ActiveX button(!) it says "Runtime error 438: Object does not suppoort this method". If I try the mecro in a usual macro, not inside the button, it works fine aswell. How can I get rid of this problem? Set wsd = Sheets("Data") wsd.Select With wsd .Rows("5:5").Select .Selection.Insert Shift:=xlDown, CopyOrigin:

How can I dynamically instantiate an ActiveX control from an .ocx file?

自作多情 提交于 2019-12-12 03:19:22
问题 I would like to create an instance of an ActiveX control. Given the .ocx file and interface definitions in C#, how can I do this? I don't mean the usual way of adding a reference to the project because I want to avoid the need for registering the control globally on the target system. 回答1: This looks like you should check into Registration-free COM. Beware that this does not work on older systems IIRC. For some details/samples etc. see: http://msdn.microsoft.com/en-us/library/fh1h056h.aspx

How to redirect users to IE when content using Active X controls is opened with Edge?

安稳与你 提交于 2019-12-12 02:27:27
问题 Based on this link: Edge redirecting to IE (at Reddit), there is apparently a way to show a special purpose page displaying: This website needs Internet Explorer This website uses technology that will work best in Internet Explorer. Open with Internet Explorer Keep going in Microsoft Edge It will be very helpful for my applications using Active X controls. I already have code such as: <meta http-equiv="X-UA-Compatible" content="IE=10;requiresActiveX=true" /> in all my head sections (added in

Display Modal Dialog Box with ActiveX

£可爱£侵袭症+ 提交于 2019-12-12 02:05:39
问题 I'd like to create an ActiveX browser plugin that displays a modal dialog box to the user...but how do I do that? If you know of some basic tutorial out there that does exactly this it would be very much appreciated! 回答1: You can display modal dialog as usual use DialogBox function. Only ActiveX control should call method IOleInPlaceFrame::EnableModeless before and after show dialog. Pointer to the IOleInPlaceFrame you can get from your container via IOleInPlaceSite::GetWindowContext method.