Word 12.0 ActiveX Controller
Hi I'm trying to open a saved word document from my program. I have word 2007 installed on my computer and
i'm using cvi 2010. I couldn't find word document open function. function panel gives one with this name but i don't know how to use it,
There are examples that ship with CVI that show how to control Word. In CVI 8.5, which is what I have, there are examples for Word 97 and Word 2000. Go to Help -> Find Examples
Similar Messages
-
ActiveX controller methods import as callbacks
I used the Create ActiveX Controller feature to create a FP. The ActiveX is part of Mach3, a CNC control program. The ActiveX has methods like Code(LPCTSTR) that allows you to send G-Code strings to the CNC machine (G-Code is a text-based motor control language).
The weird thing is that most of the methods in the ActiveX control were imported as events with callbacks. For example, the only reference to the Code function in the FP is under Event Callback Registration Functions->IMyScriptObject->IMySriptObjectRegOnCode. The prototype for the callback includes a char * which I assume maps to the LPCTSTR parameter.
I don't understand why the methods are imported as callbacks. I've been working with Mach3 tech support, but they don't know anything about CVI. Here's what they told me about their server:
There are two interfaces that you can get into... One is called Mach4 the other is MyScriptObject, The My script object is all the methods that are used in the VB scripting in Mach3... when I wrap the class in VS I can select what set of objects I would like to get... I am not sure how you do it without VS..
All the methods under Mach4 are imported as standard function calls. Why would the "My script object" methods be imported as callbacks? Is there some way to fix this in CVI, or is the problem in the ActiveX server itself?After installing the software i was able to generate a controller, and for the "Code" function i generated a callback called Mach4_IMyScriptObjectRetOnCode. Have you been able to call this ActiveX server in another language such as C#? If so can you provide a very simple example of how to do this?
CVI generates functions from the wizard automatically based on their types and something in the Mach4 library is either being treated as an event callback or is not being recognized properly.
Richard S -- National Instruments --Applications Engineer -- Data Acquisition with TestStand -
Hosting activex controller for WVC54GCA
Hi,
Similar issue to my previous thread here: http://forums.linksysbycisco.com/linksys/board/message?board.id=Cameras&message.id=10279
My question is:
We are doing the online streaming via our company website by embedding the video.swf into a HTML based pag.
If one was to go to the camera's linksys page and go to "Show Video", it'll come with the prompt to install the activex controller.
If one was to browse to the embedded feed, the install prompt will not show, and WMP (vista x86 WMP11) claims it cannot read the codec. Both issues mean we still have to go to the cam's linksys page and install the controller.
Is there a way we can host the controller ourselves so when people view the embed video on our site, it'll prompt to install?You can download the cab file from the following link http://YOURcamIP/img/LinksysViewer.cab
But better is I think to embed windows mediaplayer in your page and use the direct video links http://YOURcamIP/img/video.asf or http://YOURcamIP/img/video.mjpeg
Because if you want to use the activeX the people viewing your page will need to fool around with the security settings of the browser to get it installed.
Oops sorry I just reread your post and you already doing the second option. Did you also tried the http://YOURcamIP/img/video.mjpeg
Maurice
Message Edited by maurice118 on 11-18-2009 09:08 AM -
Problems creating ActiveX controller
I am trying to create an activeX controller using the option from the tools
menu. On two of my machines I get a message stating "The system cannot find
the file specified." It does not say what file it is looking for. I can get
this to run on one of the versions of NT 4.0 on my machine.
The machine that works is NT 4.0 SP5 with VC++ 5.0.
The machines that don't work are both NT4.0 SP5 and VC++ 6.0 SP3.
Does anyone know what file this thing is looking for? Or what I can do to
fix it?
Thanks
MikeMike I have the same problem. If you could send me your fix I would appreciate it. [email protected]
-
Has any SAP project integrated an EFTPOS device with ABAP Gui using an ActiveX controller?
Dear Friends, I would like to know, Has any SAP Project integrated an EFTPOS Devise with ABAP Gui using ActiveX Controller? If used could you please share the Technicalities involved in them as we have a suggestion to have the same used in our Project.
Dear Friends, I would like to know, Has any SAP Project integrated an EFTPOS Devise with ABAP Gui using ActiveX Controller? If used could you please share the Technicalities involved in them as we have a suggestion to have the same used in our Project.
-
I've been trying to print a few pages from a Word document.
Currently I am able to print the entire document using some ActiveX techniques.
There seems to be facilities for selecting the particular pages, however so far I cannot get them to work.
I have tried the From/To and the Pages in the PrintOut invoke node.
And as you will see I have also tried the Range node.
Anyone have some ideas on how to do this?
Please see the attached vi.
Thanks,
Chris
Attachments:
ActiveX Print.vi 15 KBPlease stick to your original post.
Please have some patience. -
I would like to generate a report in Word via ActiveX. I found an
example on NI's site that should make it fairly easy. However, I
noticed that some of Word's ActiveX methods parameters have changed
between whichever version the example was written with and Word 2000.
(With Word97, the example runs fine, so it may have been written for
that version. If Word 2000 is on the machine, you need to reset the
method nodes the refresh the parameters list.) My problem is that the
target machine will be using Word 7a, installed on a server not on the
local machine. So I have two questions:
Does anyone know how stable the ActiveX interface was between Word 7a
and Word 97?
When Word is installed on a server enterprise-wide, and th
e computer
starts it up over the network, will the ActiveX components be registered
on the local computer?
Thanks in advance,
Dave Thomson
David Thomson Original Code Consulting
National Instrument Alliance Program Member
www.originalcode.com
[email protected] 303-499-1973 (voice and fax)This should be pretty easy to do with the LabVIEW Report Generation Toolkit for MS Office:
http://www.ni.com/toolkits/report_gen.htm
In fact, the toolkit includes the MS Office Express VI, where you can specify a template document, and you can wire in whatever values you want inserted at certain bookmarks in the document.
Let me know if you have any other questions,
-D
Darren Nattinger, CLA
LabVIEW Artisan and Nugget Penman -
Reading Tables in MS WORD using LabView & ActiveX
I would like to be able to read tables contained in an MS WORD document using LabView and ActiveX. (I've been successful in doing this with Excel files. ( I am not using the report generation toolkit.) After searching numerous posts with similar questions about LV & ActiveX I've not found any solution to my specific app. In LabView I'm successful doing an "Automation Open", followed by a Property Node, to an Invoke Node ("Documents" Open) and then a Property Node with "TABLES" selected. That's where I get stuck. Now that I have a reference (?) to "Tables" I can't seem to figure out what I need to connect and follow that with in order to now read the Tables in my document. I guess that's due to my lack of understanding as to what exactly this "Table" property node output actually is. Can someone tell me what this reference output is referring to and how I can get to the Tables within the document from it? I've tried connecting both a property node and invoke node to no avail. Can someone point me in the right direction?
Thanks. EdDear Ed,
Figuring out "what I need to connect and follow that with" relates to the organization of the MS Word Object Model. Please refer to the Word Object Model Reference MSDN >> MSDN Library >> Office Development >> 2007 Microsoft Office System >> Word 2007 >> Word 2007 Developer Reference >> Word Object Model Reference. You can think of the Object Model as a software hierarchy. You must start at the top of the hierarchy and work your way down to the item of interest. You must descend the hierarchy one level at a time; you cannot skip levels.
At each level of the hierarchy, you have access to the methods and properties of that "level".
Click on the Tables Collection link from the Word Object Model Reference page. Notice how Tables is at the top of the hierarchy. When you have a LabVIEW reference to a Tables object (technically speaking a collection), you then have access to the methods and properties supported by this "level". Click on the Tables Object Members link. Here you will see that the Tables collection supports two methods, Add and Item, and also supports five properties, Application, Count, Creator, NestingLevel, and Parent.
Notice how Mike gets the Count property of the Tables object. He then uses the Item method to return a reference to an individual table. The key thing to take away from this is how Mike uses the Item output node to gain access to the methods and properties of the Table object (not the Tables collection). Mike has descended the hierarchy from Tables to Table. He descends the hierarchy again with the Cell method and Range property of the Table and Cell object respectively. Lastly, the Text property of the Range object, "Returns or sets the text in the specified range or selection."
Effective LabVIEW programming with this type of ActiveX control requires a fair understanding of how Microsoft organized its software libraries. The Object Model Reference is a good place to start visualizing how these libraries are organized. Thank you for using the forums Ed, and thanks for your post, Mike. -
Microsoft Word Templates and ActiveX Control Problems
Hi,
I am experiencing a strange problem in Microsoft Word. I am writing a VBA application which displays a cwgraph in a form. If I add the graph to a form in the Normal.dot template the control is fine. If I add the graph to a form in a new template (where all my code is) the graph displays evaluation copy. The graph in the Normal.dot template is fine and displays without the licensing information and in the properties it displays the correct licence code etc.
Has anyone experienced this before and got any suggestions.
Thanks in advance.
Regards.
JoeJon.
Thanks for the reply. I have already run the license fixer utility and it does not locate any broken licenses. I have also uninstalled everything and deleted cwui.ocx in System32, then reinstalled and tried again. The strange thing is that it works in Visual Basic standalone, in the normal.dot template in Word. It just doesn't work in a different template file.
Thanks.
Joe -
Add caption to MS Word image using activex
I used LabVIEW to add an image at a bookmark in a Word document. Now I'm trying to add a caption to that image, but having no luck. I keep getting errors on my InsertCaption method--either "Error -2146824090 occurred at Exception occured in Microsoft Word: Command failed" or Type mismatch, depending on the parameters I use.
I've browsed this forum and others, but can only find solutions for those that have the report generation toolkit, which I do not.
Code is attached. Any ideas?
Justin
Solved!
Go to Solution.
Attachments:
Word write image.vi 22 KBBeautiful! Works great, thank you!
I've attached the working code in case anyone else ever needs something similar...
Attachments:
Word write image.vi 25 KB -
Can i get access to the find command in Word via activeX?
Does anyone know if it is possible to search through a word document using activeX commands from labview? Basically i need to use the "find" command from Word.
Thanks for your helpExcellent thanks a lot.
I've now got the search function working but im having a little trouble getting the results i want. What do you mean by "new selection"? is this the output refnum from the execute node?
Im looking to search through a word document for a certain paragraph number then highlight this paragraph in some way.
At present i have used your method to find the section number and then used a frame property on the output refnum followed by select method cascaded from this. This has the effect of selecting the number causing the word window to jump to the desired point but only the first line of the paragraph is shown because it places the found text at the bottom of the screen.
Do you have any suggestions as to how i could select the en
tire paragraph? I also cannot get any output from the select method in this way, am i using it incorrectly?
Thanks again for your time
Alan -
Calling Microsoft word speech in LabVIEW through ActiveX
hi
Yesterday i had posted 1 question , how to get the output of some other programme in LabVIEW. Well. i have found out the answer. This can be done by using ActiveX. For this the programme also must be ActiveX enabled.
I wanted to use the microsoft Word Speech in labVIEW through ActiveX.Since microsoft word is also ActiveX enabled, this can be called.
But the question is HOW????????
Help me out of this
Somil Gautam
Think WeirdIf you want to give voice commands to LabVIEW, you might want to read this blog
Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
If you don't hate time zones, you're not a real programmer.
"You are what you don't automate"
Inplaceness is synonymous with insidiousness -
Hello, could someone point me in the right direction. I am trying to export an image of a plot into a blank Word document using ActiveX. I have attached an image of my attempt. I would like to export it directly without saving to file. I only have 7.1, so please someone with a suggestion just describe in words or attach an image of the diagram. Thanks!!
Greg
Message Edited by gstanczak on 12-10-2009 05:14 PM
Message Edited by gstanczak on 12-10-2009 05:15 PM
v7.1
Attachments:
plot to word ActiveX.PNG 12 KBAlso see this link
Check the 2 llbs in the bottom. -
How to use a 64-bit Matlab ActiveX in a 32-bit CVI?
I have a CVI 9.0 and 64-bit MatLab R2012a installed on my PC together with 64-bit Windows 7.When I try to use "Create ActiveX Controller" wizard to use the Matlab ActiveX,a message went out says"The Type Library is not intended for use on Win32".Seems like it's because my CVI is 32-bit but my Matlab is 64-bit.So I wonder is there any way for me to use the MatLab ActiveX Controller?
PS.I have been checked on this topic:http://forums.ni.com/t5/LabWindows-CVI/How-to-create-ActiveX-Control-in-LabWindows-CVI-2010/td-p/183...
But it's not workong for me due to different CVI version.
Thank you guys.Thank you for your reply.
Does this means that it is still not possible to use the PDF ActiveX control in a x64 WinForms application? -
How to replace a word or line in a word document in CVI
I am trying to edit a word document using activeX in CVI. I want to search for a word and replace it with another. I couldn't find any functions which does the replace in wordreport.c. Could you please help me out?
Hi Isn,
You
will want to use the Microsoft Word 9.0 Object Library to interface
with Microsoft Word. You could then potentially be able to use the ActiveX calls
provided to accomplish your goal. The specifics on how to do this
should be found in Microsoft's Documentation.
Refer to the Microsoft document entitled How to find and use Office object model documentation. In your case, you will be looking at the Vbawrd9.chm help file which I believe will be located in the C:\Program Files\Microsoft Office\OFFICE\1033\ directory.
Also refer to the Unable to Load Microsoft Excel/Word Help in LabWindows/CVI KnowledgeBase.
Derrick S.
Product Manager
NI DIAdem
National Instruments
Maybe you are looking for
-
SAP GUI Logon does not have any anything to log on under systems
Hi everyone! My friend installed SAP GUI 7.10 patched to 15 a few months back. She was able to log in during that time since there were many servers/groups under the systems tab. Right now, after her laptop has been recently cleared of a virus attack
-
I'm having a problem with this bit of code. This works perfecly fine if there are not line breaks (/n) in the TextPane. if there are line breaks the .indexOf method seems to ignore them but the TextPane doesn't so when the format is applied it is shi
-
IPhoto 9.1.5 and faces not saving causes synch to crash
Since updating to lion OS on my imac (OS 10.7), I found time to edit a batch of iPhotos (iPhoto 11 9.1.5). In particular i took the time to add names to faces. Like other users i found some of the information did not seem to "take." THis problem b
-
Importing folders as playlists in itunes
I have a large volume of folders on my hard disk containing .aiff files. I want to import them so the folders become playlists with the same .aiff files inside them. That cannot be done in itunes 10.7 -- the folders are obliterated and playlists must
-
Mac OS-X Raw Converter for Canon produces sometimes wrong colors
I have just acquired a Canon 5D Mark II and I have some problems with the RAW converter supplied with Mac OS. The image is 21 Megapixels and it is the result of a long exposure. If I use the Canon Digital Photo Professional to produce the JPEG, I get