I want to open a word document based on a template. I am using the following statements to do it, but get a type error. The ECG_REPORT_TEMPLATE is a text string of the filename.
error = CA_VariantSetCString (&wdECGTemplateVt, ECG_REPORT_TEMPLATE);
error = Word_DocumentsAddOld (docsHandle, NULL, wdECGTemplateVt,
CA_DEFAULT_VAL, &docHandle);
Is this the right function? Is there a more comprehensive description of the Word Object model available to figure out what these are and how to use the functions from LabWindows/CVI? Most the documentation is for VB and .Net on MS site.