07-20-2012 04:54 AM
Hi,
I m trying to insert image into my desired cell of my wordreport table,it is being inserted but into cells other than my described cell.How can i insert it in any cell that in which i want.I am going into my desired cell by Gotocell number function and Gotonext cell functions than after reaching into my desired cell of the table i insert image with the function insertimageincell,it is being inserted but not in that cell where i reside at that time.
How can i fix this problem please?
Imran from lovely pakistan.
Solved! Go to Solution.
07-23-2012 06:22 PM
Hello Emran,
Are you passing the tablehandle right after setting the row and column number? The inert image function inserts to the current table cell saved in the tablehandle.
From the help, it is important to remember that the rows and columns are 1-based and not 0-based.
07-24-2012 11:33 PM
Thanks dear sir Jacob R.
Emran.
08-09-2012 02:32 PM
Hi Emran,
I am sorry that I did not see this post earlier, but I have been away from the forums for a few weeks. I actually know the exact issue you are facing and it is a bug that we fixed in CVI 2012. The problem is with the GoToCell function working correctly in newer version of Microsoft Word. If you cannot upgrade to CVI 2012, there are a couple of options to work around it. 1) Use a Word doc with the 97-2003 file format. You can create a blank Word document and select Save As >> Word 97-2003 Document. If you load this Word doc instead of creating a new one, the GoToCell function will work properly. Likely, you do not need the features of the later version of Word anyway. 2) Alternatively, you can use the WriteToCell function with a blank string instead of GoToCell. WriteToCell lets you specify which cell to write to. Once it writes the string, it leaves the cursor there which allows you to then place your image.
This is related to known issue with bug ID 335556.
02-07-2013 06:26 PM