Good evening. Can't add data to MSWord table. C ++ code:
Variant Word,Table,Cell,Document; AnsiString FilePath; FilePath = "C:\\Rasp.rtf"; Word = CreateOleObject("Word.Application"); // ΠΎΡΠΊΡΡΠ²Π°Ρ Word. Word.OlePropertySet("Visible", true); // Π΄Π΅Π»Π°Ρ Π²ΠΈΠ΄ΠΈΠΌΠΎΡΡΡ Π΄ΠΎΠΊΡΠΌΠ΅Π½ΡΠ°. // Π ΡΡΠΎΠ±Ρ Π½Π΅ ΡΠΎΠ·Π΄Π°Π²Π°ΡΡ Π½ΠΎΠ²ΡΠΉ Π»ΠΈΡΡ, Π½Π°ΠΏΡΠΈΠΌΠ΅Ρ (Word.OlePropertyGet("Documents").OleProcedure("Add"); ) ΠΎΡΠΊΡΡΠ²Π°Ρ ΡΠΆΠ΅ ΡΠΎΠ·Π΄Π°Π½Π½ΡΠΉ Π½Π° Π΄ΠΈΡΠΊΠ΅ Π‘:\ Π΄ΠΎΠΊΡΠΌΠ΅Π½Ρ ΡΠΎΡΠΌΠ°ΡΠ° rtf, ΡΠΆΠ΅ Ρ Π³ΠΎΡΠΎΠ²ΠΎΠΉ ΠΎΡΡΠΎΡΠΌΠ°ΡΠΈΡΠΎΠ²Π°Π½Π½ΠΎΠΉ ΡΠ°Π±Π»ΠΈΡΠ΅ΠΉ. Word.OlePropertyGet("Documents").OleFunction("Open", WideString(FilePath));
I do not know how to add data to the table cell? In general, you can add data to an already created table? How many examples viewed. Everything is just for the beginning of create and then perform any action.