I could not declare Word successfully in this program.
I could not print the document.
I have referenced ms word 2007 but did not know how to declare Word.
See part of my program below
private ApplicationClass wrdApp = null;
private Document oDataDoc = null;
Selection wrdSelection;
private void SendToPrinterAcopy(string DocFile)
{
Object background = true;
Object append = false;
Object range = wrdApp.WdPrintOutRange.wdPrintAllDocument;
Object item = wrdApp.WdPrintOutItem.wdPrintDocumentContent;
Object pageType = wrdApp.WdPrintOutPages.wdPrintAllPages;
Object copies = 1;
Object printToFile = false;
oDataDoc.PrintOut(ref background, ref append,
ref range, ref missing, ref missing, ref missing,
ref item, ref copies, ref missing, ref pageType,
ref printToFile, ref missing, ref missing,
ref missing, ref missing,ref missing, ref missing,
ref missing);
}