Nav 2.60 & Excel 2007 -> Textframe.Characters error

robinnnrobinnn Member Posts: 2
edited 2010-03-18 in Navision Financials
One of our clients recently updated their office version to Office 2007, until that time, they used Office XP.

Some years ago functionality has been developed to create excel sheets in Office XP from Nav 2.60.

I changed the automation controls that were in use to the Excel 12.0 object library, and the codeunit compiles just fine.
The functionality also seems to be able to create the excel sheet and also the shapes in the sheet.

Only thing that does not seem to work is this line :
Textframe.Characters(1,STRLEN(RecContact.Name)).Text := RecContact.Name;

I already tried an IF STRLEN(RecContact.Name) <> 0 THEN. but that doesnt help.
I am getting an Internal Error 10 in module 45 (13)(13) error.

Does anyone have an idea of what goes wrong here?

Thanks very much in advance!
Sign In or Register to comment.