01-08-2013 02:31 PM
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.
01-08-2013 02:53 PM
Are you making the caption another bookmark? That's what I would do.
01-08-2013 03:21 PM - edited 01-08-2013 03:26 PM
Yeah, I could do it that way. I'd prefer to use the InsertCaption functionality though--seems cleaner. I suppose if I can't find out how to make this node work, that's what I'll end up doing.
01-08-2013 03:31 PM
01-08-2013 03:44 PM
Beautiful! Works great, thank you!
I've attached the working code in case anyone else ever needs something similar...