![]() WideCharToMultiByte( CP_ACP, 0, ptName, - 1, szName, 256, NULL, NULL ) MessageBox( NULL, L " NULL IDispatch passed to AutoWrap()", L " Error", MB_ICONERROR ) HRESULT AutoWrap(HWND hwnd, int autoType, VARIANT *pvResult, IDispatch *pDisp, The handle provided in AutoWrap() is for a dialog that must be closed if error occurs, everything else is the same. ![]() That would be enough for now, since it would enable me to try inserting text into table on my own. I have managed to open the Word file, make it invisible, but I need help with selecting the existing table. I have decided to use OLE and C++ for this task, following the exaple from this article: That would be all, I just need help for this, in my opinion, simple task-> to fill a table in document made in MS Word with some random text. I believe this can be done via OLE and automation, but I am new to that, so If that is the only way to do it, please help me by posting some sample code example, if that is not a big deal, so I can see the logic behind using OLE and automation, I would be very grateful, since I couldn't handle the online documentation on MSDN. I would like to insert random text into columns, using C++ and pure Win32 API. I have made a MS Word document, with a table. I would like to start by saying thanks to everyone who takes some time to view this thread and try to help.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |