04-11-2012 11:40 AM
I'm attempting to edit the AutoFit behavior of a MS Word 2003 report generated through the Report Generation Tool, but I'm having some trouble with ActiveX. I referenced an earlier thread I found via search here, but it's from 2006 so I'm not sure if either it's still applicable or if I am doing it wrong.
I've attached my VI with a comment where I'm getting an error. I think it has to do with referencing the index, but as far as I know, "1" references the current table/graph... If someone could point me in the right direction or help me with the solution, I'd greatly appreciate it.
Solved! Go to Solution.
04-12-2012 02:18 PM
Hi ChaoyD,
One way you can troubleshoot this is to create the macro in Microsoft Word of what you are wanting to do and then take a look at the macro code that is generated. From this you can follow it step-by-step to see which ActiveX calls are called and you can basically follow these calls in LabVIEW to make sure you are using the correct references for what you are trying to accomplish.
Regards,
04-12-2012 02:25 PM
Thanks, Tommy. I'll try that.
04-12-2012 02:31 PM
04-12-2012 02:57 PM
Had to make a .zip because of a subVI I used, but here's the LV2009 of it.
04-12-2012 03:05 PM - edited 04-12-2012 03:07 PM
@ChaoyD wrote:
Had to make a .zip because of a subVI I used, but here's the LV2009 of it.
Hmmm ... this subVI looks familiar!
Try this (I haven't tried it in your vi but I know it works as a standalone).
Ben64
04-12-2012 03:50 PM
Fantastic. I feel like such an idiot for being so close, yet so far. At least in the future I'll know the tip for recording a macro then looking at it. Thanks again, both of y'all. Especially ben64, who's been so helpful with all my RGT questions so far