Hi,
I'm trying to simply display a word doc in a panel. I'll later customize font/colors, etc. but for now would be happy just to see it display! Note I don't want to launch the Word App in another window, I want it in my own panel.
I used the activeX controller Wizard to create a Microsoft Word 15.0 Object Library. My project now has the .fp file and .h file with the MS Word activeX functions available.
I made a .uir file with a simple panel TSTPANEL and created simple test case code, which compiles and links without any warnings:
int pnl_hdl, word_doc, local_error, uilerror;
pnl_hdl = LoadPanel (0, "main_panel.uir", TSTPANEL);
DisplayPanel(pnl_hdl);
local_error = Word_OpenDocument ("TestDoc.docx",
pnl_hdl, "", 0, 0, &word_doc, &uilerror);
it returns error code -143 "Active X control error" and the document is not displayed.
What am I missing?
Thanks for any insights!
Tim