03-31-2009 02:10 AM
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
03-31-2009 02:36 AM
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
03-31-2009 08:06 AM
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.
Ben
03-31-2009 11:00 AM
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
03-31-2009 11:59 AM
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.
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
03-31-2009 12:22 PM
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
04-01-2009 05:52 AM
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.
Without that we we have to mod VI's in the RGT and that is bad.
Ben
04-01-2009 07:47 AM
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
04-06-2009 07:42 AM
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
04-08-2009 07:05 AM
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