activex

Filtering pivot table with vba

£可爱£侵袭症+ 提交于 2019-11-27 16:30:46
I have a chart that picks the info from a pivot table that I have with daily data. I am trying to create activeX buttons so it can filter the data which is as ROW LABEL, to see how my data behaved in the last week and in the last month So, what I have until now and it is not working is: Private Sub weekbtn1_Click() Dim i As Integer If weekbtn1 = True Then i = 0 Do Until Datavalue(date) - i = 42005 With ActiveSheet.PivotTables("Pivotcompsprice").PivotFields("Date") .PivotItems DateValue(Date) - i.Visible = False i = i + 1 End With Loop i = 0 Do Until i = 7 With ActiveSheet.PivotTables(

Writing UTF8 text to file

眉间皱痕 提交于 2019-11-27 16:14:53
I am using the following function to save text to a file (on IE-8 w/ActiveX). function saveFile(strFullPath, strContent) { var fso = new ActiveXObject( "Scripting.FileSystemObject" ); var flOutput = fso.CreateTextFile( strFullPath, true ); //true for overwrite flOutput.Write( strContent ); flOutput.Close(); } The code works fine if the text is fully Latin-9 but when the text contains even a single UTF-8 encoded character, the write fails. The ActiveX FileSystemObject does not support UTF-8, it seems. I tried UTF-16 encoding the text first but the result was garbled. What is a workaround? Try

How to stop ActiveX objects automatically changing size in office?

▼魔方 西西 提交于 2019-11-27 15:03:30
This thread discusses a problem I've been having with ActiveX objects in an Excel spreadsheet. It's a mess to read through and ultimately doesn't have a cohesive answer. The problem is 100% reproduceable: Open workbook with ActiveX objects in spreadsheet while using a docking station Disconnect machine from docking station, triggering a resolution change (there are other causes too, mine is with a docking station, it seems changing resolution causes this) Click an ActiveX control - they immediately resize and the font changes size. The fontsize change is NOT a function of the .Font.Size

create a text file using javascript

人走茶凉 提交于 2019-11-27 14:10:48
I am using the following code to create a text file using javascript and it's not working <html> <head> <script language="javascript"> function WriteToFile() { var txt = new ActiveXObject("Scripting.FileSystemObject"); var s = txt.CreateTextFile("11.txt", true); s.WriteLine('Hello'); s.Close(); } </script> </head> <body onLoad="WriteToFile()"> </body> </html> Try this: <SCRIPT LANGUAGE="JavaScript"> function WriteToFile(passForm) { set fso = CreateObject("Scripting.FileSystemObject"); set s = fso.CreateTextFile("C:\test.txt", True); s.writeline("HI"); s.writeline("Bye"); s.writeline("---------

Need PDF viewer control - tried a lot [closed]

≯℡__Kan透↙ 提交于 2019-11-27 13:09:29
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I'm looking for a component to view and print PDF files from Delphi/C++Builder. Delphi or ActiveX, not .NET. The license must be for royalty free distribution and the viewer must not require Adobe Reader to be installed. So far I have tried: Gnostice PDFtoolkit: Display problems with JPX images Radaee PDF Viewer

What is a “Sync Block” and tips for reducing the count

佐手、 提交于 2019-11-27 12:58:27
问题 We have a Windows Forms application that uses a (third party) ActiveX control, and are noticing in the .NET performance objects under ".NET CLR Memory" that the number of "Sync Blocks" in use is constantly increasing (along with increasing memory usage), even though our application is sitting there idle. The built-in explanation for the sink block count states: This counter displays the current number of sync blocks in use. Sync blocks are per-object data structures allocated for storing

Read and write to an access database using Javascript

戏子无情 提交于 2019-11-27 11:51:08
first I want to mention that I am aware that in web interaction with databases should always be with server side languages due to security reasons and for the fact that javascript as is doesn't offer and compatibility with the windows file system. that said I am facing a though situation and I am trying to think creatively. I am not allowed any access to a server sided scripting and SQL. and I need to create a client based application for an intranet that will be able to store data as time progress. I have found 2 solutions so far but none of them has enough documentation for me to use

Test if an ActiveX control is installed with Javascript?

拈花ヽ惹草 提交于 2019-11-27 11:42:26
问题 Is there a way to test if an ActiveX control is installed using Javascript? 回答1: function AXOrNull(progId) { try { return new ActiveXObject(progId); } catch (ex) { return null; } } 回答2: Solution, try to invoke a new ActiveXObject: function testForActiveX(){ tester = null; try { tester = new ActiveXObject('htmlfile'); } catch (e) { // catch the exception } if (tester) { // ActiveX is installed return true; } return false; } 回答3: try{ if(new ActiveXObject("Nameofplugin")){ // write your code if

Deploy C# ActiveX in a CAB for Internet Explorer use

被刻印的时光 ゝ 提交于 2019-11-27 07:29:41
I am desperately trying to deploy an ActiveX for IE developed in C# as a CAB archive. I have read many resources (some of them from StackOverflow) and it appears a lot of people are having the same problems. I have tried 3 solutions: a) creating a CAB VS project, b) manually creating a CAB using CABARC with a COM registration in INF and c) manually creating a CAB with launching msiexec . None of them worked. I even tried d) creating a bootstrapper which launches msiexec to no avail (because some people suggested simply launching msiexec on Vista can't work). I am running Windows Vista but my

Delphi convert doc to pdf using Word ActiveX

柔情痞子 提交于 2019-11-27 07:00:39
问题 Did anyone already wrote code for converting doc or docx to pdf using Word 2007 or Word 2010 pdf export capabilities? 回答1: I do it with the following .vbs script. If you need it in Delphi code then it would be easy enough to convert: Const wdDoNotSaveChanges = 0 Const wdRevisionsViewFinal = 0 Const wdFormatPDF = 17 Dim arguments Set arguments = WScript.Arguments Function DOC2PDF(sDocFile) Dim fso ' As FileSystemObject Dim wdo ' As Word.Application Dim wdoc ' As Word.Document Dim wdocs ' As