NI產品與技術 討論區

取消
顯示結果 
搜尋替代 
您的意思是: 

Word Graph如何設定X座標軸顯示位置

我使用Report Generation工具插入1個Graph折線圖顯示在Word,如下圖(1)
問題:要把X座標軸放到下面,從Report Generation中找不到相關工具,不知道有沒其他方法,目前只知道手動的方法如下圖(2)
0 積分
1 條訊息(共 5 條)
6,727 檢視
根據以下文件

Creating Professional Reports with the LabVIEW Report Generation Toolkit for Microsoft Office

http://zone.ni.com/devzone/cda/tut/p/id/3201 文件顯示

"Microsoft graphs have a very large number of attributes. The toolkit does not expose all of them. If you need to format the graph in a very specific way, you can create a template, insert an empty Microsoft Graph in the template and format the graph as needed. You can then call Word Update Graph.vi or Excel Update Graph.vi to send data into the template during the report generation process."

因此,如要達到你的需求

可以參考 以下作法

Creating and Customizing Graphs in Microsoft Word Documents from LabVIEW

http://zone.ni.com/devzone/cda/tut/p/id/3190

0 積分
2 條訊息(共 5 條)
6,704 檢視
3q chih-ting 的回答,我已經自己編排了模版,在UpDATA Graph,此法的確可行
可以在請教一個問題嗎,如國要使用ActiveX來呼叫Function要如何呼叫,請問哪裡有相關範例
再感謝一次~~~
0 積分
3 條訊息(共 5 條)
6,699 檢視

First, you can look at this

 

ActiveX and LabVIEW

http://zone.ni.com/devzone/cda/tut/p/id/2983

Use of ActiveX with Microsoft Office can be an extremely powerful tool in LabVIEW. The developer of any ActiveX server or container is responsible for providing the documentation for what is supported. In the case of Microsoft Office, you can find the necessary documentation in several places. The best place to get started is by visiting this Microsoft document:
How to find and use Office object model documentation.   
http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q222101&

Where Can I Find More Documentation on Microsoft ActiveX Methods and Properties?

http://digital.ni.com/public.nsf/allkb/C4ABFFC75C5E6A7186256C4B0083BF3C?OpenDocument

How do I determine the class hierarchy of a MS Offic application's ActiveX implementation easily?
An application's documentation should be responsible for outlining the details of its ActiveX implementation, how objects are organized relative to one-another, what the methods and properties of those objects are, etc. An easy way to get a handle on some of these things with Microsoft Office products such as Word and Excel is by recording macros. All you need to do is start macro recording, carry out the set of tasks manually that you eventually want your application to remotely perform, and then look at the recorded macro. You will see that the macro editor often only shows you the most "recent" objects, those that own the actual method(s) you called or properties you used, but you can typically get a handle on the overall structure by trying some different things. Once you know the general structure and are aware of the organization of the application's objects, it is quite a bit easier to invoke those methods and actually control the application as a server with minimal time wasted.

Finally, as a good starting point, you can search labview example finder with the keyword "ActiveX". There are some examples for your reference.

0 積分
4 條訊息(共 5 條)
6,671 檢視

3Q~~chih-ting  Help

I will attempt to learn for  ActiveX

0 積分
5 條訊息(共 5 條)
6,658 檢視