W
WishfulDoctor
Hi,
If this is not the right newsgroup - please direct me to the right one. The
question is about an error I get (COleDispatchException. SCODE: 800a16ca)
trying to use Word automation from a C++ program. This is aprogram that is
in use for quite some time without any errors & I have the error happening
in a computer that is XP Spanish and Office Spanish.
I have narrowed the source down to an area and have a strong guess as to the
offending area - I think it is the use of "Heading", and "Normal" for styles
where the user's machine probably have Spanish equivalents and hence the
error. If this is the case, How can I get the equivalent - is there any way
to do this in other language settings?
CString sStl;
sStl.Format("Heading %d",iLvl);
range.SetStyle(COleVariant((LPCTSTR)sStl)); //range is set earlier in the
code
range.SetText(p->m_text);
range.InsertAfter("\r\n");
range.Collapse(COleVariant((long)0));
range.SetStyle(COleVariant("Normal"));
If this is not the right newsgroup - please direct me to the right one. The
question is about an error I get (COleDispatchException. SCODE: 800a16ca)
trying to use Word automation from a C++ program. This is aprogram that is
in use for quite some time without any errors & I have the error happening
in a computer that is XP Spanish and Office Spanish.
I have narrowed the source down to an area and have a strong guess as to the
offending area - I think it is the use of "Heading", and "Normal" for styles
where the user's machine probably have Spanish equivalents and hence the
error. If this is the case, How can I get the equivalent - is there any way
to do this in other language settings?
CString sStl;
sStl.Format("Heading %d",iLvl);
range.SetStyle(COleVariant((LPCTSTR)sStl)); //range is set earlier in the
code
range.SetText(p->m_text);
range.InsertAfter("\r\n");
range.Collapse(COleVariant((long)0));
range.SetStyle(COleVariant("Normal"));