I'm creating a desktop Windows program using C++ Builder 2009. I am using interop. I was wondering if there is any way to get the values of some of the constants you use? Is there a header file somewhere I could include?
I can see from your help that BreakType.SectionBreakNewPage = 1, but I really hate to hard-code that kind of thing. Any suggestions?
Here's my snippet:
// Open an existing document.
m_vDoc = m_vHelper.OleFunction("Open", docName);
// Use DocumentBuilder object to manipulate existing doc.
m_vBuilder = Variant::CreateObject("Aspose.Words.DocumentBuilder");
m_vBuilder.OlePropertySet("Document", m_vDoc);
m_vBuilder.OleProcedure("MoveToDocumentEnd");
if (newPage) {
// Note that per help, BreakType.SectionBreakNewPage = 1
m_vBuilder.OleProcedure("InsertBreak", 1);
}