Exemplo n.º 1
0
        public InDesign.Document GetReportDocument(string templatePath)
        {
            InDesign.Application app =
                (InDesign.Application)COMCreateObject("InDesign.Application");

            // get a reference to the current active document
            return((InDesign.Document)app.Open(templatePath));
        }
Exemplo n.º 2
0
        /// <summary>
        /// Opens the original indd file and initializes the InDesign.Document object.
        /// The original file should be indd.
        /// </summary>
        private void OpenInDesignDoc(object fileNameAsObj)
        {
            // "isVisible = true" means that the opened file will be shown in Application window.
            bool isVisible = false;

            m_inDesignDoc = (InDesign.Document)m_inDesignApp.Open(fileNameAsObj, isVisible);

            m_openedFileNumber++;
        }
 public InDesign.Document GetReportTemplate(string reportTemplatePath)
 {
     return((InDesign.Document)application.Open(reportTemplatePath));
 }