I have an example using a file of MSWord, so you can make some modifications iterating to make a "Table in Word"
the source code is this:
void __fastcall TForm1::FormCreate(TObject *Sender)
{
Variant Word;
// Create the object
Word = Variant::CreateObject("Word.Basic"
// We show
Word.Exec(Procedure("AppShow");
// We create a new file
Word.Exec(Function("FileNew");
// Insert text
Word.Exec(Procedure("Insert" <<
"inserted text from C++ Builder"
// save the file
Word.Exec(Function("FileSaveAs" <<
"Test.doc"
}
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.