N
NordicViking
Guest
Hi,
I am trying to insert multiple documents into one large document so that I can print them in the proper order. However, while I am able to insert most of the files (all of them in the correct order), some of the files are missing. My current program inserts 67 documents into one document; about 8 or 10 are missing from the group of documents.... I have a log file with 3 or 4 errors, but this does not account for all of the missing documents.
Also, the word documents seems to divide or split the documents into two 200+ page documents. Is there any way to make it only one document?
Here is my insertfile code:
m_WordApp.Selection.InsertFile(filepath, ConfirmConversions:=False, Range:="", Link:=False, Attachment:=False)
m_WordApp.Selection.InsertParagraphAfter()
m_WordApp.Selection.InsertBreak(Type:=WdBreakType.wdPageBreak)
m_WordApp.Selection.Collapse(Direction:=WdCollapseDirection.wdCollapseEnd)
Continue reading...
I am trying to insert multiple documents into one large document so that I can print them in the proper order. However, while I am able to insert most of the files (all of them in the correct order), some of the files are missing. My current program inserts 67 documents into one document; about 8 or 10 are missing from the group of documents.... I have a log file with 3 or 4 errors, but this does not account for all of the missing documents.
Also, the word documents seems to divide or split the documents into two 200+ page documents. Is there any way to make it only one document?
Here is my insertfile code:
m_WordApp.Selection.InsertFile(filepath, ConfirmConversions:=False, Range:="", Link:=False, Attachment:=False)
m_WordApp.Selection.InsertParagraphAfter()
m_WordApp.Selection.InsertBreak(Type:=WdBreakType.wdPageBreak)
m_WordApp.Selection.Collapse(Direction:=WdCollapseDirection.wdCollapseEnd)
Continue reading...