CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
可用分押宝游戏火热进行中... 专题改版:Java Web 专题
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  .NET技术 >  C#

用C#调用Word.printout打印时如何指定打印机

楼主yaojunyong(江西老表)2005-08-02 16:54:16 在 .NET技术 / C# 提问

Excel.PrintOut   有个ActivePrinter,但Word只有个activePrinterMacGX,这个参数设置了没有效! 问题点数:50、回复次数:3Top

1 楼guoxinwei()回复于 2005-11-24 11:40:55 得分 0

关注……Top

2 楼zwfhome1(任由风吹)回复于 2005-11-24 12:24:08 得分 0

用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

3 楼LGame(JGame)回复于 2005-11-24 12:40:19 得分 0

学习了Top

相关问题

  • ASP中调用打印机的程序
  • C#打印机问题
  • C调用C#?
  • c#写的bs结构系统,能否在浏览器中调用win32的动态库,来驱动条码打印机
  • C++Builder 对打印机的控制
  • 如何调用系统的打印机设置?
  • Activex调用打印机的问题?急(帮hwy 转)
  • PB中如何调用打印机的函数?
  • 关于调用远程打印机的问题
  • turbo c20中怎样调用打印机?谢谢

关键词

  • word
  • null
  • thisapplication
  • activeprinter
  • printout
  • 指定打印机
  • thisdocument
  • originalformat
  • routedocument
  • savechanges

得分解答快速导航

  • 帖主:yaojunyong

相关链接

  • CSDN .NET频道
  • .NET类图书
  • C#类图书
  • .NET类源码下载

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
世纪乐知(北京)网络技术有限公司 版权所有, 京 ICP 证 020026 号
北京创新乐知广告有限公司 提供技术支持
Copyright © 2000-2007, CSDN.NET, All Rights Reserved
GongshangLogo