LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

graph without scales in report

Dear all,

 i am using report generation toolkit to produce word reports in my application.

i am using "insert graph" to insert 1-D waveform in the report. i dont want to display the X and Y scales of the Graph.

but i am not able to find any option in the report generation toolkit to perform that for me. i have to manually  do it from word when the report is generated.

does anyone know how to disable the X and Y scales dynamically ??

 

 

Thanks,

Ritesh 

0 Kudos
Message 1 of 11
(3,679 Views)

Hey,

 

The Report Generation Toolkit is using the ActiveX class of the respective report you want to create.

So in your case its the one from MS Word, where I didn't find a property to hide the scale. However, you can try to open the SubVIs of the Report Generation Toolkit unitl you are at the point where the ActiveX calls are, maybe you find a property or method to hide the axis.

 

Christian

0 Kudos
Message 2 of 11
(3,675 Views)

Christian_M wrote:

Hey,

 

The Report Generation Toolkit is using the ActiveX class of the respective report you want to create.

So in your case its the one from MS Word, where I didn't find a property to hide the scale. However, you can try to open the SubVIs of the Report Generation Toolkit unitl you are at the point where the ActiveX calls are, maybe you find a property or method to hide the axis.

 

Christian


 

Hi Christain,

 

You just touched a nerve with that one!

 

I'd would appreciate it if you you followed through with that suggestion and teach us how to do that.

 

Why would I ask such a silly Q?

 

The new Toolkit from NI has been re-written in LVOOP. Since the references are private data and NI did not give us access to the class (can you provide a proj along with the password for the class?) the Toolkit is just a big tease (we can look at it but we can't touch it!) when we want to add something simple. I just went through this recently and had the developer write the code to tweak the one setting we needed without the Report Gen toolkit.

 

I concider this a draw back.

 

In the old version (non-LVOOP) we could use the toolkit as good starting point that we could enhance as we needed.

 

In the new version, if it does not explicilty support the required functionality, then it is of limited use.

 

What I would like to see;

 

If we buy the Toolkit we should get access to the class so we can add our own methods.

 

I'll give you some time to get back to me on that one. Smiley Wink

 

Ben

 

 

 

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 3 of 11
(3,651 Views)

tst gave methis link we I have not been able to check out. That may be the answer I was looking for but it will take me some time to get back at a machine to varify.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 4 of 11
(3,639 Views)

Quoting from that KB article

 


 Solution:
...

Instead, to get the reference, modify one of the VIs within the toolkit,...

Before continuing, it's strongly recommended that you back up all  files you replace during this process in case you wish to revert back to the default installation. You can add an extension to the filenames such as .bak or .installed to back up the files. 

  1. ...
  2. \Workaround\NIReport.llb\Word\Get Report Type.vi (Replace VI found in Word specific class \LabVIEW 8.6\vi.llb\Utility\NIReport.llb\Word\)
  3. ....
  4. ...
  5. ...

Note: ... However, if VIs are used directly from vi.lib (not recommended/supported), ...


 

I am very uncomfortable with editing anything in VI.llb since LV call and will step on it durring the next upgrade.

 

How can I use the library provided but move a copy of it over into the folder with my app so I can modify the tool kit without touching the original?

 

I tried just copying the floders with those libraries into my project folder then adding the copied library to a project but the project says there are confilcts that can't be resolved.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 5 of 11
(3,629 Views)

I logged SR# 1356767 to try and get help trying to resolve the conflicts that occur when trying to opene the copied version. NI Support was able to duplicate the issue of the conflicts but I don't knw how to resolve them.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 6 of 11
(3,625 Views)

Darren tells me the new RGT 1.1.4 (?) has a VI to get a ref to the word doc. That may the ticket we need. Smiley Wink

 

Without that we we have to mod VI's in the RGT and that is bad.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 7 of 11
(3,609 Views)

Quoting Darren from a private forum


vi.lib/addons/_office/excel.llb/Excel Get ActiveX References.vi

vi.lib/addons/_office/word.llb/Word Get ActiveX References.vi


 

These VIs were added to version 1.1.4 of the toolkit.

 

Yeah!!!!!

 

No need to mess with vi.lib.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 8 of 11
(3,599 Views)

Hi Ben,

First of all thanks alot for taking so much interest in the post.

 

I would like to know how can i hide the scale using the references? 

i dont  have much knowledge about ActiveX, so it would be great if you could enlighten me on this.

 

Thanks,

Ritesh 

0 Kudos
Message 9 of 11
(3,553 Views)

Ben wrote: 

........

You just touched a nerve with that one!

 

I'd would appreciate it if you you followed through with that suggestion and teach us how to do that.

............


I opened all the Sub VIs down to the "Word_Insert_Chart.vi", there you will find the ActiveX Reference for the "Word.InlineShape" class.

However I found no property for hiding the scale there.

 

Christian

 

 

0 Kudos
Message 10 of 11
(3,508 Views)