I’m working on a transition to 64 bit (Windows, Xojo 21r2.1) of a major CMS-Project.
I just ran into a problem where generating a table in a word document results in an ole-exception on 64-bit. 32-bit works since a decade without problems. A hint where to look at is very appreciated, I did not find something helpful by now.
Here is the code-snippet:
// Tabelle erstellen
Word.ActiveDocument.Tables.Add(Word.Selection.Range, (PrbArr.ubound+2), 3, Office.wdWord9TableBehavior, Office.wdAutoFitFixed)
(!)Word.Selection.Tables(1).AutoFormat(Office.wdTableFormatNone, True, True, True, True, True, True, True, False, True)
(!)Word.Selection.Tables(1).cell(1, 1).Range.Text = "ProbID"
word.ActiveDocument.Tables(1).Range.Columns(1).SetWidth(14,0)
Word.Selection.Tables(1).cell(1, 2).Range.Text = "Empfänger / Proband"
word.ActiveDocument.Tables(1).Range.Columns(2).SetWidth(200,0)
Word.Selection.Tables(1).cell(1, 3).Range.Text = "IBAN"
word.ActiveDocument.Tables(1).Range.Columns(3).SetWidth(200,0)
OLE-Error okkurs on the (!) line, if the 1st is commented out then it throws an error on the second (!) line