word PrintOut errorthe printer is not installed

it2022-05-09  55

用thisApplication.ActivePrinter=printer;指定打印机         Word.Document   thisDocument   =   null;     Word.Application   thisApplication   =   null;//new   Word.ApplicationClass();     CreateWordDocument(faxfile,ref   thisDocument,ref   thisApplication);     string   printer=thisApplication.ActivePrinter;     thisApplication.ActivePrinter="I-FaxPrinter";     PrintOutDoc(thisDocument);     faxpath=@"c:\tempfax.tif";     object   saveChanges   =   Type.Missing;     object   originalFormat   =   Type.Missing;     object   routeDocument   =Type.Missing;     thisApplication.ActivePrinter=printer;     thisApplication.Quit(ref   saveChanges,   ref   originalFormat,   ref   routeDocument); Top

转载于:https://www.cnblogs.com/Fly-sky/archive/2009/03/13/1411038.html


最新回复(0)