C# 如何控制 Excel 打印到制定的打印机,使用Microsoft.Office.Interop.Excel.Application 20
Microsoft.Office.Interop.Excel.ApplicationxlsApp=newMicrosoft.Office.Interop.Excel.Ap...
Microsoft.Office.Interop.Excel.Application xlsApp = new Microsoft.Office.Interop.Excel.Application();
Microsoft.Office.Interop.Excel.Workbook xlsBook = null;
Microsoft.Office.Interop.Excel.Worksheet xlsSheet = null;
xlsBook = xlsApp.Workbooks.Open(AppDomain.CurrentDomain.BaseDirectory.Replace("/", "\\") + @"\InVoiceRpt.xls", 0, true, 5, "", "", false, Microsoft.Office.Interop.Excel.XlPlatform.xlWindows, "\t", true, false, 0, true, false, false);
xlsBook.PrintOut(Missing.Value, Missing.Value, Missing.Value, <这里怎么写>, Missing.Value, Missing.Value, Missing.Value, Missing.Value); 展开
Microsoft.Office.Interop.Excel.Workbook xlsBook = null;
Microsoft.Office.Interop.Excel.Worksheet xlsSheet = null;
xlsBook = xlsApp.Workbooks.Open(AppDomain.CurrentDomain.BaseDirectory.Replace("/", "\\") + @"\InVoiceRpt.xls", 0, true, 5, "", "", false, Microsoft.Office.Interop.Excel.XlPlatform.xlWindows, "\t", true, false, 0, true, false, false);
xlsBook.PrintOut(Missing.Value, Missing.Value, Missing.Value, <这里怎么写>, Missing.Value, Missing.Value, Missing.Value, Missing.Value); 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询